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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:15.015Z")
@Stability(Stable)
public class CfnNamespace
extends CfnResource
implements IInspectable, 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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnNamespace
.static interface
A collection of database objects and users.static interface
The 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnNamespace
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnNamespace
(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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The ID of the AWS Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.void
setAdminUsername
(String value) The username of the administrator for the primary database created in the namespace.void
setAdminUserPassword
(String value) The password of the administrator for the primary database created in the namespace.void
The name of the primary database created in the namespace.void
setDefaultIamRoleArn
(String value) The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.void
setFinalSnapshotName
(String value) The name of the snapshot to be created before the namespace is deleted.void
How long to retain the final snapshot.void
setIamRoles
(List<String> value) A list of IAM roles to associate with the namespace.void
setKmsKeyId
(String value) The ID of the AWS Key Management Service key used to encrypt your data.void
setLogExports
(List<String> value) The types of logs the namespace can export.void
setManageAdminPassword
(Boolean value) If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials.void
If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials.void
setNamespaceName
(String value) The name of the namespace.void
setNamespaceResourcePolicy
(Object value) The resource policy that will be attached to the namespace.void
The ARN for the Redshift application that integrates with IAM Identity Center.void
setSnapshotCopyConfigurations
(List<Object> value) The snapshot copy configurations for the namespace.void
The snapshot copy configurations for the namespace.void
setTagsRaw
(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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
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. -
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. -
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.
-