amazonka-ec2-1.3.2: 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.DescribeRegions

Contents

Description

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.

Synopsis

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:

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:

Response Lenses

drrsRegions :: Lens' DescribeRegionsResponse [RegionInfo] Source

Information about one or more regions.