public static final class CfnDBClusterProps.Builder
extends java.lang.Object
CfnDBClusterProps
Constructor and Description |
---|
Builder() |
public CfnDBClusterProps.Builder associatedRoles(IResolvable associatedRoles)
CfnDBClusterProps.getAssociatedRoles()
associatedRoles
- Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster.
IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.this
public CfnDBClusterProps.Builder associatedRoles(java.util.List<? extends java.lang.Object> associatedRoles)
CfnDBClusterProps.getAssociatedRoles()
associatedRoles
- Provides a list of the Amazon Identity and Access Management (IAM) roles that are associated with the DB cluster.
IAM roles that are associated with a DB cluster grant permission for the DB cluster to access other Amazon services on your behalf.this
public CfnDBClusterProps.Builder availabilityZones(java.util.List<java.lang.String> availabilityZones)
CfnDBClusterProps.getAvailabilityZones()
availabilityZones
- Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.this
public CfnDBClusterProps.Builder backupRetentionPeriod(java.lang.Number backupRetentionPeriod)
CfnDBClusterProps.getBackupRetentionPeriod()
backupRetentionPeriod
- Specifies the number of days for which automatic DB snapshots are retained.
An update may require some interruption. See ModifyDBInstance in the Amazon Neptune User Guide for more information.this
public CfnDBClusterProps.Builder dbClusterIdentifier(java.lang.String dbClusterIdentifier)
CfnDBClusterProps.getDbClusterIdentifier()
dbClusterIdentifier
- Contains a user-supplied DB cluster identifier.
This identifier is the unique key that identifies a DB cluster.this
public CfnDBClusterProps.Builder dbClusterParameterGroupName(java.lang.String dbClusterParameterGroupName)
CfnDBClusterProps.getDbClusterParameterGroupName()
dbClusterParameterGroupName
- Provides the name of the DB cluster parameter group.
An update may require some interruption. See ModifyDBInstance in the Amazon Neptune User Guide for more information.this
public CfnDBClusterProps.Builder dbSubnetGroupName(java.lang.String dbSubnetGroupName)
CfnDBClusterProps.getDbSubnetGroupName()
dbSubnetGroupName
- Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.this
public CfnDBClusterProps.Builder deletionProtection(java.lang.Boolean deletionProtection)
CfnDBClusterProps.getDeletionProtection()
deletionProtection
- Indicates whether or not the DB cluster has deletion protection enabled.
The database can't be deleted when deletion protection is enabled.this
public CfnDBClusterProps.Builder deletionProtection(IResolvable deletionProtection)
CfnDBClusterProps.getDeletionProtection()
deletionProtection
- Indicates whether or not the DB cluster has deletion protection enabled.
The database can't be deleted when deletion protection is enabled.this
public CfnDBClusterProps.Builder enableCloudwatchLogsExports(java.util.List<java.lang.String> enableCloudwatchLogsExports)
CfnDBClusterProps.getEnableCloudwatchLogsExports()
enableCloudwatchLogsExports
- Specifies a list of log types that are enabled for export to CloudWatch Logs.this
public CfnDBClusterProps.Builder engineVersion(java.lang.String engineVersion)
CfnDBClusterProps.getEngineVersion()
engineVersion
- Indicates the database engine version.this
public CfnDBClusterProps.Builder iamAuthEnabled(java.lang.Boolean iamAuthEnabled)
CfnDBClusterProps.getIamAuthEnabled()
iamAuthEnabled
- True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.this
public CfnDBClusterProps.Builder iamAuthEnabled(IResolvable iamAuthEnabled)
CfnDBClusterProps.getIamAuthEnabled()
iamAuthEnabled
- True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.this
public CfnDBClusterProps.Builder kmsKeyId(java.lang.String kmsKeyId)
CfnDBClusterProps.getKmsKeyId()
kmsKeyId
- If `StorageEncrypted` is true, the Amazon KMS key identifier for the encrypted DB cluster.this
public CfnDBClusterProps.Builder port(java.lang.Number port)
CfnDBClusterProps.getPort()
port
- Specifies the port that the database engine is listening on.this
public CfnDBClusterProps.Builder preferredBackupWindow(java.lang.String preferredBackupWindow)
CfnDBClusterProps.getPreferredBackupWindow()
preferredBackupWindow
- Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the `BackupRetentionPeriod` .
An update may require some interruption.this
public CfnDBClusterProps.Builder preferredMaintenanceWindow(java.lang.String preferredMaintenanceWindow)
CfnDBClusterProps.getPreferredMaintenanceWindow()
preferredMaintenanceWindow
- Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).this
public CfnDBClusterProps.Builder restoreToTime(java.lang.String restoreToTime)
CfnDBClusterProps.getRestoreToTime()
restoreToTime
- Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.
If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.
this
public CfnDBClusterProps.Builder restoreType(java.lang.String restoreType)
CfnDBClusterProps.getRestoreType()
restoreType
- Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.
If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.
this
public CfnDBClusterProps.Builder snapshotIdentifier(java.lang.String snapshotIdentifier)
CfnDBClusterProps.getSnapshotIdentifier()
snapshotIdentifier
- Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot.
After you restore a DB cluster using a SnapshotIdentifier
, you must specify the same SnapshotIdentifier
for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the snapshot again, and the data in the database is not changed.
However, if you don't specify the SnapshotIdentifier
, an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, the DB cluster is restored from the snapshot specified by the SnapshotIdentifier
, and the original DB cluster is deleted.
this
public CfnDBClusterProps.Builder sourceDbClusterIdentifier(java.lang.String sourceDbClusterIdentifier)
CfnDBClusterProps.getSourceDbClusterIdentifier()
sourceDbClusterIdentifier
- Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.
If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.
this
public CfnDBClusterProps.Builder storageEncrypted(java.lang.Boolean storageEncrypted)
CfnDBClusterProps.getStorageEncrypted()
storageEncrypted
- Indicates whether the DB cluster is encrypted.
If you specify the DBClusterIdentifier
, DBSnapshotIdentifier
, or SourceDBInstanceIdentifier
property, don't specify this property. The value is inherited from the cluster, snapshot, or source DB instance. If you specify the KmsKeyId
property, you must enable encryption.
If you specify the KmsKeyId
, you must enable encryption by setting StorageEncrypted
to true.
this
public CfnDBClusterProps.Builder storageEncrypted(IResolvable storageEncrypted)
CfnDBClusterProps.getStorageEncrypted()
storageEncrypted
- Indicates whether the DB cluster is encrypted.
If you specify the DBClusterIdentifier
, DBSnapshotIdentifier
, or SourceDBInstanceIdentifier
property, don't specify this property. The value is inherited from the cluster, snapshot, or source DB instance. If you specify the KmsKeyId
property, you must enable encryption.
If you specify the KmsKeyId
, you must enable encryption by setting StorageEncrypted
to true.
this
public CfnDBClusterProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnDBClusterProps.getTags()
tags
- The tags assigned to this cluster.this
public CfnDBClusterProps.Builder useLatestRestorableTime(java.lang.Boolean useLatestRestorableTime)
CfnDBClusterProps.getUseLatestRestorableTime()
useLatestRestorableTime
- Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.
If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.
this
public CfnDBClusterProps.Builder useLatestRestorableTime(IResolvable useLatestRestorableTime)
CfnDBClusterProps.getUseLatestRestorableTime()
useLatestRestorableTime
- Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.
If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.
this
public CfnDBClusterProps.Builder vpcSecurityGroupIds(java.util.List<java.lang.String> vpcSecurityGroupIds)
CfnDBClusterProps.getVpcSecurityGroupIds()
vpcSecurityGroupIds
- Provides a list of VPC security groups that the DB cluster belongs to.this
public CfnDBClusterProps build()
CfnDBClusterProps
java.lang.NullPointerException
- if any required attribute was not provided