Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns a list of the source Amazon Web Services Regions where the current Amazon Web Services Region can create a read replica, copy a DB snapshot from, or replicate automated backups from.
Use this operation to determine whether cross-Region features are supported between other Regions and your current Region. This operation supports pagination.
To return information about the Regions that are enabled for your
account, or all Regions, use the EC2 operation DescribeRegions
. For
more information, see
DescribeRegions
in the Amazon EC2 API Reference.
This operation returns paginated results.
Synopsis
- data DescribeSourceRegions = DescribeSourceRegions' {}
- newDescribeSourceRegions :: DescribeSourceRegions
- describeSourceRegions_filters :: Lens' DescribeSourceRegions (Maybe [Filter])
- describeSourceRegions_marker :: Lens' DescribeSourceRegions (Maybe Text)
- describeSourceRegions_maxRecords :: Lens' DescribeSourceRegions (Maybe Int)
- describeSourceRegions_regionName :: Lens' DescribeSourceRegions (Maybe Text)
- data DescribeSourceRegionsResponse = DescribeSourceRegionsResponse' {
- marker :: Maybe Text
- sourceRegions :: Maybe [SourceRegion]
- httpStatus :: Int
- newDescribeSourceRegionsResponse :: Int -> DescribeSourceRegionsResponse
- describeSourceRegionsResponse_marker :: Lens' DescribeSourceRegionsResponse (Maybe Text)
- describeSourceRegionsResponse_sourceRegions :: Lens' DescribeSourceRegionsResponse (Maybe [SourceRegion])
- describeSourceRegionsResponse_httpStatus :: Lens' DescribeSourceRegionsResponse Int
Creating a Request
data DescribeSourceRegions Source #
See: newDescribeSourceRegions
smart constructor.
DescribeSourceRegions' | |
|
Instances
newDescribeSourceRegions :: DescribeSourceRegions Source #
Create a value of DescribeSourceRegions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:filters:DescribeSourceRegions'
, describeSourceRegions_filters
- This parameter isn't currently supported.
DescribeSourceRegions
, describeSourceRegions_marker
- An optional pagination token provided by a previous
DescribeSourceRegions
request. If this parameter is specified, the
response includes only records beyond the marker, up to the value
specified by MaxRecords
.
$sel:maxRecords:DescribeSourceRegions'
, describeSourceRegions_maxRecords
- The maximum number of records to include in the response. If more
records exist than the specified MaxRecords
value, a pagination token
called a marker is included in the response so you can retrieve the
remaining results.
Default: 100
Constraints: Minimum 20, maximum 100.
DescribeSourceRegions
, describeSourceRegions_regionName
- The source Amazon Web Services Region name. For example, us-east-1
.
Constraints:
- Must specify a valid Amazon Web Services Region name.
Request Lenses
describeSourceRegions_filters :: Lens' DescribeSourceRegions (Maybe [Filter]) Source #
This parameter isn't currently supported.
describeSourceRegions_marker :: Lens' DescribeSourceRegions (Maybe Text) Source #
An optional pagination token provided by a previous
DescribeSourceRegions
request. If this parameter is specified, the
response includes only records beyond the marker, up to the value
specified by MaxRecords
.
describeSourceRegions_maxRecords :: Lens' DescribeSourceRegions (Maybe Int) Source #
The maximum number of records to include in the response. If more
records exist than the specified MaxRecords
value, a pagination token
called a marker is included in the response so you can retrieve the
remaining results.
Default: 100
Constraints: Minimum 20, maximum 100.
describeSourceRegions_regionName :: Lens' DescribeSourceRegions (Maybe Text) Source #
The source Amazon Web Services Region name. For example, us-east-1
.
Constraints:
- Must specify a valid Amazon Web Services Region name.
Destructuring the Response
data DescribeSourceRegionsResponse Source #
Contains the result of a successful invocation of the
DescribeSourceRegions
action.
See: newDescribeSourceRegionsResponse
smart constructor.
DescribeSourceRegionsResponse' | |
|
Instances
newDescribeSourceRegionsResponse Source #
Create a value of DescribeSourceRegionsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeSourceRegions
, describeSourceRegionsResponse_marker
- An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
marker, up to the value specified by MaxRecords
.
$sel:sourceRegions:DescribeSourceRegionsResponse'
, describeSourceRegionsResponse_sourceRegions
- A list of SourceRegion
instances that contains each source Amazon Web
Services Region that the current Amazon Web Services Region can get a
read replica or a DB snapshot from.
$sel:httpStatus:DescribeSourceRegionsResponse'
, describeSourceRegionsResponse_httpStatus
- The response's http status code.
Response Lenses
describeSourceRegionsResponse_marker :: Lens' DescribeSourceRegionsResponse (Maybe Text) Source #
An optional pagination token provided by a previous request. If this
parameter is specified, the response includes only records beyond the
marker, up to the value specified by MaxRecords
.
describeSourceRegionsResponse_sourceRegions :: Lens' DescribeSourceRegionsResponse (Maybe [SourceRegion]) Source #
A list of SourceRegion
instances that contains each source Amazon Web
Services Region that the current Amazon Web Services Region can get a
read replica or a DB snapshot from.
describeSourceRegionsResponse_httpStatus :: Lens' DescribeSourceRegionsResponse Int Source #
The response's http status code.