Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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 .
- 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:
dazZoneNames
- The names of one or more Availability Zones.dazFilters
- 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
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.
data DescribeAvailabilityZones Source #
Contains the parameters for DescribeAvailabilityZones.
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:
dazrsAvailabilityZones
- Information about one or more Availability Zones.dazrsResponseStatus
- -- | The response status code.
data DescribeAvailabilityZonesResponse Source #
Contains the output of DescribeAvailabiltyZones.
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.