Struct aws_sdk_ec2::input::DescribeAddressesInput
source · #[non_exhaustive]pub struct DescribeAddressesInput { /* private fields */ }
Implementations§
source§impl DescribeAddressesInput
impl DescribeAddressesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeAddresses, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeAddresses, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeAddresses
>
Examples found in repository?
32766 32767 32768 32769 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779 32780 32781 32782 32783 32784 32785 32786 32787 32788 32789 32790 32791 32792 32793 32794 32795 32796 32797 32798 32799 32800 32801 32802 32803 32804 32805 32806 32807 32808
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeAddresses,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeAddressesError>,
> {
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::DescribeAddressesOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeAddressesError>,
> {
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 DescribeAddressesInput
.
source§impl DescribeAddressesInput
impl DescribeAddressesInput
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
One or more filters. Filter names and values are case-sensitive.
-
allocation-id
- [EC2-VPC] The allocation ID for the address. -
association-id
- [EC2-VPC] The association ID for the address. -
domain
- Indicates whether the address is for use in EC2-Classic (standard
) or in a VPC (vpc
). -
instance-id
- The ID of the instance the address is associated with, if any. -
network-border-group
- A unique set of Availability Zones, Local Zones, or Wavelength Zones from where Amazon Web Services advertises IP addresses. -
network-interface-id
- [EC2-VPC] The ID of the network interface that the address is associated with, if any. -
network-interface-owner-id
- The Amazon Web Services account ID of the owner. -
private-ip-address
- [EC2-VPC] The private IP address associated with the Elastic IP address. -
public-ip
- The Elastic IP address, or the carrier IP address. -
tag
:- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for the filter value. -
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
sourcepub fn public_ips(&self) -> Option<&[String]>
pub fn public_ips(&self) -> Option<&[String]>
One or more Elastic IP addresses.
Default: Describes all your Elastic IP addresses.
sourcepub fn allocation_ids(&self) -> Option<&[String]>
pub fn allocation_ids(&self) -> Option<&[String]>
[EC2-VPC] Information about the allocation IDs.
Trait Implementations§
source§impl Clone for DescribeAddressesInput
impl Clone for DescribeAddressesInput
source§fn clone(&self) -> DescribeAddressesInput
fn clone(&self) -> DescribeAddressesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more