Struct aws_sdk_ec2::input::DescribeAvailabilityZonesInput
source · #[non_exhaustive]pub struct DescribeAvailabilityZonesInput { /* private fields */ }
Implementations§
source§impl DescribeAvailabilityZonesInput
impl DescribeAvailabilityZonesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeAvailabilityZones, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeAvailabilityZones, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeAvailabilityZones
>
Examples found in repository?
33135 33136 33137 33138 33139 33140 33141 33142 33143 33144 33145 33146 33147 33148 33149 33150 33151 33152 33153 33154 33155 33156 33157 33158 33159 33160 33161 33162 33163 33164 33165 33166 33167 33168 33169 33170 33171 33172 33173 33174 33175 33176 33177
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeAvailabilityZones,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeAvailabilityZonesError>,
> {
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::DescribeAvailabilityZonesOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeAvailabilityZonesError>,
> {
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 DescribeAvailabilityZonesInput
.
source§impl DescribeAvailabilityZonesInput
impl DescribeAvailabilityZonesInput
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
The filters.
-
group-name
- For Availability Zones, use the Region name. For Local Zones, use the name of the group associated with the Local Zone (for example,us-west-2-lax-1
) For Wavelength Zones, use the name of the group associated with the Wavelength Zone (for example,us-east-1-wl1-bos-wlz-1
). -
message
- The Zone message. -
opt-in-status
- The opt-in status (opted-in
, andnot-opted-in
|opt-in-not-required
). -
parent-zoneID
- The ID of the zone that handles some of the Local Zone and Wavelength Zone control plane operations, such as API calls. -
parent-zoneName
- The ID of the zone that handles some of the Local Zone and Wavelength Zone control plane operations, such as API calls. -
region-name
- The name of the Region for the Zone (for example,us-east-1
). -
state
- The state of the Availability Zone, the Local Zone, or the Wavelength Zone (available
). -
zone-id
- The ID of the Availability Zone (for example,use1-az1
), the Local Zone (for example,usw2-lax1-az1
), or the Wavelength Zone (for example,us-east-1-wl1-bos-wlz-1
). -
zone-type
- The type of zone, for example,local-zone
. -
zone-name
- The name of the Availability Zone (for example,us-east-1a
), the Local Zone (for example,us-west-2-lax-1a
), or the Wavelength Zone (for example,us-east-1-wl1-bos-wlz-1
). -
zone-type
- The type of zone, for example,local-zone
.
sourcepub fn zone_names(&self) -> Option<&[String]>
pub fn zone_names(&self) -> Option<&[String]>
The names of the Availability Zones, Local Zones, and Wavelength Zones.
sourcepub fn zone_ids(&self) -> Option<&[String]>
pub fn zone_ids(&self) -> Option<&[String]>
The IDs of the Availability Zones, Local Zones, and Wavelength Zones.
sourcepub fn all_availability_zones(&self) -> Option<bool>
pub fn all_availability_zones(&self) -> Option<bool>
Include all Availability Zones, Local Zones, and Wavelength Zones regardless of your opt-in status.
If you do not use this parameter, the results include only the zones for the Regions where you have chosen the option to opt in.
Trait Implementations§
source§impl Clone for DescribeAvailabilityZonesInput
impl Clone for DescribeAvailabilityZonesInput
source§fn clone(&self) -> DescribeAvailabilityZonesInput
fn clone(&self) -> DescribeAvailabilityZonesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more