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

Description

Deletes a previously provisioned cluster. When you delete a cluster, all automated backups for that cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified cluster are not deleted.

Synopsis

Creating a Request

data DeleteDBCluster Source #

Represents the input to DeleteDBCluster.

See: newDeleteDBCluster smart constructor.

Constructors

DeleteDBCluster' 

Fields

  • finalDBSnapshotIdentifier :: Maybe Text

    The cluster snapshot identifier of the new cluster snapshot created when SkipFinalSnapshot is set to false.

    Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

    Constraints:

    • Must be from 1 to 255 letters, numbers, or hyphens.
    • The first character must be a letter.
    • Cannot end with a hyphen or contain two consecutive hyphens.
  • skipFinalSnapshot :: Maybe Bool

    Determines whether a final cluster snapshot is created before the cluster is deleted. If true is specified, no cluster snapshot is created. If false is specified, a cluster snapshot is created before the DB cluster is deleted.

    If SkipFinalSnapshot is false, you must specify a FinalDBSnapshotIdentifier parameter.

    Default: false

  • dbClusterIdentifier :: Text

    The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive.

    Constraints:

    • Must match an existing DBClusterIdentifier.

Instances

Instances details
Eq DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Read DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Show DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Generic DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Associated Types

type Rep DeleteDBCluster :: Type -> Type #

NFData DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Methods

rnf :: DeleteDBCluster -> () #

Hashable DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

AWSRequest DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Associated Types

type AWSResponse DeleteDBCluster #

ToHeaders DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

ToPath DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

ToQuery DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

type Rep DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

type Rep DeleteDBCluster = D1 ('MetaData "DeleteDBCluster" "Amazonka.DocumentDB.DeleteDBCluster" "libZSservicesZSamazonka-docdbZSamazonka-docdb" 'False) (C1 ('MetaCons "DeleteDBCluster'" 'PrefixI 'True) (S1 ('MetaSel ('Just "finalDBSnapshotIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "skipFinalSnapshot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "dbClusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse DeleteDBCluster Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

newDeleteDBCluster Source #

Create a value of DeleteDBCluster 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:finalDBSnapshotIdentifier:DeleteDBCluster', deleteDBCluster_finalDBSnapshotIdentifier - The cluster snapshot identifier of the new cluster snapshot created when SkipFinalSnapshot is set to false.

Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

Constraints:

  • Must be from 1 to 255 letters, numbers, or hyphens.
  • The first character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

$sel:skipFinalSnapshot:DeleteDBCluster', deleteDBCluster_skipFinalSnapshot - Determines whether a final cluster snapshot is created before the cluster is deleted. If true is specified, no cluster snapshot is created. If false is specified, a cluster snapshot is created before the DB cluster is deleted.

If SkipFinalSnapshot is false, you must specify a FinalDBSnapshotIdentifier parameter.

Default: false

$sel:dbClusterIdentifier:DeleteDBCluster', deleteDBCluster_dbClusterIdentifier - The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive.

Constraints:

  • Must match an existing DBClusterIdentifier.

Request Lenses

deleteDBCluster_finalDBSnapshotIdentifier :: Lens' DeleteDBCluster (Maybe Text) Source #

The cluster snapshot identifier of the new cluster snapshot created when SkipFinalSnapshot is set to false.

Specifying this parameter and also setting the SkipFinalShapshot parameter to true results in an error.

Constraints:

  • Must be from 1 to 255 letters, numbers, or hyphens.
  • The first character must be a letter.
  • Cannot end with a hyphen or contain two consecutive hyphens.

deleteDBCluster_skipFinalSnapshot :: Lens' DeleteDBCluster (Maybe Bool) Source #

Determines whether a final cluster snapshot is created before the cluster is deleted. If true is specified, no cluster snapshot is created. If false is specified, a cluster snapshot is created before the DB cluster is deleted.

If SkipFinalSnapshot is false, you must specify a FinalDBSnapshotIdentifier parameter.

Default: false

deleteDBCluster_dbClusterIdentifier :: Lens' DeleteDBCluster Text Source #

The cluster identifier for the cluster to be deleted. This parameter isn't case sensitive.

Constraints:

  • Must match an existing DBClusterIdentifier.

Destructuring the Response

data DeleteDBClusterResponse Source #

See: newDeleteDBClusterResponse smart constructor.

Constructors

DeleteDBClusterResponse' 

Fields

Instances

Instances details
Eq DeleteDBClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Read DeleteDBClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Show DeleteDBClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Generic DeleteDBClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Associated Types

type Rep DeleteDBClusterResponse :: Type -> Type #

NFData DeleteDBClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

Methods

rnf :: DeleteDBClusterResponse -> () #

type Rep DeleteDBClusterResponse Source # 
Instance details

Defined in Amazonka.DocumentDB.DeleteDBCluster

type Rep DeleteDBClusterResponse = D1 ('MetaData "DeleteDBClusterResponse" "Amazonka.DocumentDB.DeleteDBCluster" "libZSservicesZSamazonka-docdbZSamazonka-docdb" 'False) (C1 ('MetaCons "DeleteDBClusterResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbCluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DBCluster)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteDBClusterResponse Source #

Create a value of DeleteDBClusterResponse 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:dbCluster:DeleteDBClusterResponse', deleteDBClusterResponse_dbCluster - Undocumented member.

$sel:httpStatus:DeleteDBClusterResponse', deleteDBClusterResponse_httpStatus - The response's http status code.

Response Lenses