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 |
Returns information about cluster snapshots. This API operation supports pagination.
This operation returns paginated results.
Synopsis
- data DescribeDBClusterSnapshots = DescribeDBClusterSnapshots' {}
- newDescribeDBClusterSnapshots :: DescribeDBClusterSnapshots
- describeDBClusterSnapshots_dbClusterIdentifier :: Lens' DescribeDBClusterSnapshots (Maybe Text)
- describeDBClusterSnapshots_includeShared :: Lens' DescribeDBClusterSnapshots (Maybe Bool)
- describeDBClusterSnapshots_dbClusterSnapshotIdentifier :: Lens' DescribeDBClusterSnapshots (Maybe Text)
- describeDBClusterSnapshots_filters :: Lens' DescribeDBClusterSnapshots (Maybe [Filter])
- describeDBClusterSnapshots_snapshotType :: Lens' DescribeDBClusterSnapshots (Maybe Text)
- describeDBClusterSnapshots_marker :: Lens' DescribeDBClusterSnapshots (Maybe Text)
- describeDBClusterSnapshots_maxRecords :: Lens' DescribeDBClusterSnapshots (Maybe Int)
- describeDBClusterSnapshots_includePublic :: Lens' DescribeDBClusterSnapshots (Maybe Bool)
- data DescribeDBClusterSnapshotsResponse = DescribeDBClusterSnapshotsResponse' {}
- newDescribeDBClusterSnapshotsResponse :: Int -> DescribeDBClusterSnapshotsResponse
- describeDBClusterSnapshotsResponse_marker :: Lens' DescribeDBClusterSnapshotsResponse (Maybe Text)
- describeDBClusterSnapshotsResponse_dbClusterSnapshots :: Lens' DescribeDBClusterSnapshotsResponse (Maybe [DBClusterSnapshot])
- describeDBClusterSnapshotsResponse_httpStatus :: Lens' DescribeDBClusterSnapshotsResponse Int
Creating a Request
data DescribeDBClusterSnapshots Source #
Represents the input to DescribeDBClusterSnapshots.
See: newDescribeDBClusterSnapshots
smart constructor.
DescribeDBClusterSnapshots' | |
|
Instances
newDescribeDBClusterSnapshots :: DescribeDBClusterSnapshots Source #
Create a value of DescribeDBClusterSnapshots
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:dbClusterIdentifier:DescribeDBClusterSnapshots'
, describeDBClusterSnapshots_dbClusterIdentifier
- The ID of the cluster to retrieve the list of cluster snapshots for.
This parameter can't be used with the DBClusterSnapshotIdentifier
parameter. This parameter is not case sensitive.
Constraints:
- If provided, must match the identifier of an existing
DBCluster
.
$sel:includeShared:DescribeDBClusterSnapshots'
, describeDBClusterSnapshots_includeShared
- Set to true
to include shared manual cluster snapshots from other
accounts that this account has been given permission to copy or restore,
and otherwise false
. The default is false
.
$sel:dbClusterSnapshotIdentifier:DescribeDBClusterSnapshots'
, describeDBClusterSnapshots_dbClusterSnapshotIdentifier
- A specific cluster snapshot identifier to describe. This parameter
can't be used with the DBClusterIdentifier
parameter. This value is
stored as a lowercase string.
Constraints:
- If provided, must match the identifier of an existing
DBClusterSnapshot
. - If this identifier is for an automated snapshot, the
SnapshotType
parameter must also be specified.
$sel:filters:DescribeDBClusterSnapshots'
, describeDBClusterSnapshots_filters
- This parameter is not currently supported.
$sel:snapshotType:DescribeDBClusterSnapshots'
, describeDBClusterSnapshots_snapshotType
- The type of cluster snapshots to be returned. You can specify one of the
following values:
automated
- Return all cluster snapshots that Amazon DocumentDB has automatically created for your account.manual
- Return all cluster snapshots that you have manually created for your account.shared
- Return all manual cluster snapshots that have been shared to your account.public
- Return all cluster snapshots that have been marked as public.
If you don't specify a SnapshotType
value, then both automated and
manual cluster snapshots are returned. You can include shared cluster
snapshots with these results by setting the IncludeShared
parameter to
true
. You can include public cluster snapshots with these results by
setting theIncludePublic
parameter to true
.
The IncludeShared
and IncludePublic
parameters don't apply for
SnapshotType
values of manual
or automated
. The IncludePublic
parameter doesn't apply when SnapshotType
is set to shared
. The
IncludeShared
parameter doesn't apply when SnapshotType
is set to
public
.
$sel:marker:DescribeDBClusterSnapshots'
, describeDBClusterSnapshots_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:maxRecords:DescribeDBClusterSnapshots'
, describeDBClusterSnapshots_maxRecords
- The maximum number of records to include in the response. If more
records exist than the specified MaxRecords
value, a pagination token
(marker) is included in the response so that the remaining results can
be retrieved.
Default: 100
Constraints: Minimum 20, maximum 100.
$sel:includePublic:DescribeDBClusterSnapshots'
, describeDBClusterSnapshots_includePublic
- Set to true
to include manual cluster snapshots that are public and
can be copied or restored by any account, and otherwise false
. The
default is false
.
Request Lenses
describeDBClusterSnapshots_dbClusterIdentifier :: Lens' DescribeDBClusterSnapshots (Maybe Text) Source #
The ID of the cluster to retrieve the list of cluster snapshots for.
This parameter can't be used with the DBClusterSnapshotIdentifier
parameter. This parameter is not case sensitive.
Constraints:
- If provided, must match the identifier of an existing
DBCluster
.
describeDBClusterSnapshots_includeShared :: Lens' DescribeDBClusterSnapshots (Maybe Bool) Source #
Set to true
to include shared manual cluster snapshots from other
accounts that this account has been given permission to copy or restore,
and otherwise false
. The default is false
.
describeDBClusterSnapshots_dbClusterSnapshotIdentifier :: Lens' DescribeDBClusterSnapshots (Maybe Text) Source #
A specific cluster snapshot identifier to describe. This parameter
can't be used with the DBClusterIdentifier
parameter. This value is
stored as a lowercase string.
Constraints:
- If provided, must match the identifier of an existing
DBClusterSnapshot
. - If this identifier is for an automated snapshot, the
SnapshotType
parameter must also be specified.
describeDBClusterSnapshots_filters :: Lens' DescribeDBClusterSnapshots (Maybe [Filter]) Source #
This parameter is not currently supported.
describeDBClusterSnapshots_snapshotType :: Lens' DescribeDBClusterSnapshots (Maybe Text) Source #
The type of cluster snapshots to be returned. You can specify one of the following values:
automated
- Return all cluster snapshots that Amazon DocumentDB has automatically created for your account.manual
- Return all cluster snapshots that you have manually created for your account.shared
- Return all manual cluster snapshots that have been shared to your account.public
- Return all cluster snapshots that have been marked as public.
If you don't specify a SnapshotType
value, then both automated and
manual cluster snapshots are returned. You can include shared cluster
snapshots with these results by setting the IncludeShared
parameter to
true
. You can include public cluster snapshots with these results by
setting theIncludePublic
parameter to true
.
The IncludeShared
and IncludePublic
parameters don't apply for
SnapshotType
values of manual
or automated
. The IncludePublic
parameter doesn't apply when SnapshotType
is set to shared
. The
IncludeShared
parameter doesn't apply when SnapshotType
is set to
public
.
describeDBClusterSnapshots_marker :: Lens' DescribeDBClusterSnapshots (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
.
describeDBClusterSnapshots_maxRecords :: Lens' DescribeDBClusterSnapshots (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
(marker) is included in the response so that the remaining results can
be retrieved.
Default: 100
Constraints: Minimum 20, maximum 100.
describeDBClusterSnapshots_includePublic :: Lens' DescribeDBClusterSnapshots (Maybe Bool) Source #
Set to true
to include manual cluster snapshots that are public and
can be copied or restored by any account, and otherwise false
. The
default is false
.
Destructuring the Response
data DescribeDBClusterSnapshotsResponse Source #
Represents the output of DescribeDBClusterSnapshots.
See: newDescribeDBClusterSnapshotsResponse
smart constructor.
DescribeDBClusterSnapshotsResponse' | |
|
Instances
newDescribeDBClusterSnapshotsResponse Source #
Create a value of DescribeDBClusterSnapshotsResponse
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:DescribeDBClusterSnapshots'
, describeDBClusterSnapshotsResponse_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:dbClusterSnapshots:DescribeDBClusterSnapshotsResponse'
, describeDBClusterSnapshotsResponse_dbClusterSnapshots
- Provides a list of cluster snapshots.
$sel:httpStatus:DescribeDBClusterSnapshotsResponse'
, describeDBClusterSnapshotsResponse_httpStatus
- The response's http status code.
Response Lenses
describeDBClusterSnapshotsResponse_marker :: Lens' DescribeDBClusterSnapshotsResponse (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
.
describeDBClusterSnapshotsResponse_dbClusterSnapshots :: Lens' DescribeDBClusterSnapshotsResponse (Maybe [DBClusterSnapshot]) Source #
Provides a list of cluster snapshots.
describeDBClusterSnapshotsResponse_httpStatus :: Lens' DescribeDBClusterSnapshotsResponse Int Source #
The response's http status code.