pub struct ModifySubnetAttributeFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ModifySubnetAttribute
.
Modifies a subnet attribute. You can only modify one attribute at a time.
Use this action to modify subnets on Amazon Web Services Outposts.
-
To modify a subnet on an Outpost rack, set both
MapCustomerOwnedIpOnLaunch
andCustomerOwnedIpv4Pool
. These two parameters act as a single attribute. -
To modify a subnet on an Outpost server, set either
EnableLniAtDeviceIndex
orDisableLniAtDeviceIndex
.
For more information about Amazon Web Services Outposts, see the following:
Implementations§
Source§impl ModifySubnetAttributeFluentBuilder
impl ModifySubnetAttributeFluentBuilder
Sourcepub fn as_input(&self) -> &ModifySubnetAttributeInputBuilder
pub fn as_input(&self) -> &ModifySubnetAttributeInputBuilder
Access the ModifySubnetAttribute as a reference.
Sourcepub async fn send(
self,
) -> Result<ModifySubnetAttributeOutput, SdkError<ModifySubnetAttributeError, HttpResponse>>
pub async fn send( self, ) -> Result<ModifySubnetAttributeOutput, SdkError<ModifySubnetAttributeError, HttpResponse>>
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, which can be set when configuring the client.
Sourcepub fn customize(
self,
) -> CustomizableOperation<ModifySubnetAttributeOutput, ModifySubnetAttributeError, Self>
pub fn customize( self, ) -> CustomizableOperation<ModifySubnetAttributeOutput, ModifySubnetAttributeError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
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.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
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.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
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.
You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a 0.0.0.0/0
route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the Amazon VPC User Guide.
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.
You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a 0.0.0.0/0
route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the Amazon VPC User Guide.
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.
You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a 0.0.0.0/0
route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the Amazon VPC User Guide.
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.
Trait Implementations§
Source§impl Clone for ModifySubnetAttributeFluentBuilder
impl Clone for ModifySubnetAttributeFluentBuilder
Source§fn clone(&self) -> ModifySubnetAttributeFluentBuilder
fn clone(&self) -> ModifySubnetAttributeFluentBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ModifySubnetAttributeFluentBuilder
impl !RefUnwindSafe for ModifySubnetAttributeFluentBuilder
impl Send for ModifySubnetAttributeFluentBuilder
impl Sync for ModifySubnetAttributeFluentBuilder
impl Unpin for ModifySubnetAttributeFluentBuilder
impl !UnwindSafe for ModifySubnetAttributeFluentBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);