Interface CfnNamespaceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnNamespaceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:59.298Z")
@Stability(Stable)
public interface CfnNamespaceProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnNamespace.
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;
CfnNamespaceProps cfnNamespaceProps = CfnNamespaceProps.builder()
.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 TypeInterfaceDescriptionstatic final classA builder forCfnNamespacePropsstatic final classAn implementation forCfnNamespaceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnNamespaceProps.Builderbuilder()default StringThe ID of the AWS Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.default StringThe username of the administrator for the primary database created in the namespace.default StringThe password of the administrator for the primary database created in the namespace.default StringThe name of the primary database created in the namespace.default StringThe Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.default StringThe name of the snapshot to be created before the namespace is deleted.default NumberHow long to retain the final snapshot.A list of IAM roles to associate with the namespace.default StringThe ID of the AWS Key Management Service key used to encrypt your data.The types of logs the namespace can export.default ObjectIf true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials.The name of the namespace.default ObjectThe resource policy that will be attached to the namespace.default StringThe ARN for the Redshift application that integrates with IAM Identity Center.default ObjectThe snapshot copy configurations for the namespace.getTags()The map of the key-value pairs used to tag the namespace.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNamespaceName
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.
- See Also:
-
getAdminPasswordSecretKmsKeyId
The ID of the AWS Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.You can only use this parameter if
ManageAdminPasswordistrue.- See Also:
-
getAdminUsername
The username of the administrator for the primary database created in the namespace.- See Also:
-
getAdminUserPassword
The password of the administrator for the primary database created in the namespace.- See Also:
-
getDbName
The name of the primary database created in the namespace.- See Also:
-
getDefaultIamRoleArn
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.- See Also:
-
getFinalSnapshotName
The name of the snapshot to be created before the namespace is deleted.- See Also:
-
getFinalSnapshotRetentionPeriod
How long to retain the final snapshot.- See Also:
-
getIamRoles
A list of IAM roles to associate with the namespace.- See Also:
-
getKmsKeyId
The ID of the AWS Key Management Service key used to encrypt your data.- See Also:
-
getLogExports
The types of logs the namespace can export.Available export types are
userlog,connectionlog, anduseractivitylog.- See Also:
-
getManageAdminPassword
If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials.You can't use
AdminUserPasswordifManageAdminPasswordis true. IfManageAdminPasswordisfalseor not set, Amazon Redshift usesAdminUserPasswordfor the admin user account's password.Returns union: either
BooleanorIResolvable- See Also:
-
getNamespaceResourcePolicy
The resource policy that will be attached to the namespace.- See Also:
-
getRedshiftIdcApplicationArn
The ARN for the Redshift application that integrates with IAM Identity Center.- See Also:
-
getSnapshotCopyConfigurations
The snapshot copy configurations for the namespace.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnNamespace.SnapshotCopyConfigurationProperty>- See Also:
-
getTags
The map of the key-value pairs used to tag the namespace.- See Also:
-
builder
- Returns:
- a
CfnNamespaceProps.BuilderofCfnNamespaceProps
-