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

Description

Creates a manual snapshot of the specified cluster. The cluster must be in the available state.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.

Synopsis

Creating a Request

data CreateClusterSnapshot Source #

See: newCreateClusterSnapshot smart constructor.

Constructors

CreateClusterSnapshot' 

Fields

  • manualSnapshotRetentionPeriod :: Maybe Int

    The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.

    The value must be either -1 or an integer between 1 and 3,653.

    The default value is -1.

  • tags :: Maybe [Tag]

    A list of tag instances.

  • snapshotIdentifier :: Text

    A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.

    Constraints:

    • Cannot be null, empty, or blank
    • Must contain from 1 to 255 alphanumeric characters or hyphens
    • First character must be a letter
    • Cannot end with a hyphen or contain two consecutive hyphens

    Example: my-snapshot-id

  • clusterIdentifier :: Text

    The cluster identifier for which you want a snapshot.

Instances

Instances details
Eq CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

Read CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

Show CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

Generic CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

Associated Types

type Rep CreateClusterSnapshot :: Type -> Type #

NFData CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

Methods

rnf :: CreateClusterSnapshot -> () #

Hashable CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

AWSRequest CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

Associated Types

type AWSResponse CreateClusterSnapshot #

ToHeaders CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

ToPath CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

ToQuery CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

type Rep CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

type Rep CreateClusterSnapshot = D1 ('MetaData "CreateClusterSnapshot" "Amazonka.Redshift.CreateClusterSnapshot" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "CreateClusterSnapshot'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "manualSnapshotRetentionPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "snapshotIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "clusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateClusterSnapshot Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

newCreateClusterSnapshot Source #

Create a value of CreateClusterSnapshot 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:manualSnapshotRetentionPeriod:CreateClusterSnapshot', createClusterSnapshot_manualSnapshotRetentionPeriod - The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

The default value is -1.

$sel:tags:CreateClusterSnapshot', createClusterSnapshot_tags - A list of tag instances.

$sel:snapshotIdentifier:CreateClusterSnapshot', createClusterSnapshot_snapshotIdentifier - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

$sel:clusterIdentifier:CreateClusterSnapshot', createClusterSnapshot_clusterIdentifier - The cluster identifier for which you want a snapshot.

Request Lenses

createClusterSnapshot_manualSnapshotRetentionPeriod :: Lens' CreateClusterSnapshot (Maybe Int) Source #

The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

The default value is -1.

createClusterSnapshot_snapshotIdentifier :: Lens' CreateClusterSnapshot Text Source #

A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

createClusterSnapshot_clusterIdentifier :: Lens' CreateClusterSnapshot Text Source #

The cluster identifier for which you want a snapshot.

Destructuring the Response

data CreateClusterSnapshotResponse Source #

See: newCreateClusterSnapshotResponse smart constructor.

Constructors

CreateClusterSnapshotResponse' 

Fields

Instances

Instances details
Eq CreateClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

Read CreateClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

Show CreateClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

Generic CreateClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

Associated Types

type Rep CreateClusterSnapshotResponse :: Type -> Type #

NFData CreateClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

type Rep CreateClusterSnapshotResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSnapshot

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

newCreateClusterSnapshotResponse Source #

Create a value of CreateClusterSnapshotResponse 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:CreateClusterSnapshotResponse', createClusterSnapshotResponse_snapshot - Undocumented member.

$sel:httpStatus:CreateClusterSnapshotResponse', createClusterSnapshotResponse_httpStatus - The response's http status code.

Response Lenses