Struct aws_sdk_ec2::input::ModifySubnetAttributeInput
source · #[non_exhaustive]pub struct ModifySubnetAttributeInput { /* private fields */ }
Implementations§
source§impl ModifySubnetAttributeInput
impl ModifySubnetAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySubnetAttribute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySubnetAttribute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifySubnetAttribute
>
Examples found in repository?
67716 67717 67718 67719 67720 67721 67722 67723 67724 67725 67726 67727 67728 67729 67730 67731 67732 67733 67734 67735 67736 67737 67738 67739 67740 67741 67742 67743 67744 67745 67746 67747 67748 67749 67750 67751 67752 67753 67754 67755 67756 67757 67758
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifySubnetAttribute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifySubnetAttributeError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ModifySubnetAttributeOutput,
aws_smithy_http::result::SdkError<crate::error::ModifySubnetAttributeError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ModifySubnetAttributeInput
.
source§impl 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§
source§impl Clone for ModifySubnetAttributeInput
impl Clone for ModifySubnetAttributeInput
source§fn clone(&self) -> ModifySubnetAttributeInput
fn clone(&self) -> ModifySubnetAttributeInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more