libZSservicesZSamazonka-docdbZSamazonka-docdb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DocumentDB.DescribeDBClusterSnapshots

Description

Returns information about cluster snapshots. This API operation supports pagination.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeDBClusterSnapshots Source #

Represents the input to DescribeDBClusterSnapshots.

See: newDescribeDBClusterSnapshots smart constructor.

Constructors

DescribeDBClusterSnapshots' 

Fields

  • dbClusterIdentifier :: Maybe Text

    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.
  • includeShared :: Maybe Bool

    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.

  • dbClusterSnapshotIdentifier :: Maybe Text

    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.
  • filters :: Maybe [Filter]

    This parameter is not currently supported.

  • snapshotType :: Maybe Text

    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.

  • marker :: Maybe Text

    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.

  • maxRecords :: Maybe Int

    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.

  • includePublic :: Maybe Bool

    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.

Instances

Instances details
Eq DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

Read DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

Show DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

Generic DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

Associated Types

type Rep DescribeDBClusterSnapshots :: Type -> Type #

NFData DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

Hashable DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

AWSPager DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

AWSRequest DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

ToHeaders DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

ToPath DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

ToQuery DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

type Rep DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

type Rep DescribeDBClusterSnapshots = D1 ('MetaData "DescribeDBClusterSnapshots" "Amazonka.DocumentDB.DescribeDBClusterSnapshots" "libZSservicesZSamazonka-docdbZSamazonka-docdb" 'False) (C1 ('MetaCons "DescribeDBClusterSnapshots'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "dbClusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "includeShared") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "dbClusterSnapshotIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])))) :*: ((S1 ('MetaSel ('Just "snapshotType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "maxRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "includePublic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))))
type AWSResponse DescribeDBClusterSnapshots Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

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_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.

Constructors

DescribeDBClusterSnapshotsResponse' 

Fields

  • marker :: Maybe Text

    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.

  • dbClusterSnapshots :: Maybe [DBClusterSnapshot]

    Provides a list of cluster snapshots.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeDBClusterSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

Read DescribeDBClusterSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

Show DescribeDBClusterSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

Generic DescribeDBClusterSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

Associated Types

type Rep DescribeDBClusterSnapshotsResponse :: Type -> Type #

NFData DescribeDBClusterSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

type Rep DescribeDBClusterSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DescribeDBClusterSnapshots

type Rep DescribeDBClusterSnapshotsResponse = D1 ('MetaData "DescribeDBClusterSnapshotsResponse" "Amazonka.DocumentDB.DescribeDBClusterSnapshots" "libZSservicesZSamazonka-docdbZSamazonka-docdb" 'False) (C1 ('MetaCons "DescribeDBClusterSnapshotsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dbClusterSnapshots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DBClusterSnapshot])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.