Class CfnReplicationInstanceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationInstanceProps>
- Enclosing interface:
CfnReplicationInstanceProps
CfnReplicationInstanceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallocatedStorage
(Number allocatedStorage) Sets the value ofCfnReplicationInstanceProps.getAllocatedStorage()
allowMajorVersionUpgrade
(Boolean allowMajorVersionUpgrade) Sets the value ofCfnReplicationInstanceProps.getAllowMajorVersionUpgrade()
allowMajorVersionUpgrade
(IResolvable allowMajorVersionUpgrade) Sets the value ofCfnReplicationInstanceProps.getAllowMajorVersionUpgrade()
autoMinorVersionUpgrade
(Boolean autoMinorVersionUpgrade) Sets the value ofCfnReplicationInstanceProps.getAutoMinorVersionUpgrade()
autoMinorVersionUpgrade
(IResolvable autoMinorVersionUpgrade) Sets the value ofCfnReplicationInstanceProps.getAutoMinorVersionUpgrade()
availabilityZone
(String availabilityZone) Sets the value ofCfnReplicationInstanceProps.getAvailabilityZone()
build()
Builds the configured instance.engineVersion
(String engineVersion) Sets the value ofCfnReplicationInstanceProps.getEngineVersion()
Sets the value ofCfnReplicationInstanceProps.getKmsKeyId()
Sets the value ofCfnReplicationInstanceProps.getMultiAz()
multiAz
(IResolvable multiAz) Sets the value ofCfnReplicationInstanceProps.getMultiAz()
preferredMaintenanceWindow
(String preferredMaintenanceWindow) Sets the value ofCfnReplicationInstanceProps.getPreferredMaintenanceWindow()
publiclyAccessible
(Boolean publiclyAccessible) Sets the value ofCfnReplicationInstanceProps.getPubliclyAccessible()
publiclyAccessible
(IResolvable publiclyAccessible) Sets the value ofCfnReplicationInstanceProps.getPubliclyAccessible()
replicationInstanceClass
(String replicationInstanceClass) Sets the value ofCfnReplicationInstanceProps.getReplicationInstanceClass()
replicationInstanceIdentifier
(String replicationInstanceIdentifier) Sets the value ofCfnReplicationInstanceProps.getReplicationInstanceIdentifier()
replicationSubnetGroupIdentifier
(String replicationSubnetGroupIdentifier) Sets the value ofCfnReplicationInstanceProps.getReplicationSubnetGroupIdentifier()
resourceIdentifier
(String resourceIdentifier) Sets the value ofCfnReplicationInstanceProps.getResourceIdentifier()
Sets the value ofCfnReplicationInstanceProps.getTags()
vpcSecurityGroupIds
(List<String> vpcSecurityGroupIds) Sets the value ofCfnReplicationInstanceProps.getVpcSecurityGroupIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
replicationInstanceClass
@Stability(Stable) public CfnReplicationInstanceProps.Builder replicationInstanceClass(String replicationInstanceClass) Sets the value ofCfnReplicationInstanceProps.getReplicationInstanceClass()
- Parameters:
replicationInstanceClass
- The compute and memory capacity of the replication instance as defined for the specified replication instance class. This parameter is required. For example, to specify the instance class dms.c4.large, set this parameter to"dms.c4.large"
. For more information on the settings and capacities for the available replication instance classes, see Selecting the right AWS DMS replication instance for your migration in the AWS Database Migration Service User Guide .- Returns:
this
-
allocatedStorage
@Stability(Stable) public CfnReplicationInstanceProps.Builder allocatedStorage(Number allocatedStorage) Sets the value ofCfnReplicationInstanceProps.getAllocatedStorage()
- Parameters:
allocatedStorage
- The amount of storage (in gigabytes) to be initially allocated for the replication instance.- Returns:
this
-
allowMajorVersionUpgrade
@Stability(Stable) public CfnReplicationInstanceProps.Builder allowMajorVersionUpgrade(Boolean allowMajorVersionUpgrade) Sets the value ofCfnReplicationInstanceProps.getAllowMajorVersionUpgrade()
- Parameters:
allowMajorVersionUpgrade
- Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the change is asynchronously applied as soon as possible.This parameter must be set to
true
when specifying a value for theEngineVersion
parameter that is a different major version than the replication instance's current version.- Returns:
this
-
allowMajorVersionUpgrade
@Stability(Stable) public CfnReplicationInstanceProps.Builder allowMajorVersionUpgrade(IResolvable allowMajorVersionUpgrade) Sets the value ofCfnReplicationInstanceProps.getAllowMajorVersionUpgrade()
- Parameters:
allowMajorVersionUpgrade
- Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the change is asynchronously applied as soon as possible.This parameter must be set to
true
when specifying a value for theEngineVersion
parameter that is a different major version than the replication instance's current version.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnReplicationInstanceProps.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Sets the value ofCfnReplicationInstanceProps.getAutoMinorVersionUpgrade()
- Parameters:
autoMinorVersionUpgrade
- A value that indicates whether minor engine upgrades are applied automatically to the replication instance during the maintenance window. This parameter defaults totrue
.Default:
true
- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnReplicationInstanceProps.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) Sets the value ofCfnReplicationInstanceProps.getAutoMinorVersionUpgrade()
- Parameters:
autoMinorVersionUpgrade
- A value that indicates whether minor engine upgrades are applied automatically to the replication instance during the maintenance window. This parameter defaults totrue
.Default:
true
- Returns:
this
-
availabilityZone
@Stability(Stable) public CfnReplicationInstanceProps.Builder availabilityZone(String availabilityZone) Sets the value ofCfnReplicationInstanceProps.getAvailabilityZone()
- Parameters:
availabilityZone
- The Availability Zone that the replication instance will be created in. The default value is a random, system-chosen Availability Zone in the endpoint's AWS Region , for exampleus-east-1d
.- Returns:
this
-
engineVersion
Sets the value ofCfnReplicationInstanceProps.getEngineVersion()
- Parameters:
engineVersion
- The engine version number of the replication instance. If an engine version number is not specified when a replication instance is created, the default is the latest engine version available.- Returns:
this
-
kmsKeyId
Sets the value ofCfnReplicationInstanceProps.getKmsKeyId()
- Parameters:
kmsKeyId
- An AWS KMS key identifier that is used to encrypt the data on the replication instance. If you don't specify a value for theKmsKeyId
parameter, AWS DMS 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 Region .
- Returns:
this
-
multiAz
Sets the value ofCfnReplicationInstanceProps.getMultiAz()
- Parameters:
multiAz
- Specifies whether the replication instance is a Multi-AZ deployment. You can't set theAvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.- Returns:
this
-
multiAz
Sets the value ofCfnReplicationInstanceProps.getMultiAz()
- Parameters:
multiAz
- Specifies whether the replication instance is a Multi-AZ deployment. You can't set theAvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.- Returns:
this
-
preferredMaintenanceWindow
@Stability(Stable) public CfnReplicationInstanceProps.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofCfnReplicationInstanceProps.getPreferredMaintenanceWindow()
- Parameters:
preferredMaintenanceWindow
- The weekly time range during which system maintenance can occur, in UTC. Format :ddd:hh24:mi-ddd:hh24:mi
Default : A 30-minute window selected at random from an 8-hour block of time per AWS Region , occurring on a random day of the week.
Valid days (
ddd
):Mon
|Tue
|Wed
|Thu
|Fri
|Sat
|Sun
Constraints : Minimum 30-minute window.
- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnReplicationInstanceProps.Builder publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnReplicationInstanceProps.getPubliclyAccessible()
- Parameters:
publiclyAccessible
- Specifies the accessibility options for the replication instance. A value oftrue
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnReplicationInstanceProps.Builder publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnReplicationInstanceProps.getPubliclyAccessible()
- Parameters:
publiclyAccessible
- Specifies the accessibility options for the replication instance. A value oftrue
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.- Returns:
this
-
replicationInstanceIdentifier
@Stability(Stable) public CfnReplicationInstanceProps.Builder replicationInstanceIdentifier(String replicationInstanceIdentifier) Sets the value ofCfnReplicationInstanceProps.getReplicationInstanceIdentifier()
- Parameters:
replicationInstanceIdentifier
- The replication instance identifier. This parameter is stored as a lowercase string. Constraints:- Must contain 1-63 alphanumeric characters or hyphens.
- First character must be a letter.
- Can't end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
- Returns:
this
-
replicationSubnetGroupIdentifier
@Stability(Stable) public CfnReplicationInstanceProps.Builder replicationSubnetGroupIdentifier(String replicationSubnetGroupIdentifier) Sets the value ofCfnReplicationInstanceProps.getReplicationSubnetGroupIdentifier()
- Parameters:
replicationSubnetGroupIdentifier
- A subnet group to associate with the replication instance.- Returns:
this
-
resourceIdentifier
@Stability(Stable) public CfnReplicationInstanceProps.Builder resourceIdentifier(String resourceIdentifier) Sets the value ofCfnReplicationInstanceProps.getResourceIdentifier()
- Parameters:
resourceIdentifier
- A display name for the resource identifier at the end of theEndpointArn
response parameter that is returned in the createdEndpoint
object. The value for this parameter can have up to 31 characters. It can contain only ASCII letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter, such asExample-App-ARN1
. For example, this value might result in theEndpointArn
valuearn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1
. If you don't specify aResourceIdentifier
value, AWS DMS generates a default identifier value for the end ofEndpointArn
.- Returns:
this
-
tags
Sets the value ofCfnReplicationInstanceProps.getTags()
- Parameters:
tags
- One or more tags to be assigned to the replication instance.- Returns:
this
-
vpcSecurityGroupIds
@Stability(Stable) public CfnReplicationInstanceProps.Builder vpcSecurityGroupIds(List<String> vpcSecurityGroupIds) Sets the value ofCfnReplicationInstanceProps.getVpcSecurityGroupIds()
- Parameters:
vpcSecurityGroupIds
- Specifies the virtual private cloud (VPC) security group to be used with the replication instance. The VPC security group must work with the VPC containing the replication instance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReplicationInstanceProps>
- Returns:
- a new instance of
CfnReplicationInstanceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-