public static final class CfnDBCluster.Builder
extends java.lang.Object
CfnDBCluster
.Modifier and Type | Method and Description |
---|---|
CfnDBCluster.Builder |
availabilityZones(java.util.List<java.lang.String> availabilityZones)
A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
|
CfnDBCluster.Builder |
backupRetentionPeriod(java.lang.Number backupRetentionPeriod)
The number of days for which automated backups are retained.
|
CfnDBCluster |
build() |
CfnDBCluster.Builder |
copyTagsToSnapshot(java.lang.Boolean copyTagsToSnapshot)
`AWS::DocDB::DBCluster.CopyTagsToSnapshot`.
|
CfnDBCluster.Builder |
copyTagsToSnapshot(IResolvable copyTagsToSnapshot)
`AWS::DocDB::DBCluster.CopyTagsToSnapshot`.
|
static CfnDBCluster.Builder |
create(Construct scope,
java.lang.String id) |
CfnDBCluster.Builder |
dbClusterIdentifier(java.lang.String dbClusterIdentifier)
The cluster identifier.
|
CfnDBCluster.Builder |
dbClusterParameterGroupName(java.lang.String dbClusterParameterGroupName)
The name of the cluster parameter group to associate with this cluster.
|
CfnDBCluster.Builder |
dbSubnetGroupName(java.lang.String dbSubnetGroupName)
A subnet group to associate with this cluster.
|
CfnDBCluster.Builder |
deletionProtection(java.lang.Boolean deletionProtection)
Protects clusters from being accidentally deleted.
|
CfnDBCluster.Builder |
deletionProtection(IResolvable deletionProtection)
Protects clusters from being accidentally deleted.
|
CfnDBCluster.Builder |
enableCloudwatchLogsExports(java.util.List<java.lang.String> enableCloudwatchLogsExports)
The list of log types that need to be enabled for exporting to Amazon CloudWatch Logs.
|
CfnDBCluster.Builder |
engineVersion(java.lang.String engineVersion)
The version number of the database engine to use.
|
CfnDBCluster.Builder |
kmsKeyId(java.lang.String kmsKeyId)
The AWS KMS key identifier for an encrypted cluster.
|
CfnDBCluster.Builder |
masterUsername(java.lang.String masterUsername)
The name of the master user for the cluster.
|
CfnDBCluster.Builder |
masterUserPassword(java.lang.String masterUserPassword)
The password for the master database user.
|
CfnDBCluster.Builder |
port(java.lang.Number port)
Specifies the port that the database engine is listening on.
|
CfnDBCluster.Builder |
preferredBackupWindow(java.lang.String preferredBackupWindow)
The daily time range during which automated backups are created if automated backups are enabled using the `BackupRetentionPeriod` parameter.
|
CfnDBCluster.Builder |
preferredMaintenanceWindow(java.lang.String preferredMaintenanceWindow)
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
|
CfnDBCluster.Builder |
snapshotIdentifier(java.lang.String snapshotIdentifier)
The identifier for the snapshot or cluster snapshot to restore from.
|
CfnDBCluster.Builder |
storageEncrypted(java.lang.Boolean storageEncrypted)
Specifies whether the cluster is encrypted.
|
CfnDBCluster.Builder |
storageEncrypted(IResolvable storageEncrypted)
Specifies whether the cluster is encrypted.
|
CfnDBCluster.Builder |
tags(java.util.List<? extends CfnTag> tags)
The tags to be assigned to the cluster.
|
CfnDBCluster.Builder |
vpcSecurityGroupIds(java.util.List<java.lang.String> vpcSecurityGroupIds)
A list of EC2 VPC security groups to associate with this cluster.
|
public static CfnDBCluster.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnDBCluster.Builder
.public CfnDBCluster.Builder availabilityZones(java.util.List<java.lang.String> availabilityZones)
availabilityZones
- A list of Amazon EC2 Availability Zones that instances in the cluster can be created in. This parameter is required.this
public CfnDBCluster.Builder backupRetentionPeriod(java.lang.Number backupRetentionPeriod)
Default: 1
Constraints:
backupRetentionPeriod
- The number of days for which automated backups are retained. You must specify a minimum value of 1. This parameter is required.this
public CfnDBCluster.Builder copyTagsToSnapshot(java.lang.Boolean copyTagsToSnapshot)
copyTagsToSnapshot
- `AWS::DocDB::DBCluster.CopyTagsToSnapshot`. This parameter is required.this
public CfnDBCluster.Builder copyTagsToSnapshot(IResolvable copyTagsToSnapshot)
copyTagsToSnapshot
- `AWS::DocDB::DBCluster.CopyTagsToSnapshot`. This parameter is required.this
public CfnDBCluster.Builder dbClusterIdentifier(java.lang.String dbClusterIdentifier)
Constraints:
Example: my-cluster
dbClusterIdentifier
- The cluster identifier. This parameter is stored as a lowercase string. This parameter is required.this
public CfnDBCluster.Builder dbClusterParameterGroupName(java.lang.String dbClusterParameterGroupName)
dbClusterParameterGroupName
- The name of the cluster parameter group to associate with this cluster. This parameter is required.this
public CfnDBCluster.Builder dbSubnetGroupName(java.lang.String dbSubnetGroupName)
Constraints: Must match the name of an existing DBSubnetGroup
. Must not be default.
Example: mySubnetgroup
dbSubnetGroupName
- A subnet group to associate with this cluster. This parameter is required.this
public CfnDBCluster.Builder deletionProtection(java.lang.Boolean deletionProtection)
If enabled, the cluster cannot be deleted unless it is modified and DeletionProtection
is disabled.
deletionProtection
- Protects clusters from being accidentally deleted. This parameter is required.this
public CfnDBCluster.Builder deletionProtection(IResolvable deletionProtection)
If enabled, the cluster cannot be deleted unless it is modified and DeletionProtection
is disabled.
deletionProtection
- Protects clusters from being accidentally deleted. This parameter is required.this
public CfnDBCluster.Builder enableCloudwatchLogsExports(java.util.List<java.lang.String> enableCloudwatchLogsExports)
You can enable audit logs or profiler logs. For more information, see Auditing Amazon DocumentDB Events and Profiling Amazon DocumentDB Operations .
enableCloudwatchLogsExports
- The list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. This parameter is required.this
public CfnDBCluster.Builder engineVersion(java.lang.String engineVersion)
The --engine-version
will default to the latest major engine version. For production workloads, we recommend explicitly declaring this parameter with the intended major engine version.
engineVersion
- The version number of the database engine to use. This parameter is required.this
public CfnDBCluster.Builder kmsKeyId(java.lang.String kmsKeyId)
The AWS KMS key identifier is the Amazon Resource Name (ARN) for the AWS KMS encryption key. If you are creating a cluster using the same AWS account that owns the AWS KMS encryption key that is used to encrypt the new cluster, you can use the AWS KMS key alias instead of the ARN for the AWS KMS encryption key.
If an encryption key is not specified in KmsKeyId
:
StorageEncrypted
parameter is true
, Amazon DocumentDB uses your default encryption key.AWS KMS creates the default encryption key for your AWS account . Your AWS account has a different default encryption key for each AWS Regions .
kmsKeyId
- The AWS KMS key identifier for an encrypted cluster. This parameter is required.this
public CfnDBCluster.Builder masterUsername(java.lang.String masterUsername)
Constraints:
masterUsername
- The name of the master user for the cluster. This parameter is required.this
public CfnDBCluster.Builder masterUserPassword(java.lang.String masterUserPassword)
This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@).
Constraints: Must contain from 8 to 100 characters.
masterUserPassword
- The password for the master database user. This parameter is required.this
public CfnDBCluster.Builder port(java.lang.Number port)
port
- Specifies the port that the database engine is listening on. This parameter is required.this
public CfnDBCluster.Builder preferredBackupWindow(java.lang.String preferredBackupWindow)
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region .
Constraints:
hh24:mi-hh24:mi
.preferredBackupWindow
- The daily time range during which automated backups are created if automated backups are enabled using the `BackupRetentionPeriod` parameter. This parameter is required.this
public CfnDBCluster.Builder preferredMaintenanceWindow(java.lang.String preferredMaintenanceWindow)
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region , occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
preferredMaintenanceWindow
- The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). This parameter is required.this
public CfnDBCluster.Builder snapshotIdentifier(java.lang.String snapshotIdentifier)
You can use either the name or the Amazon Resource Name (ARN) to specify a cluster snapshot. However, you can use only the ARN to specify a snapshot.
Constraints:
snapshotIdentifier
- The identifier for the snapshot or cluster snapshot to restore from. This parameter is required.this
public CfnDBCluster.Builder storageEncrypted(java.lang.Boolean storageEncrypted)
storageEncrypted
- Specifies whether the cluster is encrypted. This parameter is required.this
public CfnDBCluster.Builder storageEncrypted(IResolvable storageEncrypted)
storageEncrypted
- Specifies whether the cluster is encrypted. This parameter is required.this
public CfnDBCluster.Builder tags(java.util.List<? extends CfnTag> tags)
tags
- The tags to be assigned to the cluster. This parameter is required.this
public CfnDBCluster.Builder vpcSecurityGroupIds(java.util.List<java.lang.String> vpcSecurityGroupIds)
vpcSecurityGroupIds
- A list of EC2 VPC security groups to associate with this cluster. This parameter is required.this
public CfnDBCluster build()