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 regions that are currently available to you.
For a list of the regions supported by Amazon EC2, see Regions and Endpoints .
- 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]
- drrsResponseStatus :: 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:
drsRegionNames
- The names of one or more regions.drsFilters
- 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
- 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 DescribeRegions Source #
Contains the parameters for DescribeRegions.
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:
drrsRegions
- Information about one or more regions.drrsResponseStatus
- -- | The response status code.
data DescribeRegionsResponse Source #
Contains the output of DescribeRegions.
See: describeRegionsResponse
smart constructor.
Response Lenses
drrsRegions :: Lens' DescribeRegionsResponse [RegionInfo] Source #
Information about one or more regions.
drrsResponseStatus :: Lens' DescribeRegionsResponse Int Source #
- - | The response status code.