describe_availability_zones
async
¶
describe_availability_zones(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
zone_names: Optional[ZoneNameStringList] = None,
zone_ids: Optional[ZoneIdStringList] = None,
all_availability_zones: Optional[Boolean] = None,
dry_run: Optional[Boolean] = None,
filters: Optional[FilterList] = None,
) -> DescribeAvailabilityZonesResult
Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to you.
For more information about Availability Zones, Local Zones, and Wavelength Zones, see Regions and zones in the Amazon EC2 User Guide.
The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.
Parameters:
-
zone_names(Optional[ZoneNameStringList], default:None) –The names of the Availability Zones, Local Zones, and Wavelength Zones.
-
zone_ids(Optional[ZoneIdStringList], default:None) –The IDs of the Availability Zones, Local Zones, and Wavelength Zones.
-
all_availability_zones(Optional[Boolean], default:None) –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.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
filters(Optional[FilterList], default:None) –The filters.
-
group-long-name- The long name of the zone group for the Availability Zone (for example,US West (Oregon) 1), the Local Zone (for example, for Zone groupus-west-2-lax-1, it isUS West (Los Angeles), or the Wavelength Zone (for example, for Zone groupus-east-1-wl1, it isUS East (Verizon). -
group-name- The name of the zone group for the Availability Zone (for example,us-east-1-zg-1), the Local Zone (for example,us-west-2-lax-1), or the Wavelength Zone (for example,us-east-1-wl1). -
message- The Zone message. -
opt-in-status- The opt-in status (opted-in|not-opted-in|opt-in-not-required). -
parent-zone-id- The ID of the zone that handles some of the Local Zone and Wavelength Zone control plane operations, such as API calls. -
parent-zone-name- 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|unavailable|constrained). -
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-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 (availability-zone|local-zone|wavelength-zone).
-
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe your Availability Zones This example describes the Availability Zones that are available to you. The response includes Availability Zones only for the current region.
Source code in docs_src/capo_ec2/_services/async_ec2.py
21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 22011 22012 22013 22014 22015 22016 22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 | |