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
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnNamespace.static interfaceA collection of database objects and users.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnNamespace(Construct scope, String id, CfnNamespaceProps props) Create a newAWS::RedshiftServerless::Namespace.protectedCfnNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnNamespace(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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) 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.voidsetNamespaceName(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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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:
inspectin 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:
renderPropertiesin 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:
getCfnPropertiesin 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.
-