Struct aws_sdk_ec2::input::AssignIpv6AddressesInput
source · #[non_exhaustive]pub struct AssignIpv6AddressesInput { /* private fields */ }
Implementations§
source§impl AssignIpv6AddressesInput
impl AssignIpv6AddressesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssignIpv6Addresses, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssignIpv6Addresses, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AssignIpv6Addresses
>
Examples found in repository?
9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AssignIpv6Addresses,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AssignIpv6AddressesError>,
> {
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::AssignIpv6AddressesOutput,
aws_smithy_http::result::SdkError<crate::error::AssignIpv6AddressesError>,
> {
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 AssignIpv6AddressesInput
.
source§impl AssignIpv6AddressesInput
impl AssignIpv6AddressesInput
sourcepub fn ipv6_address_count(&self) -> Option<i32>
pub fn ipv6_address_count(&self) -> Option<i32>
The number of additional IPv6 addresses to assign to the network interface. The specified number of IPv6 addresses are assigned in addition to the existing IPv6 addresses that are already assigned to the network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
sourcepub fn ipv6_addresses(&self) -> Option<&[String]>
pub fn ipv6_addresses(&self) -> Option<&[String]>
The IPv6 addresses to be assigned to the network interface. You can't use this option if you're specifying a number of IPv6 addresses.
sourcepub fn ipv6_prefix_count(&self) -> Option<i32>
pub fn ipv6_prefix_count(&self) -> Option<i32>
The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the Ipv6Prefixes
option.
sourcepub fn ipv6_prefixes(&self) -> Option<&[String]>
pub fn ipv6_prefixes(&self) -> Option<&[String]>
One or more IPv6 prefixes assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount
option.
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface.
Trait Implementations§
source§impl Clone for AssignIpv6AddressesInput
impl Clone for AssignIpv6AddressesInput
source§fn clone(&self) -> AssignIpv6AddressesInput
fn clone(&self) -> AssignIpv6AddressesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more