Class CfnNamespace
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.redshiftserverless.CfnNamespace
- All Implemented Interfaces:
IInspectable,ITaggable,INamespaceRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:45.679Z")
@Stability(Stable)
public class CfnNamespace
extends CfnResource
implements IInspectable, INamespaceRef, ITaggable
A collection of database objects and users.
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.redshiftserverless.*;
Object namespaceResourcePolicy;
CfnNamespace cfnNamespace = CfnNamespace.Builder.create(this, "MyCfnNamespace")
.namespaceName("namespaceName")
// the properties below are optional
.adminPasswordSecretKmsKeyId("adminPasswordSecretKmsKeyId")
.adminUsername("adminUsername")
.adminUserPassword("adminUserPassword")
.dbName("dbName")
.defaultIamRoleArn("defaultIamRoleArn")
.finalSnapshotName("finalSnapshotName")
.finalSnapshotRetentionPeriod(123)
.iamRoles(List.of("iamRoles"))
.kmsKeyId("kmsKeyId")
.logExports(List.of("logExports"))
.manageAdminPassword(false)
.namespaceResourcePolicy(namespaceResourcePolicy)
.redshiftIdcApplicationArn("redshiftIdcApplicationArn")
.snapshotCopyConfigurations(List.of(SnapshotCopyConfigurationProperty.builder()
.destinationRegion("destinationRegion")
// the properties below are optional
.destinationKmsKeyId("destinationKmsKeyId")
.snapshotRetentionPeriod(123)
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnNamespace.static interfaceA collection of database objects and users.static interfaceThe object that you configure to copy snapshots from one namespace to a namespace in another AWS Region .Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.redshiftserverless.INamespaceRef
INamespaceRef.Jsii$Default, INamespaceRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnNamespace(software.amazon.jsii.JsiiObjectRef objRef) CfnNamespace(software.constructs.Construct scope, String id, CfnNamespaceProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ID of the AWS Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.The username of the administrator for the primary database created in the namespace.The password of the administrator for the primary database created in the namespace.The username of the administrator for the first database created in the namespace.The date of when the namespace was created.The name of the first database created in the namespace.The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.A list of IAM roles to associate with the namespace.The ID of the AWS Key Management Service key used to encrypt your data.The types of logs the namespace can export.The Amazon Resource Name (ARN) associated with a namespace.The unique identifier of a namespace.The name of the namespace.The status of the namespace.The name of the primary database created in the namespace.The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.The name of the snapshot to be created before the namespace is deleted.How long to retain the final snapshot.A list of IAM roles to associate with the namespace.The ID of the AWS Key Management Service key used to encrypt your data.The types of logs the namespace can export.If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials.The name of the namespace.A reference to a Namespace resource.The resource policy that will be attached to the namespace.The ARN for the Redshift application that integrates with IAM Identity Center.The snapshot copy configurations for the namespace.getTags()Tag Manager which manages the tags for this resource.The map of the key-value pairs used to tag the namespace.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe ID of the AWS Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.voidsetAdminUsername(String value) The username of the administrator for the primary database created in the namespace.voidsetAdminUserPassword(String value) The password of the administrator for the primary database created in the namespace.voidThe name of the primary database created in the namespace.voidsetDefaultIamRoleArn(String value) The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.voidsetFinalSnapshotName(String value) The name of the snapshot to be created before the namespace is deleted.voidHow long to retain the final snapshot.voidsetIamRoles(List<String> value) A list of IAM roles to associate with the namespace.voidsetKmsKeyId(String value) The ID of the AWS Key Management Service key used to encrypt your data.voidsetLogExports(List<String> value) The types of logs the namespace can export.voidsetManageAdminPassword(Boolean value) If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials.voidIf true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials.voidsetNamespaceName(String value) The name of the namespace.voidsetNamespaceResourcePolicy(Object value) The resource policy that will be attached to the namespace.voidThe ARN for the Redshift application that integrates with IAM Identity Center.voidsetSnapshotCopyConfigurations(List<Object> value) The snapshot copy configurations for the namespace.voidThe snapshot copy configurations for the namespace.voidsetTagsRaw(List<CfnTag> value) The map of the key-value pairs used to tag the namespace.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrNamespace
-
getAttrNamespaceAdminUsername
The username of the administrator for the first database created in the namespace. -
getAttrNamespaceCreationDate
The date of when the namespace was created. -
getAttrNamespaceDbName
The name of the first database created in the namespace. -
getAttrNamespaceDefaultIamRoleArn
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. -
getAttrNamespaceIamRoles
A list of IAM roles to associate with the namespace. -
getAttrNamespaceKmsKeyId
The ID of the AWS Key Management Service key used to encrypt your data. -
getAttrNamespaceLogExports
The types of logs the namespace can export.Available export types are
User log,Connection log, andUser activity log. -
getAttrNamespaceNamespaceArn
The Amazon Resource Name (ARN) associated with a namespace. -
getAttrNamespaceNamespaceId
The unique identifier of a namespace. -
getAttrNamespaceNamespaceName
The name of the namespace.Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
-
getAttrNamespaceStatus
The status of the namespace. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getNamespaceRef
A reference to a Namespace resource.- Specified by:
getNamespaceRefin interfaceINamespaceRef
-
getTags
Tag Manager which manages the tags for this resource. -
getNamespaceName
The name of the namespace. -
setNamespaceName
The name of the namespace. -
getAdminPasswordSecretKmsKeyId
The ID of the AWS Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret. -
setAdminPasswordSecretKmsKeyId
The ID of the AWS Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret. -
getAdminUsername
The username of the administrator for the primary database created in the namespace. -
setAdminUsername
The username of the administrator for the primary database created in the namespace. -
getAdminUserPassword
The password of the administrator for the primary database created in the namespace. -
setAdminUserPassword
The password of the administrator for the primary database created in the namespace. -
getDbName
The name of the primary database created in the namespace. -
setDbName
The name of the primary database created in the namespace. -
getDefaultIamRoleArn
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. -
setDefaultIamRoleArn
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. -
getFinalSnapshotName
The name of the snapshot to be created before the namespace is deleted. -
setFinalSnapshotName
The name of the snapshot to be created before the namespace is deleted. -
getFinalSnapshotRetentionPeriod
How long to retain the final snapshot. -
setFinalSnapshotRetentionPeriod
How long to retain the final snapshot. -
getIamRoles
A list of IAM roles to associate with the namespace. -
setIamRoles
A list of IAM roles to associate with the namespace. -
getKmsKeyId
The ID of the AWS Key Management Service key used to encrypt your data. -
setKmsKeyId
The ID of the AWS Key Management Service key used to encrypt your data. -
getLogExports
The types of logs the namespace can export. -
setLogExports
The types of logs the namespace can export. -
getManageAdminPassword
If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials.Returns union: either
BooleanorIResolvable -
setManageAdminPassword
If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials. -
setManageAdminPassword
If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials. -
getNamespaceResourcePolicy
The resource policy that will be attached to the namespace. -
setNamespaceResourcePolicy
The resource policy that will be attached to the namespace. -
getRedshiftIdcApplicationArn
The ARN for the Redshift application that integrates with IAM Identity Center. -
setRedshiftIdcApplicationArn
The ARN for the Redshift application that integrates with IAM Identity Center. -
getSnapshotCopyConfigurations
The snapshot copy configurations for the namespace.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnNamespace.SnapshotCopyConfigurationProperty> -
setSnapshotCopyConfigurations
The snapshot copy configurations for the namespace. -
setSnapshotCopyConfigurations
The snapshot copy configurations for the namespace. -
getTagsRaw
The map of the key-value pairs used to tag the namespace. -
setTagsRaw
The map of the key-value pairs used to tag the namespace.
-