CfnNamespaceProps
- class aws_cdk.aws_redshiftserverless.CfnNamespaceProps(*, namespace_name, admin_password_secret_kms_key_id=None, admin_username=None, admin_user_password=None, db_name=None, default_iam_role_arn=None, final_snapshot_name=None, final_snapshot_retention_period=None, iam_roles=None, kms_key_id=None, log_exports=None, manage_admin_password=None, namespace_resource_policy=None, redshift_idc_application_arn=None, snapshot_copy_configurations=None, tags=None)
Bases:
object
Properties for defining a
CfnNamespace
.- Parameters:
namespace_name (
str
) – 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.admin_password_secret_kms_key_id (
Optional
[str
]) – 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 ifManageAdminPassword
istrue
.admin_username (
Optional
[str
]) – The username of the administrator for the primary database created in the namespace.admin_user_password (
Optional
[str
]) – The password of the administrator for the primary database created in the namespace.db_name (
Optional
[str
]) – The name of the primary database created in the namespace.default_iam_role_arn (
Optional
[str
]) – The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.final_snapshot_name (
Optional
[str
]) – The name of the snapshot to be created before the namespace is deleted.final_snapshot_retention_period (
Union
[int
,float
,None
]) – How long to retain the final snapshot.iam_roles (
Optional
[Sequence
[str
]]) – A list of IAM roles to associate with the namespace.kms_key_id (
Optional
[str
]) – The ID of the AWS Key Management Service key used to encrypt your data.log_exports (
Optional
[Sequence
[str
]]) – The types of logs the namespace can export. Available export types areuserlog
,connectionlog
, anduseractivitylog
.manage_admin_password (
Union
[bool
,IResolvable
,None
]) – If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace’s admin credentials. You can’t useAdminUserPassword
ifManageAdminPassword
is true. IfManageAdminPassword
isfalse
or not set, Amazon Redshift usesAdminUserPassword
for the admin user account’s password.namespace_resource_policy (
Any
) – The resource policy that will be attached to the namespace.redshift_idc_application_arn (
Optional
[str
]) – The ARN for the Redshift application that integrates with IAM Identity Center.snapshot_copy_configurations (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,SnapshotCopyConfigurationProperty
,Dict
[str
,Any
]]],None
]) – The snapshot copy configurations for the namespace.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – The map of the key-value pairs used to tag the namespace.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_redshiftserverless as redshiftserverless # namespace_resource_policy: Any cfn_namespace_props = redshiftserverless.CfnNamespaceProps( namespace_name="namespaceName", # the properties below are optional admin_password_secret_kms_key_id="adminPasswordSecretKmsKeyId", admin_username="adminUsername", admin_user_password="adminUserPassword", db_name="dbName", default_iam_role_arn="defaultIamRoleArn", final_snapshot_name="finalSnapshotName", final_snapshot_retention_period=123, iam_roles=["iamRoles"], kms_key_id="kmsKeyId", log_exports=["logExports"], manage_admin_password=False, namespace_resource_policy=namespace_resource_policy, redshift_idc_application_arn="redshiftIdcApplicationArn", snapshot_copy_configurations=[redshiftserverless.CfnNamespace.SnapshotCopyConfigurationProperty( destination_region="destinationRegion", # the properties below are optional destination_kms_key_id="destinationKmsKeyId", snapshot_retention_period=123 )], tags=[CfnTag( key="key", value="value" )] )
Attributes
- admin_password_secret_kms_key_id
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
ManageAdminPassword
istrue
.
- admin_user_password
The password of the administrator for the primary database created in the namespace.
- admin_username
The username of the administrator for the primary database created in the namespace.
- db_name
The name of the primary database created in the namespace.
- default_iam_role_arn
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
- final_snapshot_name
The name of the snapshot to be created before the namespace is deleted.
- final_snapshot_retention_period
How long to retain the final snapshot.
- iam_roles
A list of IAM roles to associate with the namespace.
- kms_key_id
The ID of the AWS Key Management Service key used to encrypt your data.
- log_exports
The types of logs the namespace can export.
Available export types are
userlog
,connectionlog
, anduseractivitylog
.
- manage_admin_password
If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace’s admin credentials.
You can’t use
AdminUserPassword
ifManageAdminPassword
is true. IfManageAdminPassword
isfalse
or not set, Amazon Redshift usesAdminUserPassword
for the admin user account’s password.
- namespace_name
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.
- namespace_resource_policy
The resource policy that will be attached to the namespace.
- redshift_idc_application_arn
The ARN for the Redshift application that integrates with IAM Identity Center.
- snapshot_copy_configurations
The snapshot copy configurations for the namespace.
- tags
The map of the key-value pairs used to tag the namespace.