Class CfnReplicationInstanceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationInstanceMixinProps>
- Enclosing interface:
CfnReplicationInstanceMixinProps
CfnReplicationInstanceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocatedStorage(Number allocatedStorage) Sets the value ofCfnReplicationInstanceMixinProps.getAllocatedStorage()allowMajorVersionUpgrade(Boolean allowMajorVersionUpgrade) Sets the value ofCfnReplicationInstanceMixinProps.getAllowMajorVersionUpgrade()allowMajorVersionUpgrade(IResolvable allowMajorVersionUpgrade) Sets the value ofCfnReplicationInstanceMixinProps.getAllowMajorVersionUpgrade()autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Sets the value ofCfnReplicationInstanceMixinProps.getAutoMinorVersionUpgrade()autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) Sets the value ofCfnReplicationInstanceMixinProps.getAutoMinorVersionUpgrade()availabilityZone(String availabilityZone) Sets the value ofCfnReplicationInstanceMixinProps.getAvailabilityZone()build()Builds the configured instance.dnsNameServers(String dnsNameServers) Sets the value ofCfnReplicationInstanceMixinProps.getDnsNameServers()engineVersion(String engineVersion) Sets the value ofCfnReplicationInstanceMixinProps.getEngineVersion()Sets the value ofCfnReplicationInstanceMixinProps.getKmsKeyId()Sets the value ofCfnReplicationInstanceMixinProps.getMultiAz()multiAz(IResolvable multiAz) Sets the value ofCfnReplicationInstanceMixinProps.getMultiAz()networkType(String networkType) Sets the value ofCfnReplicationInstanceMixinProps.getNetworkType()preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofCfnReplicationInstanceMixinProps.getPreferredMaintenanceWindow()publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnReplicationInstanceMixinProps.getPubliclyAccessible()publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnReplicationInstanceMixinProps.getPubliclyAccessible()replicationInstanceClass(String replicationInstanceClass) Sets the value ofCfnReplicationInstanceMixinProps.getReplicationInstanceClass()replicationInstanceIdentifier(String replicationInstanceIdentifier) Sets the value ofCfnReplicationInstanceMixinProps.getReplicationInstanceIdentifier()replicationSubnetGroupIdentifier(String replicationSubnetGroupIdentifier) Sets the value ofCfnReplicationInstanceMixinProps.getReplicationSubnetGroupIdentifier()resourceIdentifier(String resourceIdentifier) Sets the value ofCfnReplicationInstanceMixinProps.getResourceIdentifier()Sets the value ofCfnReplicationInstanceMixinProps.getTags()vpcSecurityGroupIds(List<String> vpcSecurityGroupIds) Sets the value ofCfnReplicationInstanceMixinProps.getVpcSecurityGroupIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocatedStorage
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder allocatedStorage(Number allocatedStorage) Sets the value ofCfnReplicationInstanceMixinProps.getAllocatedStorage()- Parameters:
allocatedStorage- The amount of storage (in gigabytes) to be initially allocated for the replication instance.- Returns:
this
-
allowMajorVersionUpgrade
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder allowMajorVersionUpgrade(Boolean allowMajorVersionUpgrade) Sets the value ofCfnReplicationInstanceMixinProps.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
truewhen specifying a value for theEngineVersionparameter that is a different major version than the replication instance's current version.- Returns:
this
-
allowMajorVersionUpgrade
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder allowMajorVersionUpgrade(IResolvable allowMajorVersionUpgrade) Sets the value ofCfnReplicationInstanceMixinProps.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
truewhen specifying a value for theEngineVersionparameter that is a different major version than the replication instance's current version.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Sets the value ofCfnReplicationInstanceMixinProps.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 CfnReplicationInstanceMixinProps.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) Sets the value ofCfnReplicationInstanceMixinProps.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 CfnReplicationInstanceMixinProps.Builder availabilityZone(String availabilityZone) Sets the value ofCfnReplicationInstanceMixinProps.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
-
dnsNameServers
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder dnsNameServers(String dnsNameServers) Sets the value ofCfnReplicationInstanceMixinProps.getDnsNameServers()- Parameters:
dnsNameServers- A list of custom DNS name servers supported for the replication instance to access your on-premise source or target database. This list overrides the default name servers supported by the replication instance. You can specify a comma-separated list of internet addresses for up to four on-premise DNS name servers. For example:"1.1.1.1,2.2.2.2,3.3.3.3,4.4.4.4"- Returns:
this
-
engineVersion
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder engineVersion(String engineVersion) Sets the value ofCfnReplicationInstanceMixinProps.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 ofCfnReplicationInstanceMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- An AWS key identifier that is used to encrypt the data on the replication instance. If you don't specify a value for theKmsKeyIdparameter, AWS DMS uses your default encryption key.AWS 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 ofCfnReplicationInstanceMixinProps.getMultiAz()- Parameters:
multiAz- Specifies whether the replication instance is a Multi-AZ deployment. You can't set theAvailabilityZoneparameter if the Multi-AZ parameter is set totrue.- Returns:
this
-
multiAz
Sets the value ofCfnReplicationInstanceMixinProps.getMultiAz()- Parameters:
multiAz- Specifies whether the replication instance is a Multi-AZ deployment. You can't set theAvailabilityZoneparameter if the Multi-AZ parameter is set totrue.- Returns:
this
-
networkType
Sets the value ofCfnReplicationInstanceMixinProps.getNetworkType()- Parameters:
networkType- The type of IP address protocol used by a replication instance, such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported.- Returns:
this
-
preferredMaintenanceWindow
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofCfnReplicationInstanceMixinProps.getPreferredMaintenanceWindow()- Parameters:
preferredMaintenanceWindow- The weekly time range during which system maintenance can occur, in UTC. Format :ddd:hh24:mi-ddd:hh24:miDefault : 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|SunConstraints : Minimum 30-minute window.
- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnReplicationInstanceMixinProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- Specifies the accessibility options for the replication instance. A value oftruerepresents an instance with a public IP address. A value offalserepresents an instance with a private IP address. The default value istrue.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnReplicationInstanceMixinProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- Specifies the accessibility options for the replication instance. A value oftruerepresents an instance with a public IP address. A value offalserepresents an instance with a private IP address. The default value istrue.- Returns:
this
-
replicationInstanceClass
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder replicationInstanceClass(String replicationInstanceClass) Sets the value ofCfnReplicationInstanceMixinProps.getReplicationInstanceClass()- Parameters:
replicationInstanceClass- The compute and memory capacity of the replication instance as defined for the specified replication instance class. 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
-
replicationInstanceIdentifier
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder replicationInstanceIdentifier(String replicationInstanceIdentifier) Sets the value ofCfnReplicationInstanceMixinProps.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 CfnReplicationInstanceMixinProps.Builder replicationSubnetGroupIdentifier(String replicationSubnetGroupIdentifier) Sets the value ofCfnReplicationInstanceMixinProps.getReplicationSubnetGroupIdentifier()- Parameters:
replicationSubnetGroupIdentifier- A subnet group to associate with the replication instance.- Returns:
this
-
resourceIdentifier
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder resourceIdentifier(String resourceIdentifier) Sets the value ofCfnReplicationInstanceMixinProps.getResourceIdentifier()- Parameters:
resourceIdentifier- A display name for the resource identifier at the end of theEndpointArnresponse parameter that is returned in the createdEndpointobject. 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 theEndpointArnvaluearn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. If you don't specify aResourceIdentifiervalue, AWS DMS generates a default identifier value for the end ofEndpointArn.- Returns:
this
-
tags
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnReplicationInstanceMixinProps.getTags()- Parameters:
tags- One or more tags to be assigned to the replication instance.- Returns:
this
-
vpcSecurityGroupIds
@Stability(Stable) public CfnReplicationInstanceMixinProps.Builder vpcSecurityGroupIds(List<String> vpcSecurityGroupIds) Sets the value ofCfnReplicationInstanceMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnReplicationInstanceMixinProps>- Returns:
- a new instance of
CfnReplicationInstanceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-