Class CfnNamespace
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::RedshiftServerless::Namespace
.
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.*; CfnNamespace cfnNamespace = CfnNamespace.Builder.create(this, "MyCfnNamespace") .namespaceName("namespaceName") // the properties below are optional .adminUsername("adminUsername") .adminUserPassword("adminUserPassword") .dbName("dbName") .defaultIamRoleArn("defaultIamRoleArn") .finalSnapshotName("finalSnapshotName") .finalSnapshotRetentionPeriod(123) .iamRoles(List.of("iamRoles")) .kmsKeyId("kmsKeyId") .logExports(List.of("logExports")) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnNamespace
.static interface
A collection of database objects and users.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnNamespace
(Construct scope, String id, CfnNamespaceProps props) Create a newAWS::RedshiftServerless::Namespace
.protected
CfnNamespace
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnNamespace
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.The name of the namespace.getTags()
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
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
setNamespaceName
(String value) The name of the namespace.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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 Construct scope, @NotNull String id, @NotNull CfnNamespaceProps props) Create a newAWS::RedshiftServerless::Namespace
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
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
The map of the key-value pairs used to tag the namespace. -
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.
-
setNamespaceName
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.
-
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.Available export types are
userlog
,connectionlog
, anduseractivitylog
. -
setLogExports
The types of logs the namespace can export.Available export types are
userlog
,connectionlog
, anduseractivitylog
.
-