pub struct Builder { /* private fields */ }
Expand description
A builder for ReplicationInstance
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn replication_instance_identifier(self, input: impl Into<String>) -> Self
pub fn replication_instance_identifier(self, input: impl Into<String>) -> Self
The replication instance identifier is a required parameter. This parameter is stored as a lowercase string.
Constraints:
-
Must contain 1-63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example: myrepinstance
sourcepub fn set_replication_instance_identifier(self, input: Option<String>) -> Self
pub fn set_replication_instance_identifier(self, input: Option<String>) -> Self
The replication instance identifier is a required parameter. This parameter is stored as a lowercase string.
Constraints:
-
Must contain 1-63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example: myrepinstance
sourcepub fn replication_instance_class(self, input: impl Into<String>) -> Self
pub fn replication_instance_class(self, input: impl Into<String>) -> Self
The compute and memory capacity of the replication instance as defined for the specified replication instance class. It is a required parameter, although a default value is pre-selected in the DMS console.
For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration.
sourcepub fn set_replication_instance_class(self, input: Option<String>) -> Self
pub fn set_replication_instance_class(self, input: Option<String>) -> Self
The compute and memory capacity of the replication instance as defined for the specified replication instance class. It is a required parameter, although a default value is pre-selected in the DMS console.
For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration.
sourcepub fn replication_instance_status(self, input: impl Into<String>) -> Self
pub fn replication_instance_status(self, input: impl Into<String>) -> Self
The status of the replication instance. The possible return values include:
-
"available"
-
"creating"
-
"deleted"
-
"deleting"
-
"failed"
-
"modifying"
-
"upgrading"
-
"rebooting"
-
"resetting-master-credentials"
-
"storage-full"
-
"incompatible-credentials"
-
"incompatible-network"
-
"maintenance"
sourcepub fn set_replication_instance_status(self, input: Option<String>) -> Self
pub fn set_replication_instance_status(self, input: Option<String>) -> Self
The status of the replication instance. The possible return values include:
-
"available"
-
"creating"
-
"deleted"
-
"deleting"
-
"failed"
-
"modifying"
-
"upgrading"
-
"rebooting"
-
"resetting-master-credentials"
-
"storage-full"
-
"incompatible-credentials"
-
"incompatible-network"
-
"maintenance"
sourcepub fn allocated_storage(self, input: i32) -> Self
pub fn allocated_storage(self, input: i32) -> Self
The amount of storage (in gigabytes) that is allocated for the replication instance.
sourcepub fn set_allocated_storage(self, input: Option<i32>) -> Self
pub fn set_allocated_storage(self, input: Option<i32>) -> Self
The amount of storage (in gigabytes) that is allocated for the replication instance.
sourcepub fn instance_create_time(self, input: DateTime) -> Self
pub fn instance_create_time(self, input: DateTime) -> Self
The time the replication instance was created.
sourcepub fn set_instance_create_time(self, input: Option<DateTime>) -> Self
pub fn set_instance_create_time(self, input: Option<DateTime>) -> Self
The time the replication instance was created.
sourcepub fn vpc_security_groups(self, input: VpcSecurityGroupMembership) -> Self
pub fn vpc_security_groups(self, input: VpcSecurityGroupMembership) -> Self
Appends an item to vpc_security_groups
.
To override the contents of this collection use set_vpc_security_groups
.
The VPC security group for the instance.
sourcepub fn set_vpc_security_groups(
self,
input: Option<Vec<VpcSecurityGroupMembership>>
) -> Self
pub fn set_vpc_security_groups(
self,
input: Option<Vec<VpcSecurityGroupMembership>>
) -> Self
The VPC security group for the instance.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone for the instance.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone for the instance.
sourcepub fn replication_subnet_group(self, input: ReplicationSubnetGroup) -> Self
pub fn replication_subnet_group(self, input: ReplicationSubnetGroup) -> Self
The subnet group for the replication instance.
sourcepub fn set_replication_subnet_group(
self,
input: Option<ReplicationSubnetGroup>
) -> Self
pub fn set_replication_subnet_group(
self,
input: Option<ReplicationSubnetGroup>
) -> Self
The subnet group for the replication instance.
sourcepub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
pub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
The maintenance window times for the replication instance. Any pending upgrades to the replication instance are performed during this time.
sourcepub fn set_preferred_maintenance_window(self, input: Option<String>) -> Self
pub fn set_preferred_maintenance_window(self, input: Option<String>) -> Self
The maintenance window times for the replication instance. Any pending upgrades to the replication instance are performed during this time.
sourcepub fn pending_modified_values(
self,
input: ReplicationPendingModifiedValues
) -> Self
pub fn pending_modified_values(
self,
input: ReplicationPendingModifiedValues
) -> Self
The pending modification values.
sourcepub fn set_pending_modified_values(
self,
input: Option<ReplicationPendingModifiedValues>
) -> Self
pub fn set_pending_modified_values(
self,
input: Option<ReplicationPendingModifiedValues>
) -> Self
The pending modification values.
sourcepub fn multi_az(self, input: bool) -> Self
pub fn multi_az(self, input: bool) -> Self
Specifies whether the replication instance is a Multi-AZ deployment. You can't set the AvailabilityZone
parameter if the Multi-AZ parameter is set to true
.
sourcepub fn set_multi_az(self, input: Option<bool>) -> Self
pub fn set_multi_az(self, input: Option<bool>) -> Self
Specifies whether the replication instance is a Multi-AZ deployment. You can't set the AvailabilityZone
parameter if the Multi-AZ parameter is set to true
.
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
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.
When modifying a major engine version of an instance, also set AllowMajorVersionUpgrade
to true
.
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
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.
When modifying a major engine version of an instance, also set AllowMajorVersionUpgrade
to true
.
sourcepub fn auto_minor_version_upgrade(self, input: bool) -> Self
pub fn auto_minor_version_upgrade(self, input: bool) -> Self
Boolean value indicating if minor version upgrades will be automatically applied to the instance.
sourcepub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self
pub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self
Boolean value indicating if minor version upgrades will be automatically applied to the instance.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
An KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the KmsKeyId
parameter, then DMS uses your default encryption key.
KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Region.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
An KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the KmsKeyId
parameter, then DMS uses your default encryption key.
KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Region.
sourcepub fn replication_instance_arn(self, input: impl Into<String>) -> Self
pub fn replication_instance_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the replication instance.
sourcepub fn set_replication_instance_arn(self, input: Option<String>) -> Self
pub fn set_replication_instance_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the replication instance.
sourcepub fn replication_instance_public_ip_address(
self,
input: impl Into<String>
) -> Self
👎Deprecated
pub fn replication_instance_public_ip_address(
self,
input: impl Into<String>
) -> Self
The public IP address of the replication instance.
sourcepub fn set_replication_instance_public_ip_address(
self,
input: Option<String>
) -> Self
👎Deprecated
pub fn set_replication_instance_public_ip_address(
self,
input: Option<String>
) -> Self
The public IP address of the replication instance.
sourcepub fn replication_instance_private_ip_address(
self,
input: impl Into<String>
) -> Self
👎Deprecated
pub fn replication_instance_private_ip_address(
self,
input: impl Into<String>
) -> Self
The private IP address of the replication instance.
sourcepub fn set_replication_instance_private_ip_address(
self,
input: Option<String>
) -> Self
👎Deprecated
pub fn set_replication_instance_private_ip_address(
self,
input: Option<String>
) -> Self
The private IP address of the replication instance.
sourcepub fn replication_instance_public_ip_addresses(
self,
input: impl Into<String>
) -> Self
pub fn replication_instance_public_ip_addresses(
self,
input: impl Into<String>
) -> Self
Appends an item to replication_instance_public_ip_addresses
.
To override the contents of this collection use set_replication_instance_public_ip_addresses
.
One or more public IP addresses for the replication instance.
sourcepub fn set_replication_instance_public_ip_addresses(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_replication_instance_public_ip_addresses(
self,
input: Option<Vec<String>>
) -> Self
One or more public IP addresses for the replication instance.
sourcepub fn replication_instance_private_ip_addresses(
self,
input: impl Into<String>
) -> Self
pub fn replication_instance_private_ip_addresses(
self,
input: impl Into<String>
) -> Self
Appends an item to replication_instance_private_ip_addresses
.
To override the contents of this collection use set_replication_instance_private_ip_addresses
.
One or more private IP addresses for the replication instance.
sourcepub fn set_replication_instance_private_ip_addresses(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_replication_instance_private_ip_addresses(
self,
input: Option<Vec<String>>
) -> Self
One or more private IP addresses for the replication instance.
sourcepub fn replication_instance_ipv6_addresses(
self,
input: impl Into<String>
) -> Self
pub fn replication_instance_ipv6_addresses(
self,
input: impl Into<String>
) -> Self
Appends an item to replication_instance_ipv6_addresses
.
To override the contents of this collection use set_replication_instance_ipv6_addresses
.
One or more IPv6 addresses for the replication instance.
sourcepub fn set_replication_instance_ipv6_addresses(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_replication_instance_ipv6_addresses(
self,
input: Option<Vec<String>>
) -> Self
One or more IPv6 addresses for the replication instance.
sourcepub fn publicly_accessible(self, input: bool) -> Self
pub fn publicly_accessible(self, input: bool) -> Self
Specifies the accessibility options for the replication instance. A value of true
represents an instance with a public IP address. A value of false
represents an instance with a private IP address. The default value is true
.
sourcepub fn set_publicly_accessible(self, input: Option<bool>) -> Self
pub fn set_publicly_accessible(self, input: Option<bool>) -> Self
Specifies the accessibility options for the replication instance. A value of true
represents an instance with a public IP address. A value of false
represents an instance with a private IP address. The default value is true
.
sourcepub fn secondary_availability_zone(self, input: impl Into<String>) -> Self
pub fn secondary_availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone of the standby replication instance in a Multi-AZ deployment.
sourcepub fn set_secondary_availability_zone(self, input: Option<String>) -> Self
pub fn set_secondary_availability_zone(self, input: Option<String>) -> Self
The Availability Zone of the standby replication instance in a Multi-AZ deployment.
sourcepub fn free_until(self, input: DateTime) -> Self
pub fn free_until(self, input: DateTime) -> Self
The expiration date of the free replication instance that is part of the Free DMS program.
sourcepub fn set_free_until(self, input: Option<DateTime>) -> Self
pub fn set_free_until(self, input: Option<DateTime>) -> Self
The expiration date of the free replication instance that is part of the Free DMS program.
sourcepub fn dns_name_servers(self, input: impl Into<String>) -> Self
pub fn dns_name_servers(self, input: impl Into<String>) -> Self
The DNS name servers supported for the replication instance to access your on-premise source or target database.
sourcepub fn set_dns_name_servers(self, input: Option<String>) -> Self
pub fn set_dns_name_servers(self, input: Option<String>) -> Self
The DNS name servers supported for the replication instance to access your on-premise source or target database.
sourcepub fn network_type(self, input: impl Into<String>) -> Self
pub fn network_type(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_network_type(self, input: Option<String>) -> Self
pub fn set_network_type(self, input: Option<String>) -> Self
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.
sourcepub fn build(self) -> ReplicationInstance
pub fn build(self) -> ReplicationInstance
Consumes the builder and constructs a ReplicationInstance
.