Struct aws_sdk_ec2::input::AssignPrivateIpAddressesInput
source · #[non_exhaustive]pub struct AssignPrivateIpAddressesInput { /* private fields */ }
Expand description
Contains the parameters for AssignPrivateIpAddresses.
Implementations§
source§impl AssignPrivateIpAddressesInput
impl AssignPrivateIpAddressesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssignPrivateIpAddresses, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssignPrivateIpAddresses, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AssignPrivateIpAddresses
>
Examples found in repository?
9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AssignPrivateIpAddresses,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AssignPrivateIpAddressesError>,
> {
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::AssignPrivateIpAddressesOutput,
aws_smithy_http::result::SdkError<crate::error::AssignPrivateIpAddressesError>,
> {
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 AssignPrivateIpAddressesInput
.
source§impl AssignPrivateIpAddressesInput
impl AssignPrivateIpAddressesInput
sourcepub fn allow_reassignment(&self) -> Option<bool>
pub fn allow_reassignment(&self) -> Option<bool>
Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface.
sourcepub fn private_ip_addresses(&self) -> Option<&[String]>
pub fn private_ip_addresses(&self) -> Option<&[String]>
The IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.
If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.
sourcepub fn secondary_private_ip_address_count(&self) -> Option<i32>
pub fn secondary_private_ip_address_count(&self) -> Option<i32>
The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.
sourcepub fn ipv4_prefixes(&self) -> Option<&[String]>
pub fn ipv4_prefixes(&self) -> Option<&[String]>
One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount
option.
sourcepub fn ipv4_prefix_count(&self) -> Option<i32>
pub fn ipv4_prefix_count(&self) -> Option<i32>
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the Ipv4 Prefixes
option.
Trait Implementations§
source§impl Clone for AssignPrivateIpAddressesInput
impl Clone for AssignPrivateIpAddressesInput
source§fn clone(&self) -> AssignPrivateIpAddressesInput
fn clone(&self) -> AssignPrivateIpAddressesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more