Class CfnDBClusterMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBClusterMixinProps>
- Enclosing interface:
CfnDBClusterMixinProps
CfnDBClusterMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociatedRoles(List<? extends Object> associatedRoles) Sets the value ofCfnDBClusterMixinProps.getAssociatedRoles()associatedRoles(IResolvable associatedRoles) Sets the value ofCfnDBClusterMixinProps.getAssociatedRoles()availabilityZones(List<String> availabilityZones) Sets the value ofCfnDBClusterMixinProps.getAvailabilityZones()backupRetentionPeriod(Number backupRetentionPeriod) Sets the value ofCfnDBClusterMixinProps.getBackupRetentionPeriod()build()Builds the configured instance.copyTagsToSnapshot(Boolean copyTagsToSnapshot) Sets the value ofCfnDBClusterMixinProps.getCopyTagsToSnapshot()copyTagsToSnapshot(IResolvable copyTagsToSnapshot) Sets the value ofCfnDBClusterMixinProps.getCopyTagsToSnapshot()dbClusterIdentifier(String dbClusterIdentifier) Sets the value ofCfnDBClusterMixinProps.getDbClusterIdentifier()dbClusterParameterGroupName(String dbClusterParameterGroupName) Sets the value ofCfnDBClusterMixinProps.getDbClusterParameterGroupName()dbInstanceParameterGroupName(String dbInstanceParameterGroupName) Sets the value ofCfnDBClusterMixinProps.getDbInstanceParameterGroupName()Sets the value ofCfnDBClusterMixinProps.getDbPort()dbSubnetGroupName(String dbSubnetGroupName) Sets the value ofCfnDBClusterMixinProps.getDbSubnetGroupName()deletionProtection(Boolean deletionProtection) Sets the value ofCfnDBClusterMixinProps.getDeletionProtection()deletionProtection(IResolvable deletionProtection) Sets the value ofCfnDBClusterMixinProps.getDeletionProtection()enableCloudwatchLogsExports(List<String> enableCloudwatchLogsExports) Sets the value ofCfnDBClusterMixinProps.getEnableCloudwatchLogsExports()engineVersion(String engineVersion) Sets the value ofCfnDBClusterMixinProps.getEngineVersion()iamAuthEnabled(Boolean iamAuthEnabled) Sets the value ofCfnDBClusterMixinProps.getIamAuthEnabled()iamAuthEnabled(IResolvable iamAuthEnabled) Sets the value ofCfnDBClusterMixinProps.getIamAuthEnabled()Sets the value ofCfnDBClusterMixinProps.getKmsKeyId()Sets the value ofCfnDBClusterMixinProps.getKmsKeyId()preferredBackupWindow(String preferredBackupWindow) Sets the value ofCfnDBClusterMixinProps.getPreferredBackupWindow()preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofCfnDBClusterMixinProps.getPreferredMaintenanceWindow()restoreToTime(String restoreToTime) Sets the value ofCfnDBClusterMixinProps.getRestoreToTime()restoreType(String restoreType) Sets the value ofCfnDBClusterMixinProps.getRestoreType()serverlessScalingConfiguration(CfnDBClusterPropsMixin.ServerlessScalingConfigurationProperty serverlessScalingConfiguration) Sets the value ofCfnDBClusterMixinProps.getServerlessScalingConfiguration()serverlessScalingConfiguration(IResolvable serverlessScalingConfiguration) Sets the value ofCfnDBClusterMixinProps.getServerlessScalingConfiguration()snapshotIdentifier(String snapshotIdentifier) Sets the value ofCfnDBClusterMixinProps.getSnapshotIdentifier()sourceDbClusterIdentifier(String sourceDbClusterIdentifier) Sets the value ofCfnDBClusterMixinProps.getSourceDbClusterIdentifier()storageEncrypted(Boolean storageEncrypted) Sets the value ofCfnDBClusterMixinProps.getStorageEncrypted()storageEncrypted(IResolvable storageEncrypted) Sets the value ofCfnDBClusterMixinProps.getStorageEncrypted()Sets the value ofCfnDBClusterMixinProps.getTags()useLatestRestorableTime(Boolean useLatestRestorableTime) Sets the value ofCfnDBClusterMixinProps.getUseLatestRestorableTime()useLatestRestorableTime(IResolvable useLatestRestorableTime) Sets the value ofCfnDBClusterMixinProps.getUseLatestRestorableTime()vpcSecurityGroupIds(List<? extends Object> vpcSecurityGroupIds) Sets the value ofCfnDBClusterMixinProps.getVpcSecurityGroupIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
associatedRoles
@Stability(Stable) public CfnDBClusterMixinProps.Builder associatedRoles(IResolvable associatedRoles) Sets the value ofCfnDBClusterMixinProps.getAssociatedRoles()- Parameters:
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.- Returns:
this
-
associatedRoles
@Stability(Stable) public CfnDBClusterMixinProps.Builder associatedRoles(List<? extends Object> associatedRoles) Sets the value ofCfnDBClusterMixinProps.getAssociatedRoles()- Parameters:
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.- Returns:
this
-
availabilityZones
@Stability(Stable) public CfnDBClusterMixinProps.Builder availabilityZones(List<String> availabilityZones) Sets the value ofCfnDBClusterMixinProps.getAvailabilityZones()- Parameters:
availabilityZones- Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.- Returns:
this
-
backupRetentionPeriod
@Stability(Stable) public CfnDBClusterMixinProps.Builder backupRetentionPeriod(Number backupRetentionPeriod) Sets the value ofCfnDBClusterMixinProps.getBackupRetentionPeriod()- Parameters:
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.- Returns:
this
-
copyTagsToSnapshot
@Stability(Stable) public CfnDBClusterMixinProps.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot) Sets the value ofCfnDBClusterMixinProps.getCopyTagsToSnapshot()- Parameters:
copyTagsToSnapshot- If set totrue, tags are copied to any snapshot of the DB cluster that is created..- Returns:
this
-
copyTagsToSnapshot
@Stability(Stable) public CfnDBClusterMixinProps.Builder copyTagsToSnapshot(IResolvable copyTagsToSnapshot) Sets the value ofCfnDBClusterMixinProps.getCopyTagsToSnapshot()- Parameters:
copyTagsToSnapshot- If set totrue, tags are copied to any snapshot of the DB cluster that is created..- Returns:
this
-
dbClusterIdentifier
@Stability(Stable) public CfnDBClusterMixinProps.Builder dbClusterIdentifier(String dbClusterIdentifier) Sets the value ofCfnDBClusterMixinProps.getDbClusterIdentifier()- Parameters:
dbClusterIdentifier- Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.- Returns:
this
-
dbClusterParameterGroupName
@Stability(Stable) public CfnDBClusterMixinProps.Builder dbClusterParameterGroupName(String dbClusterParameterGroupName) Sets the value ofCfnDBClusterMixinProps.getDbClusterParameterGroupName()- Parameters:
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.- Returns:
this
-
dbInstanceParameterGroupName
@Stability(Stable) public CfnDBClusterMixinProps.Builder dbInstanceParameterGroupName(String dbInstanceParameterGroupName) Sets the value ofCfnDBClusterMixinProps.getDbInstanceParameterGroupName()- Parameters:
dbInstanceParameterGroupName- The name of the DB parameter group to apply to all instances of the DB cluster. Used only in case of a major engine version upgrade requestNote that when you apply a parameter group using
DBInstanceParameterGroupName, parameter changes are applied immediately, not during the next maintenance window.Constraints - The DB parameter group must be in the same DB parameter group family as the target DB cluster version.
- The
DBInstanceParameterGroupNameparameter is only valid for major engine version upgrades.
- The
- Returns:
this
-
dbPort
Sets the value ofCfnDBClusterMixinProps.getDbPort()- Parameters:
dbPort- The port number on which the DB instances in the DB cluster accept connections. If not specified, the default port used is8182.The
Portproperty will soon be deprecated. Please update existing templates to use the newDBPortproperty that has the same functionality.- Returns:
this
-
dbSubnetGroupName
@Stability(Stable) public CfnDBClusterMixinProps.Builder dbSubnetGroupName(String dbSubnetGroupName) Sets the value ofCfnDBClusterMixinProps.getDbSubnetGroupName()- Parameters:
dbSubnetGroupName- Specifies information on the subnet group associated with the DB cluster, including the name, description, and subnets in the subnet group.- Returns:
this
-
deletionProtection
@Stability(Stable) public CfnDBClusterMixinProps.Builder deletionProtection(Boolean deletionProtection) Sets the value ofCfnDBClusterMixinProps.getDeletionProtection()- Parameters:
deletionProtection- Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.- Returns:
this
-
deletionProtection
@Stability(Stable) public CfnDBClusterMixinProps.Builder deletionProtection(IResolvable deletionProtection) Sets the value ofCfnDBClusterMixinProps.getDeletionProtection()- Parameters:
deletionProtection- Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.- Returns:
this
-
enableCloudwatchLogsExports
@Stability(Stable) public CfnDBClusterMixinProps.Builder enableCloudwatchLogsExports(List<String> enableCloudwatchLogsExports) Sets the value ofCfnDBClusterMixinProps.getEnableCloudwatchLogsExports()- Parameters:
enableCloudwatchLogsExports- Specifies a list of log types that are enabled for export to CloudWatch Logs.- Returns:
this
-
engineVersion
Sets the value ofCfnDBClusterMixinProps.getEngineVersion()- Parameters:
engineVersion- Indicates the database engine version.- Returns:
this
-
iamAuthEnabled
Sets the value ofCfnDBClusterMixinProps.getIamAuthEnabled()- Parameters:
iamAuthEnabled- True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.- Returns:
this
-
iamAuthEnabled
Sets the value ofCfnDBClusterMixinProps.getIamAuthEnabled()- Parameters:
iamAuthEnabled- True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.- Returns:
this
-
kmsKeyId
Sets the value ofCfnDBClusterMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the database instances in the DB cluster, such asarn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If you enable theStorageEncryptedproperty but don't specify this property, the default KMS key is used. If you specify this property, you must set theStorageEncryptedproperty totrue.- Returns:
this
-
kmsKeyId
Sets the value ofCfnDBClusterMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the database instances in the DB cluster, such asarn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. If you enable theStorageEncryptedproperty but don't specify this property, the default KMS key is used. If you specify this property, you must set theStorageEncryptedproperty totrue.- Returns:
this
-
preferredBackupWindow
@Stability(Stable) public CfnDBClusterMixinProps.Builder preferredBackupWindow(String preferredBackupWindow) Sets the value ofCfnDBClusterMixinProps.getPreferredBackupWindow()- Parameters:
preferredBackupWindow- Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by theBackupRetentionPeriod. An update may require some interruption.- Returns:
this
-
preferredMaintenanceWindow
@Stability(Stable) public CfnDBClusterMixinProps.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofCfnDBClusterMixinProps.getPreferredMaintenanceWindow()- Parameters:
preferredMaintenanceWindow- Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).- Returns:
this
-
restoreToTime
Sets the value ofCfnDBClusterMixinProps.getRestoreToTime()- Parameters:
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.
- Returns:
this
-
restoreType
Sets the value ofCfnDBClusterMixinProps.getRestoreType()- Parameters:
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.
- Returns:
this
-
serverlessScalingConfiguration
@Stability(Stable) public CfnDBClusterMixinProps.Builder serverlessScalingConfiguration(IResolvable serverlessScalingConfiguration) Sets the value ofCfnDBClusterMixinProps.getServerlessScalingConfiguration()- Parameters:
serverlessScalingConfiguration- Contains the scaling configuration of an Neptune Serverless DB cluster.- Returns:
this
-
serverlessScalingConfiguration
@Stability(Stable) public CfnDBClusterMixinProps.Builder serverlessScalingConfiguration(CfnDBClusterPropsMixin.ServerlessScalingConfigurationProperty serverlessScalingConfiguration) Sets the value ofCfnDBClusterMixinProps.getServerlessScalingConfiguration()- Parameters:
serverlessScalingConfiguration- Contains the scaling configuration of an Neptune Serverless DB cluster.- Returns:
this
-
snapshotIdentifier
@Stability(Stable) public CfnDBClusterMixinProps.Builder snapshotIdentifier(String snapshotIdentifier) Sets the value ofCfnDBClusterMixinProps.getSnapshotIdentifier()- Parameters:
snapshotIdentifier- Specifies the identifier for a DB cluster snapshot. Must match the identifier of an existing snapshot. After you restore a DB cluster using aSnapshotIdentifier, you must specify the sameSnapshotIdentifierfor 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 theSnapshotIdentifier, and the original DB cluster is deleted.- Returns:
this
-
sourceDbClusterIdentifier
@Stability(Stable) public CfnDBClusterMixinProps.Builder sourceDbClusterIdentifier(String sourceDbClusterIdentifier) Sets the value ofCfnDBClusterMixinProps.getSourceDbClusterIdentifier()- Parameters:
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.
- Returns:
this
-
storageEncrypted
Sets the value ofCfnDBClusterMixinProps.getStorageEncrypted()- Parameters:
storageEncrypted- Indicates whether the DB cluster is encrypted. If you specify theKmsKeyIdproperty, then you must enable encryption and set this property totrue.If you enable the
StorageEncryptedproperty but don't specify theKmsKeyIdproperty, then the default KMS key is used. If you specify theKmsKeyIdproperty, then that KMS key is used to encrypt the database instances in the DB cluster.If you specify the
SourceDBClusterIdentifierproperty, and don't specify this property or disable it, the value is inherited from the source DB cluster. If the source DB cluster is encrypted, theKmsKeyIdproperty from the source cluster is used.If you specify the
DBSnapshotIdentifierand don't specify this property or disable it, the value is inherited from the snapshot and the specifiedKmsKeyIdproperty from the snapshot is used.- Returns:
this
-
storageEncrypted
@Stability(Stable) public CfnDBClusterMixinProps.Builder storageEncrypted(IResolvable storageEncrypted) Sets the value ofCfnDBClusterMixinProps.getStorageEncrypted()- Parameters:
storageEncrypted- Indicates whether the DB cluster is encrypted. If you specify theKmsKeyIdproperty, then you must enable encryption and set this property totrue.If you enable the
StorageEncryptedproperty but don't specify theKmsKeyIdproperty, then the default KMS key is used. If you specify theKmsKeyIdproperty, then that KMS key is used to encrypt the database instances in the DB cluster.If you specify the
SourceDBClusterIdentifierproperty, and don't specify this property or disable it, the value is inherited from the source DB cluster. If the source DB cluster is encrypted, theKmsKeyIdproperty from the source cluster is used.If you specify the
DBSnapshotIdentifierand don't specify this property or disable it, the value is inherited from the snapshot and the specifiedKmsKeyIdproperty from the snapshot is used.- Returns:
this
-
tags
Sets the value ofCfnDBClusterMixinProps.getTags()- Parameters:
tags- The tags assigned to this cluster.- Returns:
this
-
useLatestRestorableTime
@Stability(Stable) public CfnDBClusterMixinProps.Builder useLatestRestorableTime(Boolean useLatestRestorableTime) Sets the value ofCfnDBClusterMixinProps.getUseLatestRestorableTime()- Parameters:
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.
- Returns:
this
-
useLatestRestorableTime
@Stability(Stable) public CfnDBClusterMixinProps.Builder useLatestRestorableTime(IResolvable useLatestRestorableTime) Sets the value ofCfnDBClusterMixinProps.getUseLatestRestorableTime()- Parameters:
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.
- Returns:
this
-
vpcSecurityGroupIds
@Stability(Stable) public CfnDBClusterMixinProps.Builder vpcSecurityGroupIds(List<? extends Object> vpcSecurityGroupIds) Sets the value ofCfnDBClusterMixinProps.getVpcSecurityGroupIds()- Parameters:
vpcSecurityGroupIds- Provides a list of VPC security groups that the DB cluster belongs to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDBClusterMixinProps>- Returns:
- a new instance of
CfnDBClusterMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-