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 regions that are currently available to you.
For a list of the regions supported by Amazon EC2, see Regions and Endpoints.
See: AWS API Reference for DescribeRegions.
- describeRegions :: DescribeRegions
- data DescribeRegions
- drsRegionNames :: Lens' DescribeRegions [Text]
- drsFilters :: Lens' DescribeRegions [Filter]
- drsDryRun :: Lens' DescribeRegions (Maybe Bool)
- describeRegionsResponse :: Int -> DescribeRegionsResponse
- data DescribeRegionsResponse
- drrsRegions :: Lens' DescribeRegionsResponse [RegionInfo]
- drrsStatus :: Lens' DescribeRegionsResponse Int
Creating a Request
describeRegions :: DescribeRegions Source
Creates a value of DescribeRegions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeRegions Source
See: describeRegions
smart constructor.
Request Lenses
drsRegionNames :: Lens' DescribeRegions [Text] Source
The names of one or more regions.
drsFilters :: Lens' DescribeRegions [Filter] Source
One or more filters.
endpoint
- The endpoint of the region (for example, 'ec2.us-east-1.amazonaws.com').- 'region-name' - The name of the region (for example, 'us-east-1').
drsDryRun :: Lens' DescribeRegions (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
describeRegionsResponse Source
Creates a value of DescribeRegionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeRegionsResponse Source
See: describeRegionsResponse
smart constructor.
Response Lenses
drrsRegions :: Lens' DescribeRegionsResponse [RegionInfo] Source
Information about one or more regions.
drrsStatus :: Lens' DescribeRegionsResponse Int Source
The response status code.