google-native logo
Google Cloud Native v0.28.0, Feb 2 23

google-native.servicedirectory/v1beta1.Namespace

Creates a namespace, and returns the new namespace.

Create Namespace Resource

new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
@overload
def Namespace(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              labels: Optional[Mapping[str, str]] = None,
              location: Optional[str] = None,
              name: Optional[str] = None,
              namespace_id: Optional[str] = None,
              project: Optional[str] = None)
@overload
def Namespace(resource_name: str,
              args: NamespaceArgs,
              opts: Optional[ResourceOptions] = 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:servicedirectory/v1beta1:Namespace
properties: # The arguments to resource properties.
options: # 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.
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.

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:

NamespaceId string

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Labels Dictionary<string, string>

Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

Location string
Name string

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

Project string
NamespaceId string

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Labels map[string]string

Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

Location string
Name string

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

Project string
namespaceId String

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

labels Map<String,String>

Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

location String
name String

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

project String
namespaceId string

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

labels {[key: string]: string}

Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

location string
name string

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

project string
namespace_id str

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

labels Mapping[str, str]

Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

location str
name str

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

project str
namespaceId String

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

labels Map<String>

Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

location String
name String

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

project String

Outputs

All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:

CreateTime string

The timestamp when the namespace was created.

Id string

The provider-assigned unique ID for this managed resource.

UpdateTime string

The timestamp when the namespace was last updated.

CreateTime string

The timestamp when the namespace was created.

Id string

The provider-assigned unique ID for this managed resource.

UpdateTime string

The timestamp when the namespace was last updated.

createTime String

The timestamp when the namespace was created.

id String

The provider-assigned unique ID for this managed resource.

updateTime String

The timestamp when the namespace was last updated.

createTime string

The timestamp when the namespace was created.

id string

The provider-assigned unique ID for this managed resource.

updateTime string

The timestamp when the namespace was last updated.

create_time str

The timestamp when the namespace was created.

id str

The provider-assigned unique ID for this managed resource.

update_time str

The timestamp when the namespace was last updated.

createTime String

The timestamp when the namespace was created.

id String

The provider-assigned unique ID for this managed resource.

updateTime String

The timestamp when the namespace was last updated.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0