amazonka-ec2-1.3.3.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DescribeAvailabilityZones

Contents

Description

Describes one or more of the Availability Zones that are available to you. The results include zones only for the region you're currently using. If there is an event impacting an Availability Zone, you can use this request to view the state and any provided message for that Availability Zone.

For more information, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide.

See: AWS API Reference for DescribeAvailabilityZones.

Synopsis

Creating a Request

describeAvailabilityZones :: DescribeAvailabilityZones Source

Creates a value of DescribeAvailabilityZones with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

dazZoneNames :: Lens' DescribeAvailabilityZones [Text] Source

The names of one or more Availability Zones.

dazFilters :: Lens' DescribeAvailabilityZones [Filter] Source

One or more filters.

  • message - Information about the Availability Zone.
  • 'region-name' - The name of the region for the Availability Zone (for example, 'us-east-1').
  • state - The state of the Availability Zone (available | information | impaired | unavailable).
  • 'zone-name' - The name of the Availability Zone (for example, 'us-east-1a').

dazDryRun :: Lens' DescribeAvailabilityZones (Maybe Bool) Source

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 is UnauthorizedOperation.

Destructuring the Response

describeAvailabilityZonesResponse Source

Creates a value of DescribeAvailabilityZonesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

dazrsAvailabilityZones :: Lens' DescribeAvailabilityZonesResponse [AvailabilityZone] Source

Information about one or more Availability Zones.