Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- describeAvailabilityZones :: DescribeAvailabilityZones
- data DescribeAvailabilityZones
- dazZoneNames :: Lens' DescribeAvailabilityZones [Text]
- dazFilters :: Lens' DescribeAvailabilityZones [Filter]
- dazDryRun :: Lens' DescribeAvailabilityZones (Maybe Bool)
- describeAvailabilityZonesResponse :: Int -> DescribeAvailabilityZonesResponse
- data DescribeAvailabilityZonesResponse
- dazrsAvailabilityZones :: Lens' DescribeAvailabilityZonesResponse [AvailabilityZone]
- dazrsResponseStatus :: Lens' DescribeAvailabilityZonesResponse Int
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:
data DescribeAvailabilityZones Source
See: describeAvailabilityZones
smart constructor.
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:
data DescribeAvailabilityZonesResponse Source
See: describeAvailabilityZonesResponse
smart constructor.
Response Lenses
dazrsAvailabilityZones :: Lens' DescribeAvailabilityZonesResponse [AvailabilityZone] Source
Information about one or more Availability Zones.
dazrsResponseStatus :: Lens' DescribeAvailabilityZonesResponse Int Source
The response status code.