libZSservicesZSamazonka-redshiftZSamazonka-redshift
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.Redshift.DeleteClusterSnapshot

Description

Deletes the specified manual snapshot. The snapshot must be in the available state, with no other users authorized to access the snapshot.

Unlike automated snapshots, manual snapshots are retained even after you delete your cluster. Amazon Redshift does not delete your manual snapshots. You must delete manual snapshot explicitly to avoid getting charged. If other accounts are authorized to access the snapshot, you must revoke all of the authorizations before you can delete the snapshot.

Synopsis

Creating a Request

data DeleteClusterSnapshot Source #

See: newDeleteClusterSnapshot smart constructor.

Constructors

DeleteClusterSnapshot' 

Fields

  • snapshotClusterIdentifier :: Maybe Text

    The unique identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.

    Constraints: Must be the name of valid cluster.

  • snapshotIdentifier :: Text

    The unique identifier of the manual snapshot to be deleted.

    Constraints: Must be the name of an existing snapshot that is in the available, failed, or cancelled state.

Instances

Instances details
Eq DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

Read DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

Show DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

Generic DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

Associated Types

type Rep DeleteClusterSnapshot :: Type -> Type #

NFData DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

Methods

rnf :: DeleteClusterSnapshot -> () #

Hashable DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

AWSRequest DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

Associated Types

type AWSResponse DeleteClusterSnapshot #

ToHeaders DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

ToPath DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

ToQuery DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

type Rep DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

type Rep DeleteClusterSnapshot = D1 ('MetaData "DeleteClusterSnapshot" "Amazonka.Redshift.DeleteClusterSnapshot" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "DeleteClusterSnapshot'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshotClusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "snapshotIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

newDeleteClusterSnapshot Source #

Create a value of DeleteClusterSnapshot 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:snapshotClusterIdentifier:DeleteClusterSnapshot', deleteClusterSnapshot_snapshotClusterIdentifier - The unique identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.

Constraints: Must be the name of valid cluster.

$sel:snapshotIdentifier:DeleteClusterSnapshot', deleteClusterSnapshot_snapshotIdentifier - The unique identifier of the manual snapshot to be deleted.

Constraints: Must be the name of an existing snapshot that is in the available, failed, or cancelled state.

Request Lenses

deleteClusterSnapshot_snapshotClusterIdentifier :: Lens' DeleteClusterSnapshot (Maybe Text) Source #

The unique identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.

Constraints: Must be the name of valid cluster.

deleteClusterSnapshot_snapshotIdentifier :: Lens' DeleteClusterSnapshot Text Source #

The unique identifier of the manual snapshot to be deleted.

Constraints: Must be the name of an existing snapshot that is in the available, failed, or cancelled state.

Destructuring the Response

data DeleteClusterSnapshotResponse Source #

See: newDeleteClusterSnapshotResponse smart constructor.

Constructors

DeleteClusterSnapshotResponse' 

Fields

Instances

Instances details
Eq DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

Read DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

Show DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

Generic DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

Associated Types

type Rep DeleteClusterSnapshotResponse :: Type -> Type #

NFData DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

type Rep DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.DeleteClusterSnapshot

type Rep DeleteClusterSnapshotResponse = D1 ('MetaData "DeleteClusterSnapshotResponse" "Amazonka.Redshift.DeleteClusterSnapshot" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "DeleteClusterSnapshotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Snapshot)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteClusterSnapshotResponse Source #

Create a value of DeleteClusterSnapshotResponse 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:snapshot:DeleteClusterSnapshotResponse', deleteClusterSnapshotResponse_snapshot - Undocumented member.

$sel:httpStatus:DeleteClusterSnapshotResponse', deleteClusterSnapshotResponse_httpStatus - The response's http status code.

Response Lenses