Class CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.dms.mixins.CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationConfigPropsMixin.ComputeConfigProperty>
- Enclosing interface:
CfnReplicationConfigPropsMixin.ComputeConfigProperty
@Stability(Stable)
public static final class CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicationConfigPropsMixin.ComputeConfigProperty>
A builder for
CfnReplicationConfigPropsMixin.ComputeConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) build()Builds the configured instance.dnsNameServers(String dnsNameServers) Sets the value ofCfnReplicationConfigPropsMixin.ComputeConfigProperty.getDnsNameServers()Sets the value ofCfnReplicationConfigPropsMixin.ComputeConfigProperty.getKmsKeyId()maxCapacityUnits(Number maxCapacityUnits) minCapacityUnits(Number minCapacityUnits) Sets the value ofCfnReplicationConfigPropsMixin.ComputeConfigProperty.getMultiAz()multiAz(IResolvable multiAz) Sets the value ofCfnReplicationConfigPropsMixin.ComputeConfigProperty.getMultiAz()preferredMaintenanceWindow(String preferredMaintenanceWindow) replicationSubnetGroupId(String replicationSubnetGroupId) vpcSecurityGroupIds(List<String> vpcSecurityGroupIds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Stable) public CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder availabilityZone(String availabilityZone) - Parameters:
availabilityZone- The Availability Zone where the AWS DMS Serverless replication using this configuration will run. The default value is a random, system-chosen Availability Zone in the configuration's AWS Region , for example,"us-west-2". You can't set this parameter if theMultiAZparameter is set totrue.- Returns:
this
-
dnsNameServers
@Stability(Stable) public CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder dnsNameServers(String dnsNameServers) Sets the value ofCfnReplicationConfigPropsMixin.ComputeConfigProperty.getDnsNameServers()- Parameters:
dnsNameServers- A list of custom DNS name servers supported for the AWS DMS Serverless replication to access your source or target database. This list overrides the default name servers supported by the AWS DMS Serverless replication. You can specify a comma-separated list of internet addresses for up to four DNS name servers. For example:"1.1.1.1,2.2.2.2,3.3.3.3,4.4.4.4"- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnReplicationConfigPropsMixin.ComputeConfigProperty.getKmsKeyId()- Parameters:
kmsKeyId- An AWS Key Management Service ( AWS ) key Amazon Resource Name (ARN) that is used to encrypt the data during AWS DMS Serverless replication. If you don't specify a value for theKmsKeyIdparameter, AWS DMS uses your default encryption key.AWS creates the default encryption key for your Amazon Web Services account. Your AWS account has a different default encryption key for each AWS Region .
- Returns:
this
-
maxCapacityUnits
@Stability(Stable) public CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder maxCapacityUnits(Number maxCapacityUnits) - Parameters:
maxCapacityUnits- Specifies the maximum value of the AWS DMS capacity units (DCUs) for which a given AWS DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 1 DCU as the minimum value allowed. The list of valid DCU values includes 1, 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. So, the maximum value that you can specify for AWS DMS Serverless is 384. TheMaxCapacityUnitsparameter is the only DCU parameter you are required to specify.- Returns:
this
-
minCapacityUnits
@Stability(Stable) public CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder minCapacityUnits(Number minCapacityUnits) - Parameters:
minCapacityUnits- Specifies the minimum value of the AWS DMS capacity units (DCUs) for which a given AWS DMS Serverless replication can be provisioned. A single DCU is 2GB of RAM, with 1 DCU as the minimum value allowed. The list of valid DCU values includes 1, 2, 4, 8, 16, 32, 64, 128, 192, 256, and 384. So, the minimum DCU value that you can specify for AWS DMS Serverless is 1. If you don't set this value, AWS DMS sets this parameter to the minimum DCU value allowed, 1. If there is no current source activity, AWS DMS scales down your replication until it reaches the value specified inMinCapacityUnits.- Returns:
this
-
multiAz
@Stability(Stable) public CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder multiAz(Boolean multiAz) Sets the value ofCfnReplicationConfigPropsMixin.ComputeConfigProperty.getMultiAz()- Parameters:
multiAz- Specifies whether the AWS DMS Serverless replication is a Multi-AZ deployment. You can't set theAvailabilityZoneparameter if theMultiAZparameter is set totrue.- Returns:
this
-
multiAz
@Stability(Stable) public CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder multiAz(IResolvable multiAz) Sets the value ofCfnReplicationConfigPropsMixin.ComputeConfigProperty.getMultiAz()- Parameters:
multiAz- Specifies whether the AWS DMS Serverless replication is a Multi-AZ deployment. You can't set theAvailabilityZoneparameter if theMultiAZparameter is set totrue.- Returns:
this
-
preferredMaintenanceWindow
@Stability(Stable) public CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofCfnReplicationConfigPropsMixin.ComputeConfigProperty.getPreferredMaintenanceWindow()- Parameters:
preferredMaintenanceWindow- The weekly time range during which system maintenance can occur for the AWS DMS Serverless replication, in Universal Coordinated Time (UTC). The format isddd:hh24:mi-ddd:hh24:mi.The default is a 30-minute window selected at random from an 8-hour block of time per AWS Region . This maintenance occurs on a random day of the week. Valid values for days of the week include
Mon,Tue,Wed,Thu,Fri,Sat, andSun.Constraints include a minimum 30-minute window.
- Returns:
this
-
replicationSubnetGroupId
@Stability(Stable) public CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder replicationSubnetGroupId(String replicationSubnetGroupId) Sets the value ofCfnReplicationConfigPropsMixin.ComputeConfigProperty.getReplicationSubnetGroupId()- Parameters:
replicationSubnetGroupId- Specifies a subnet group identifier to associate with the AWS DMS Serverless replication.- Returns:
this
-
vpcSecurityGroupIds
@Stability(Stable) public CfnReplicationConfigPropsMixin.ComputeConfigProperty.Builder vpcSecurityGroupIds(List<String> vpcSecurityGroupIds) - Parameters:
vpcSecurityGroupIds- Specifies the virtual private cloud (VPC) security group to use with the AWS DMS Serverless replication. The VPC security group must work with the VPC containing the replication.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReplicationConfigPropsMixin.ComputeConfigProperty>- Returns:
- a new instance of
CfnReplicationConfigPropsMixin.ComputeConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-