Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.gkehub/v1beta.Namespace
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a fleet namespace. Auto-naming is currently not supported for this resource.
Create Namespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
@overload
def Namespace(resource_name: str,
args: NamespaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Namespace(resource_name: str,
opts: Optional[ResourceOptions] = None,
scope: Optional[str] = None,
scope_id: Optional[str] = None,
scope_namespace_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
namespace_labels: Optional[Mapping[str, str]] = None,
project: Optional[str] = None)
func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)
public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)
public Namespace(String name, NamespaceArgs args)
public Namespace(String name, NamespaceArgs args, CustomResourceOptions options)
type: google-native:gkehub/v1beta:Namespace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplenamespaceResourceResourceFromGkehubv1beta = new GoogleNative.GKEHub.V1Beta.Namespace("examplenamespaceResourceResourceFromGkehubv1beta", new()
{
Scope = "string",
ScopeId = "string",
ScopeNamespaceId = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
NamespaceLabels =
{
{ "string", "string" },
},
Project = "string",
});
example, err := gkehubv1beta.NewNamespace(ctx, "examplenamespaceResourceResourceFromGkehubv1beta", &gkehubv1beta.NamespaceArgs{
Scope: pulumi.String("string"),
ScopeId: pulumi.String("string"),
ScopeNamespaceId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
NamespaceLabels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Project: pulumi.String("string"),
})
var examplenamespaceResourceResourceFromGkehubv1beta = new Namespace("examplenamespaceResourceResourceFromGkehubv1beta", NamespaceArgs.builder()
.scope("string")
.scopeId("string")
.scopeNamespaceId("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.namespaceLabels(Map.of("string", "string"))
.project("string")
.build());
examplenamespace_resource_resource_from_gkehubv1beta = google_native.gkehub.v1beta.Namespace("examplenamespaceResourceResourceFromGkehubv1beta",
scope="string",
scope_id="string",
scope_namespace_id="string",
labels={
"string": "string",
},
location="string",
name="string",
namespace_labels={
"string": "string",
},
project="string")
const examplenamespaceResourceResourceFromGkehubv1beta = new google_native.gkehub.v1beta.Namespace("examplenamespaceResourceResourceFromGkehubv1beta", {
scope: "string",
scopeId: "string",
scopeNamespaceId: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
namespaceLabels: {
string: "string",
},
project: "string",
});
type: google-native:gkehub/v1beta:Namespace
properties:
labels:
string: string
location: string
name: string
namespaceLabels:
string: string
project: string
scope: string
scopeId: string
scopeNamespaceId: string
Namespace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Namespace resource accepts the following input properties:
- Scope string
- Scope associated with the namespace
- Scope
Id string - Scope
Namespace stringId - Required. Client chosen ID for the Namespace.
namespace_id
must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or-
3. It must start and end with an alphanumeric character Which can be expressed as the regex:[a-z0-9]([-a-z0-9]*[a-z0-9])?
, with a maximum length of 63 characters. - Labels Dictionary<string, string>
- Optional. Labels for this Namespace.
- Location string
- Name string
- The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- Namespace
Labels Dictionary<string, string> - Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (
namespace_labels
in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant. - Project string
- Scope string
- Scope associated with the namespace
- Scope
Id string - Scope
Namespace stringId - Required. Client chosen ID for the Namespace.
namespace_id
must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or-
3. It must start and end with an alphanumeric character Which can be expressed as the regex:[a-z0-9]([-a-z0-9]*[a-z0-9])?
, with a maximum length of 63 characters. - Labels map[string]string
- Optional. Labels for this Namespace.
- Location string
- Name string
- The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- Namespace
Labels map[string]string - Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (
namespace_labels
in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant. - Project string
- scope String
- Scope associated with the namespace
- scope
Id String - scope
Namespace StringId - Required. Client chosen ID for the Namespace.
namespace_id
must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or-
3. It must start and end with an alphanumeric character Which can be expressed as the regex:[a-z0-9]([-a-z0-9]*[a-z0-9])?
, with a maximum length of 63 characters. - labels Map<String,String>
- Optional. Labels for this Namespace.
- location String
- name String
- The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- namespace
Labels Map<String,String> - Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (
namespace_labels
in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant. - project String
- scope string
- Scope associated with the namespace
- scope
Id string - scope
Namespace stringId - Required. Client chosen ID for the Namespace.
namespace_id
must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or-
3. It must start and end with an alphanumeric character Which can be expressed as the regex:[a-z0-9]([-a-z0-9]*[a-z0-9])?
, with a maximum length of 63 characters. - labels {[key: string]: string}
- Optional. Labels for this Namespace.
- location string
- name string
- The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- namespace
Labels {[key: string]: string} - Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (
namespace_labels
in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant. - project string
- scope str
- Scope associated with the namespace
- scope_
id str - scope_
namespace_ strid - Required. Client chosen ID for the Namespace.
namespace_id
must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or-
3. It must start and end with an alphanumeric character Which can be expressed as the regex:[a-z0-9]([-a-z0-9]*[a-z0-9])?
, with a maximum length of 63 characters. - labels Mapping[str, str]
- Optional. Labels for this Namespace.
- location str
- name str
- The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- namespace_
labels Mapping[str, str] - Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (
namespace_labels
in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant. - project str
- scope String
- Scope associated with the namespace
- scope
Id String - scope
Namespace StringId - Required. Client chosen ID for the Namespace.
namespace_id
must be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must consist of lower case alphanumeric characters or-
3. It must start and end with an alphanumeric character Which can be expressed as the regex:[a-z0-9]([-a-z0-9]*[a-z0-9])?
, with a maximum length of 63 characters. - labels Map<String>
- Optional. Labels for this Namespace.
- location String
- name String
- The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
- namespace
Labels Map<String> - Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (
namespace_labels
in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant. - project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:
- Create
Time string - When the namespace was created.
- Delete
Time string - When the namespace was deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Pulumi.
Google Native. GKEHub. V1Beta. Outputs. Namespace Lifecycle State Response - State of the namespace resource.
- Uid string
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- Update
Time string - When the namespace was last updated.
- Create
Time string - When the namespace was created.
- Delete
Time string - When the namespace was deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Namespace
Lifecycle State Response - State of the namespace resource.
- Uid string
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- Update
Time string - When the namespace was last updated.
- create
Time String - When the namespace was created.
- delete
Time String - When the namespace was deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- state
Namespace
Lifecycle State Response - State of the namespace resource.
- uid String
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time String - When the namespace was last updated.
- create
Time string - When the namespace was created.
- delete
Time string - When the namespace was deleted.
- id string
- The provider-assigned unique ID for this managed resource.
- state
Namespace
Lifecycle State Response - State of the namespace resource.
- uid string
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time string - When the namespace was last updated.
- create_
time str - When the namespace was created.
- delete_
time str - When the namespace was deleted.
- id str
- The provider-assigned unique ID for this managed resource.
- state
Namespace
Lifecycle State Response - State of the namespace resource.
- uid str
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- update_
time str - When the namespace was last updated.
- create
Time String - When the namespace was created.
- delete
Time String - When the namespace was deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- state Property Map
- State of the namespace resource.
- uid String
- Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace resource is deleted and another resource with the same name is created, it gets a different uid.
- update
Time String - When the namespace was last updated.
Supporting Types
NamespaceLifecycleStateResponse, NamespaceLifecycleStateResponseArgs
- Code string
- The current state of the Namespace resource.
- Code string
- The current state of the Namespace resource.
- code String
- The current state of the Namespace resource.
- code string
- The current state of the Namespace resource.
- code str
- The current state of the Namespace resource.
- code String
- The current state of the Namespace resource.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.