Struct aws_sdk_ec2::input::ModifySubnetAttributeInput
source · [−]#[non_exhaustive]pub struct ModifySubnetAttributeInput {
pub assign_ipv6_address_on_creation: Option<AttributeBooleanValue>,
pub map_public_ip_on_launch: Option<AttributeBooleanValue>,
pub subnet_id: Option<String>,
pub map_customer_owned_ip_on_launch: Option<AttributeBooleanValue>,
pub customer_owned_ipv4_pool: Option<String>,
pub enable_dns64: Option<AttributeBooleanValue>,
pub private_dns_hostname_type_on_launch: Option<HostnameType>,
pub enable_resource_name_dns_a_record_on_launch: Option<AttributeBooleanValue>,
pub enable_resource_name_dns_aaaa_record_on_launch: Option<AttributeBooleanValue>,
pub enable_lni_at_device_index: Option<i32>,
pub disable_lni_at_device_index: Option<AttributeBooleanValue>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.assign_ipv6_address_on_creation: 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.
map_public_ip_on_launch: Option<AttributeBooleanValue>
Specify true
to indicate that network interfaces attached to instances created in the specified subnet should be assigned a public IPv4 address.
subnet_id: Option<String>
The ID of the subnet.
map_customer_owned_ip_on_launch: 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
.
customer_owned_ipv4_pool: Option<String>
The customer-owned IPv4 address pool associated with the subnet.
You must set this value when you specify true
for MapCustomerOwnedIpOnLaunch
.
enable_dns64: 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.
private_dns_hostname_type_on_launch: 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).
enable_resource_name_dns_a_record_on_launch: Option<AttributeBooleanValue>
Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
enable_resource_name_dns_aaaa_record_on_launch: Option<AttributeBooleanValue>
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
enable_lni_at_device_index: 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).
disable_lni_at_device_index: Option<AttributeBooleanValue>
Specify true
to indicate that local network interfaces at the current position should be disabled.
Implementations
sourceimpl ModifySubnetAttributeInput
impl ModifySubnetAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySubnetAttribute, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySubnetAttribute, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ModifySubnetAttribute
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifySubnetAttributeInput
.
sourceimpl ModifySubnetAttributeInput
impl ModifySubnetAttributeInput
sourcepub fn assign_ipv6_address_on_creation(&self) -> Option<&AttributeBooleanValue>
pub fn 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) -> Option<&AttributeBooleanValue>
pub fn 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 map_customer_owned_ip_on_launch(&self) -> Option<&AttributeBooleanValue>
pub fn 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) -> Option<&str>
pub fn customer_owned_ipv4_pool(&self) -> Option<&str>
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) -> Option<&AttributeBooleanValue>
pub fn 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) -> Option<&HostnameType>
pub fn 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
) -> Option<&AttributeBooleanValue>
pub fn 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
) -> Option<&AttributeBooleanValue>
pub fn 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) -> Option<i32>
pub fn 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) -> Option<&AttributeBooleanValue>
pub fn disable_lni_at_device_index(&self) -> Option<&AttributeBooleanValue>
Specify true
to indicate that local network interfaces at the current position should be disabled.
Trait Implementations
sourceimpl Clone for ModifySubnetAttributeInput
impl Clone for ModifySubnetAttributeInput
sourcefn clone(&self) -> ModifySubnetAttributeInput
fn clone(&self) -> ModifySubnetAttributeInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ModifySubnetAttributeInput
impl Debug for ModifySubnetAttributeInput
sourceimpl PartialEq<ModifySubnetAttributeInput> for ModifySubnetAttributeInput
impl PartialEq<ModifySubnetAttributeInput> for ModifySubnetAttributeInput
sourcefn eq(&self, other: &ModifySubnetAttributeInput) -> bool
fn eq(&self, other: &ModifySubnetAttributeInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ModifySubnetAttributeInput) -> bool
fn ne(&self, other: &ModifySubnetAttributeInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for ModifySubnetAttributeInput
Auto Trait Implementations
impl RefUnwindSafe for ModifySubnetAttributeInput
impl Send for ModifySubnetAttributeInput
impl Sync for ModifySubnetAttributeInput
impl Unpin for ModifySubnetAttributeInput
impl UnwindSafe for ModifySubnetAttributeInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more