Skip to content
v2.277.0

CfnNamespaceProps Struct ​

Properties for defining a CfnNamespace.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_scn as scn } from 'aws-cdk-lib';
const cfnNamespaceProps: scn.CfnNamespaceProps = {
  instanceId: 'instanceId',
  name: 'name',

  // the properties below are optional
  description: 'description',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_scn as scn

cfn_namespace_props = scn.CfnNamespaceProps(
    instance_id="instanceId",
    name="name",

    # the properties below are optional
    description="description",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.scn.*;

CfnNamespaceProps cfnNamespaceProps = CfnNamespaceProps.builder()
        .instanceId("instanceId")
        .name("name")

        // the properties below are optional
        .description("description")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SCN;

var cfnNamespaceProps = new CfnNamespaceProps {
    InstanceId = "instanceId",
    Name = "name",

    // the properties below are optional
    Description = "description",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnNamespaceProps := &CfnNamespaceProps{
	InstanceId: jsii.String("instanceId"),
	Name: jsii.String("name"),

	// the properties below are optional
	Description: jsii.String("description"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The description of the namespace.
instanceIdstringinstance_idstrinstanceIdStringInstanceIdstringInstanceId*stringrequired#
The Amazon Web Services Supply Chain instance identifier.
namestringnamestrnameStringNamestringName*stringrequired#
The name of the namespace.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The tags for the namespace.