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

Description

Enables the automatic copy of snapshots from one region to another region for a specified cluster.

Synopsis

Creating a Request

data EnableSnapshotCopy Source #

See: newEnableSnapshotCopy smart constructor.

Constructors

EnableSnapshotCopy' 

Fields

  • manualSnapshotRetentionPeriod :: Maybe Int

    The number of days to retain newly copied snapshots in the destination Amazon Web Services Region after they are copied from the source Amazon Web Services Region. 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.

  • retentionPeriod :: Maybe Int

    The number of days to retain automated snapshots in the destination region after they are copied from the source region.

    Default: 7.

    Constraints: Must be at least 1 and no more than 35.

  • snapshotCopyGrantName :: Maybe Text

    The name of the snapshot copy grant to use when snapshots of an Amazon Web Services KMS-encrypted cluster are copied to the destination region.

  • clusterIdentifier :: Text

    The unique identifier of the source cluster to copy snapshots from.

    Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.

  • destinationRegion :: Text

    The destination Amazon Web Services Region that you want to copy snapshots to.

    Constraints: Must be the name of a valid Amazon Web Services Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.

Instances

Instances details
Eq EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

Read EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

Show EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

Generic EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

Associated Types

type Rep EnableSnapshotCopy :: Type -> Type #

NFData EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

Methods

rnf :: EnableSnapshotCopy -> () #

Hashable EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

AWSRequest EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

Associated Types

type AWSResponse EnableSnapshotCopy #

ToHeaders EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

ToPath EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

ToQuery EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

type Rep EnableSnapshotCopy Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

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

Defined in Amazonka.Redshift.EnableSnapshotCopy

newEnableSnapshotCopy Source #

Create a value of EnableSnapshotCopy 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:EnableSnapshotCopy', enableSnapshotCopy_manualSnapshotRetentionPeriod - The number of days to retain newly copied snapshots in the destination Amazon Web Services Region after they are copied from the source Amazon Web Services Region. 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.

$sel:retentionPeriod:EnableSnapshotCopy', enableSnapshotCopy_retentionPeriod - The number of days to retain automated snapshots in the destination region after they are copied from the source region.

Default: 7.

Constraints: Must be at least 1 and no more than 35.

$sel:snapshotCopyGrantName:EnableSnapshotCopy', enableSnapshotCopy_snapshotCopyGrantName - The name of the snapshot copy grant to use when snapshots of an Amazon Web Services KMS-encrypted cluster are copied to the destination region.

$sel:clusterIdentifier:EnableSnapshotCopy', enableSnapshotCopy_clusterIdentifier - The unique identifier of the source cluster to copy snapshots from.

Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.

$sel:destinationRegion:EnableSnapshotCopy', enableSnapshotCopy_destinationRegion - The destination Amazon Web Services Region that you want to copy snapshots to.

Constraints: Must be the name of a valid Amazon Web Services Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.

Request Lenses

enableSnapshotCopy_manualSnapshotRetentionPeriod :: Lens' EnableSnapshotCopy (Maybe Int) Source #

The number of days to retain newly copied snapshots in the destination Amazon Web Services Region after they are copied from the source Amazon Web Services Region. 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.

enableSnapshotCopy_retentionPeriod :: Lens' EnableSnapshotCopy (Maybe Int) Source #

The number of days to retain automated snapshots in the destination region after they are copied from the source region.

Default: 7.

Constraints: Must be at least 1 and no more than 35.

enableSnapshotCopy_snapshotCopyGrantName :: Lens' EnableSnapshotCopy (Maybe Text) Source #

The name of the snapshot copy grant to use when snapshots of an Amazon Web Services KMS-encrypted cluster are copied to the destination region.

enableSnapshotCopy_clusterIdentifier :: Lens' EnableSnapshotCopy Text Source #

The unique identifier of the source cluster to copy snapshots from.

Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.

enableSnapshotCopy_destinationRegion :: Lens' EnableSnapshotCopy Text Source #

The destination Amazon Web Services Region that you want to copy snapshots to.

Constraints: Must be the name of a valid Amazon Web Services Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.

Destructuring the Response

data EnableSnapshotCopyResponse Source #

See: newEnableSnapshotCopyResponse smart constructor.

Constructors

EnableSnapshotCopyResponse' 

Fields

Instances

Instances details
Eq EnableSnapshotCopyResponse Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

Read EnableSnapshotCopyResponse Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

Show EnableSnapshotCopyResponse Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

Generic EnableSnapshotCopyResponse Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

Associated Types

type Rep EnableSnapshotCopyResponse :: Type -> Type #

NFData EnableSnapshotCopyResponse Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

type Rep EnableSnapshotCopyResponse Source # 
Instance details

Defined in Amazonka.Redshift.EnableSnapshotCopy

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

newEnableSnapshotCopyResponse Source #

Create a value of EnableSnapshotCopyResponse 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:cluster:EnableSnapshotCopyResponse', enableSnapshotCopyResponse_cluster - Undocumented member.

$sel:httpStatus:EnableSnapshotCopyResponse', enableSnapshotCopyResponse_httpStatus - The response's http status code.

Response Lenses