Class CfnNamespace

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, INamespaceRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-08-10T14:51:11.768Z") @Stability(Stable) public class CfnNamespace extends CfnResource implements IInspectable, INamespaceRef, ITaggableV2
Definition of AWS::SCN::Namespace Resource Type.

Example:

 // 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.*;
 CfnNamespace cfnNamespace = CfnNamespace.Builder.create(this, "MyCfnNamespace")
         .instanceId("instanceId")
         .name("name")
         // the properties below are optional
         .description("description")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnNamespace

      protected CfnNamespace(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnNamespace

      protected CfnNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnNamespace

      @Stability(Stable) public CfnNamespace(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnNamespaceProps props)
      Create a new AWS::SCN::Namespace.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • arnForNamespace

      @Stability(Stable) @NotNull public static String arnForNamespace(@NotNull INamespaceRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnNamespace

      @Stability(Stable) @NotNull public static Boolean isCfnNamespace(@NotNull Object x)
      Checks whether the given object is a CfnNamespace.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the namespace.
    • getAttrCreatedTime

      @Stability(Stable) @NotNull public String getAttrCreatedTime()
      The creation time of the namespace.
    • getAttrLastModifiedTime

      @Stability(Stable) @NotNull public String getAttrLastModifiedTime()
      The last modified time of the namespace.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getNamespaceRef

      @Stability(Stable) @NotNull public NamespaceReference getNamespaceRef()
      A reference to a Namespace resource.
      Specified by:
      getNamespaceRef in interface INamespaceRef
    • getInstanceId

      @Stability(Stable) @NotNull public String getInstanceId()
      The Amazon Web Services Supply Chain instance identifier.
    • setInstanceId

      @Stability(Stable) public void setInstanceId(@NotNull String value)
      The Amazon Web Services Supply Chain instance identifier.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the namespace.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the namespace.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the namespace.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the namespace.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags for the namespace.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags for the namespace.