Struct aws_sdk_ec2::operation::modify_subnet_attribute::builders::ModifySubnetAttributeInputBuilder
source · #[non_exhaustive]pub struct ModifySubnetAttributeInputBuilder { /* private fields */ }
Expand description
A builder for ModifySubnetAttributeInput
.
Implementations§
source§impl ModifySubnetAttributeInputBuilder
impl ModifySubnetAttributeInputBuilder
sourcepub fn assign_ipv6_address_on_creation(
self,
input: AttributeBooleanValue
) -> Self
pub fn assign_ipv6_address_on_creation( self, input: AttributeBooleanValue ) -> Self
Specify true
to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives an IPv6 address).
If you enable the IPv6 addressing feature for your subnet, your network interface or instance only receives an IPv6 address if it's created using version 2016-11-15
or later of the Amazon EC2 API.
sourcepub fn set_assign_ipv6_address_on_creation(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_assign_ipv6_address_on_creation( self, input: Option<AttributeBooleanValue> ) -> Self
Specify true
to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives an IPv6 address).
If you enable the IPv6 addressing feature for your subnet, your network interface or instance only receives an IPv6 address if it's created using version 2016-11-15
or later of the Amazon EC2 API.
sourcepub fn get_assign_ipv6_address_on_creation(
&self
) -> &Option<AttributeBooleanValue>
pub fn get_assign_ipv6_address_on_creation( &self ) -> &Option<AttributeBooleanValue>
Specify true
to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. This includes a network interface that's created when launching an instance into the subnet (the instance therefore receives an IPv6 address).
If you enable the IPv6 addressing feature for your subnet, your network interface or instance only receives an IPv6 address if it's created using version 2016-11-15
or later of the Amazon EC2 API.
sourcepub fn map_public_ip_on_launch(self, input: AttributeBooleanValue) -> Self
pub fn map_public_ip_on_launch(self, input: AttributeBooleanValue) -> Self
Specify true
to indicate that network interfaces attached to instances created in the specified subnet should be assigned a public IPv4 address.
sourcepub fn set_map_public_ip_on_launch(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_map_public_ip_on_launch( self, input: Option<AttributeBooleanValue> ) -> Self
Specify true
to indicate that network interfaces attached to instances created in the specified subnet should be assigned a public IPv4 address.
sourcepub fn get_map_public_ip_on_launch(&self) -> &Option<AttributeBooleanValue>
pub fn get_map_public_ip_on_launch(&self) -> &Option<AttributeBooleanValue>
Specify true
to indicate that network interfaces attached to instances created in the specified subnet should be assigned a public IPv4 address.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The ID of the subnet.
sourcepub fn get_subnet_id(&self) -> &Option<String>
pub fn get_subnet_id(&self) -> &Option<String>
The ID of the subnet.
sourcepub fn map_customer_owned_ip_on_launch(
self,
input: AttributeBooleanValue
) -> Self
pub fn map_customer_owned_ip_on_launch( self, input: AttributeBooleanValue ) -> Self
Specify true
to indicate that network interfaces attached to instances created in the specified subnet should be assigned a customer-owned IPv4 address.
When this value is true
, you must specify the customer-owned IP pool using CustomerOwnedIpv4Pool
.
sourcepub fn set_map_customer_owned_ip_on_launch(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_map_customer_owned_ip_on_launch( self, input: Option<AttributeBooleanValue> ) -> Self
Specify true
to indicate that network interfaces attached to instances created in the specified subnet should be assigned a customer-owned IPv4 address.
When this value is true
, you must specify the customer-owned IP pool using CustomerOwnedIpv4Pool
.
sourcepub fn get_map_customer_owned_ip_on_launch(
&self
) -> &Option<AttributeBooleanValue>
pub fn get_map_customer_owned_ip_on_launch( &self ) -> &Option<AttributeBooleanValue>
Specify true
to indicate that network interfaces attached to instances created in the specified subnet should be assigned a customer-owned IPv4 address.
When this value is true
, you must specify the customer-owned IP pool using CustomerOwnedIpv4Pool
.
sourcepub fn customer_owned_ipv4_pool(self, input: impl Into<String>) -> Self
pub fn customer_owned_ipv4_pool(self, input: impl Into<String>) -> Self
The customer-owned IPv4 address pool associated with the subnet.
You must set this value when you specify true
for MapCustomerOwnedIpOnLaunch
.
sourcepub fn set_customer_owned_ipv4_pool(self, input: Option<String>) -> Self
pub fn set_customer_owned_ipv4_pool(self, input: Option<String>) -> Self
The customer-owned IPv4 address pool associated with the subnet.
You must set this value when you specify true
for MapCustomerOwnedIpOnLaunch
.
sourcepub fn get_customer_owned_ipv4_pool(&self) -> &Option<String>
pub fn get_customer_owned_ipv4_pool(&self) -> &Option<String>
The customer-owned IPv4 address pool associated with the subnet.
You must set this value when you specify true
for MapCustomerOwnedIpOnLaunch
.
sourcepub fn enable_dns64(self, input: AttributeBooleanValue) -> Self
pub fn enable_dns64(self, input: AttributeBooleanValue) -> Self
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
sourcepub fn set_enable_dns64(self, input: Option<AttributeBooleanValue>) -> Self
pub fn set_enable_dns64(self, input: Option<AttributeBooleanValue>) -> Self
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
sourcepub fn get_enable_dns64(&self) -> &Option<AttributeBooleanValue>
pub fn get_enable_dns64(&self) -> &Option<AttributeBooleanValue>
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
sourcepub fn private_dns_hostname_type_on_launch(self, input: HostnameType) -> Self
pub fn private_dns_hostname_type_on_launch(self, input: HostnameType) -> Self
The type of hostname to assign to instances in the subnet at launch. For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS name can be based on the instance IPv4 address (ip-name) or the instance ID (resource-name). For IPv6 only subnets, an instance DNS name must be based on the instance ID (resource-name).
sourcepub fn set_private_dns_hostname_type_on_launch(
self,
input: Option<HostnameType>
) -> Self
pub fn set_private_dns_hostname_type_on_launch( self, input: Option<HostnameType> ) -> Self
The type of hostname to assign to instances in the subnet at launch. For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS name can be based on the instance IPv4 address (ip-name) or the instance ID (resource-name). For IPv6 only subnets, an instance DNS name must be based on the instance ID (resource-name).
sourcepub fn get_private_dns_hostname_type_on_launch(&self) -> &Option<HostnameType>
pub fn get_private_dns_hostname_type_on_launch(&self) -> &Option<HostnameType>
The type of hostname to assign to instances in the subnet at launch. For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS name can be based on the instance IPv4 address (ip-name) or the instance ID (resource-name). For IPv6 only subnets, an instance DNS name must be based on the instance ID (resource-name).
sourcepub fn enable_resource_name_dns_a_record_on_launch(
self,
input: AttributeBooleanValue
) -> Self
pub fn enable_resource_name_dns_a_record_on_launch( self, input: AttributeBooleanValue ) -> Self
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
sourcepub fn set_enable_resource_name_dns_a_record_on_launch(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_enable_resource_name_dns_a_record_on_launch( self, input: Option<AttributeBooleanValue> ) -> Self
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
sourcepub fn get_enable_resource_name_dns_a_record_on_launch(
&self
) -> &Option<AttributeBooleanValue>
pub fn get_enable_resource_name_dns_a_record_on_launch( &self ) -> &Option<AttributeBooleanValue>
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
sourcepub fn enable_resource_name_dns_aaaa_record_on_launch(
self,
input: AttributeBooleanValue
) -> Self
pub fn enable_resource_name_dns_aaaa_record_on_launch( self, input: AttributeBooleanValue ) -> Self
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
sourcepub fn set_enable_resource_name_dns_aaaa_record_on_launch(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_enable_resource_name_dns_aaaa_record_on_launch( self, input: Option<AttributeBooleanValue> ) -> Self
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
sourcepub fn get_enable_resource_name_dns_aaaa_record_on_launch(
&self
) -> &Option<AttributeBooleanValue>
pub fn get_enable_resource_name_dns_aaaa_record_on_launch( &self ) -> &Option<AttributeBooleanValue>
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
sourcepub fn enable_lni_at_device_index(self, input: i32) -> Self
pub fn enable_lni_at_device_index(self, input: i32) -> Self
Indicates the device position for local network interfaces in this subnet. For example, 1
indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network interface (eth0).
sourcepub fn set_enable_lni_at_device_index(self, input: Option<i32>) -> Self
pub fn set_enable_lni_at_device_index(self, input: Option<i32>) -> Self
Indicates the device position for local network interfaces in this subnet. For example, 1
indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network interface (eth0).
sourcepub fn get_enable_lni_at_device_index(&self) -> &Option<i32>
pub fn get_enable_lni_at_device_index(&self) -> &Option<i32>
Indicates the device position for local network interfaces in this subnet. For example, 1
indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network interface (eth0).
sourcepub fn disable_lni_at_device_index(self, input: AttributeBooleanValue) -> Self
pub fn disable_lni_at_device_index(self, input: AttributeBooleanValue) -> Self
Specify true
to indicate that local network interfaces at the current position should be disabled.
sourcepub fn set_disable_lni_at_device_index(
self,
input: Option<AttributeBooleanValue>
) -> Self
pub fn set_disable_lni_at_device_index( self, input: Option<AttributeBooleanValue> ) -> Self
Specify true
to indicate that local network interfaces at the current position should be disabled.
sourcepub fn get_disable_lni_at_device_index(&self) -> &Option<AttributeBooleanValue>
pub fn get_disable_lni_at_device_index(&self) -> &Option<AttributeBooleanValue>
Specify true
to indicate that local network interfaces at the current position should be disabled.
sourcepub fn build(self) -> Result<ModifySubnetAttributeInput, BuildError>
pub fn build(self) -> Result<ModifySubnetAttributeInput, BuildError>
Consumes the builder and constructs a ModifySubnetAttributeInput
.
source§impl ModifySubnetAttributeInputBuilder
impl ModifySubnetAttributeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifySubnetAttributeOutput, SdkError<ModifySubnetAttributeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifySubnetAttributeOutput, SdkError<ModifySubnetAttributeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifySubnetAttributeInputBuilder
impl Clone for ModifySubnetAttributeInputBuilder
source§fn clone(&self) -> ModifySubnetAttributeInputBuilder
fn clone(&self) -> ModifySubnetAttributeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifySubnetAttributeInputBuilder
impl Default for ModifySubnetAttributeInputBuilder
source§fn default() -> ModifySubnetAttributeInputBuilder
fn default() -> ModifySubnetAttributeInputBuilder
source§impl PartialEq<ModifySubnetAttributeInputBuilder> for ModifySubnetAttributeInputBuilder
impl PartialEq<ModifySubnetAttributeInputBuilder> for ModifySubnetAttributeInputBuilder
source§fn eq(&self, other: &ModifySubnetAttributeInputBuilder) -> bool
fn eq(&self, other: &ModifySubnetAttributeInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.