| Copyright | (c) 2013-2021 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 |
Amazonka.RDS.DescribeSourceRegions
Description
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. This API action supports pagination.
This operation returns paginated results.
Synopsis
- data DescribeSourceRegions = DescribeSourceRegions' {}
- newDescribeSourceRegions :: DescribeSourceRegions
- describeSourceRegions_regionName :: Lens' DescribeSourceRegions (Maybe Text)
- describeSourceRegions_filters :: Lens' DescribeSourceRegions (Maybe [Filter])
- describeSourceRegions_marker :: Lens' DescribeSourceRegions (Maybe Text)
- describeSourceRegions_maxRecords :: Lens' DescribeSourceRegions (Maybe Int)
- 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.
Constructors
| DescribeSourceRegions' | |
Fields
| |
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:regionName: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.
$sel:filters:DescribeSourceRegions', describeSourceRegions_filters - This parameter isn't currently supported.
$sel:marker: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.
Request Lenses
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.
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.
Destructuring the Response
data DescribeSourceRegionsResponse Source #
Contains the result of a successful invocation of the
DescribeSourceRegions action.
See: newDescribeSourceRegionsResponse smart constructor.
Constructors
| DescribeSourceRegionsResponse' | |
Fields
| |
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:
$sel:marker: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.