#[non_exhaustive]pub struct InstanceProfileBuilder { /* private fields */ }
Expand description
A builder for InstanceProfile
.
Implementations§
source§impl InstanceProfileBuilder
impl InstanceProfileBuilder
sourcepub fn instance_profile_arn(self, input: impl Into<String>) -> Self
pub fn instance_profile_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) string that uniquely identifies the instance profile.
sourcepub fn set_instance_profile_arn(self, input: Option<String>) -> Self
pub fn set_instance_profile_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) string that uniquely identifies the instance profile.
sourcepub fn get_instance_profile_arn(&self) -> &Option<String>
pub fn get_instance_profile_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) string that uniquely identifies the instance profile.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone where the instance profile runs.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone where the instance profile runs.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone where the instance profile runs.
sourcepub fn kms_key_arn(self, input: impl Into<String>) -> Self
pub fn kms_key_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the connection parameters for the instance profile.
If you don't specify a value for the KmsKeyArn
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_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the connection parameters for the instance profile.
If you don't specify a value for the KmsKeyArn
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 get_kms_key_arn(&self) -> &Option<String>
pub fn get_kms_key_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the connection parameters for the instance profile.
If you don't specify a value for the KmsKeyArn
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 publicly_accessible(self, input: bool) -> Self
pub fn publicly_accessible(self, input: bool) -> Self
Specifies the accessibility options for the instance profile. A value of true
represents an instance profile with a public IP address. A value of false
represents an instance profile 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 instance profile. A value of true
represents an instance profile with a public IP address. A value of false
represents an instance profile with a private IP address. The default value is true
.
sourcepub fn get_publicly_accessible(&self) -> &Option<bool>
pub fn get_publicly_accessible(&self) -> &Option<bool>
Specifies the accessibility options for the instance profile. A value of true
represents an instance profile with a public IP address. A value of false
represents an instance profile with a private IP address. The default value is true
.
sourcepub fn network_type(self, input: impl Into<String>) -> Self
pub fn network_type(self, input: impl Into<String>) -> Self
Specifies the network type for the instance profile. A value of IPV4
represents an instance profile with IPv4 network type and only supports IPv4 addressing. A value of IPV6
represents an instance profile with IPv6 network type and only supports IPv6 addressing. A value of DUAL
represents an instance profile with dual network type that supports IPv4 and IPv6 addressing.
sourcepub fn set_network_type(self, input: Option<String>) -> Self
pub fn set_network_type(self, input: Option<String>) -> Self
Specifies the network type for the instance profile. A value of IPV4
represents an instance profile with IPv4 network type and only supports IPv4 addressing. A value of IPV6
represents an instance profile with IPv6 network type and only supports IPv6 addressing. A value of DUAL
represents an instance profile with dual network type that supports IPv4 and IPv6 addressing.
sourcepub fn get_network_type(&self) -> &Option<String>
pub fn get_network_type(&self) -> &Option<String>
Specifies the network type for the instance profile. A value of IPV4
represents an instance profile with IPv4 network type and only supports IPv4 addressing. A value of IPV6
represents an instance profile with IPv6 network type and only supports IPv6 addressing. A value of DUAL
represents an instance profile with dual network type that supports IPv4 and IPv6 addressing.
sourcepub fn instance_profile_name(self, input: impl Into<String>) -> Self
pub fn instance_profile_name(self, input: impl Into<String>) -> Self
The user-friendly name for the instance profile.
sourcepub fn set_instance_profile_name(self, input: Option<String>) -> Self
pub fn set_instance_profile_name(self, input: Option<String>) -> Self
The user-friendly name for the instance profile.
sourcepub fn get_instance_profile_name(&self) -> &Option<String>
pub fn get_instance_profile_name(&self) -> &Option<String>
The user-friendly name for the instance profile.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the instance profile. Descriptions can have up to 31 characters. A description can contain only ASCII letters, digits, and hyphens ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the instance profile. Descriptions can have up to 31 characters. A description can contain only ASCII letters, digits, and hyphens ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the instance profile. Descriptions can have up to 31 characters. A description can contain only ASCII letters, digits, and hyphens ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter.
sourcepub fn instance_profile_creation_time(self, input: DateTime) -> Self
pub fn instance_profile_creation_time(self, input: DateTime) -> Self
The time the instance profile was created.
sourcepub fn set_instance_profile_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_instance_profile_creation_time(self, input: Option<DateTime>) -> Self
The time the instance profile was created.
sourcepub fn get_instance_profile_creation_time(&self) -> &Option<DateTime>
pub fn get_instance_profile_creation_time(&self) -> &Option<DateTime>
The time the instance profile was created.
sourcepub fn subnet_group_identifier(self, input: impl Into<String>) -> Self
pub fn subnet_group_identifier(self, input: impl Into<String>) -> Self
The identifier of the subnet group that is associated with the instance profile.
sourcepub fn set_subnet_group_identifier(self, input: Option<String>) -> Self
pub fn set_subnet_group_identifier(self, input: Option<String>) -> Self
The identifier of the subnet group that is associated with the instance profile.
sourcepub fn get_subnet_group_identifier(&self) -> &Option<String>
pub fn get_subnet_group_identifier(&self) -> &Option<String>
The identifier of the subnet group that is associated with the instance profile.
sourcepub fn vpc_security_groups(self, input: impl Into<String>) -> Self
pub fn vpc_security_groups(self, input: impl Into<String>) -> Self
Appends an item to vpc_security_groups
.
To override the contents of this collection use set_vpc_security_groups
.
The VPC security groups that are used with the instance profile. The VPC security group must work with the VPC containing the instance profile.
sourcepub fn set_vpc_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_vpc_security_groups(self, input: Option<Vec<String>>) -> Self
The VPC security groups that are used with the instance profile. The VPC security group must work with the VPC containing the instance profile.
sourcepub fn get_vpc_security_groups(&self) -> &Option<Vec<String>>
pub fn get_vpc_security_groups(&self) -> &Option<Vec<String>>
The VPC security groups that are used with the instance profile. The VPC security group must work with the VPC containing the instance profile.
sourcepub fn build(self) -> InstanceProfile
pub fn build(self) -> InstanceProfile
Consumes the builder and constructs a InstanceProfile
.
Trait Implementations§
source§impl Clone for InstanceProfileBuilder
impl Clone for InstanceProfileBuilder
source§fn clone(&self) -> InstanceProfileBuilder
fn clone(&self) -> InstanceProfileBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceProfileBuilder
impl Debug for InstanceProfileBuilder
source§impl Default for InstanceProfileBuilder
impl Default for InstanceProfileBuilder
source§fn default() -> InstanceProfileBuilder
fn default() -> InstanceProfileBuilder
source§impl PartialEq for InstanceProfileBuilder
impl PartialEq for InstanceProfileBuilder
source§fn eq(&self, other: &InstanceProfileBuilder) -> bool
fn eq(&self, other: &InstanceProfileBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.