amazonka-redshift-1.6.1: Amazon Redshift SDK.

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

Network.AWS.Redshift.EnableSnapshotCopy

Contents

Description

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

Synopsis

Creating a Request

enableSnapshotCopy Source #

Creates a value of EnableSnapshotCopy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • escRetentionPeriod - 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.
  • escSnapshotCopyGrantName - The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
  • escClusterIdentifier - 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.
  • escDestinationRegion - The destination region that you want to copy snapshots to. Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.

data EnableSnapshotCopy Source #

See: enableSnapshotCopy smart constructor.

Instances
Eq EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Data EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EnableSnapshotCopy -> c EnableSnapshotCopy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EnableSnapshotCopy #

toConstr :: EnableSnapshotCopy -> Constr #

dataTypeOf :: EnableSnapshotCopy -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c EnableSnapshotCopy) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EnableSnapshotCopy) #

gmapT :: (forall b. Data b => b -> b) -> EnableSnapshotCopy -> EnableSnapshotCopy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EnableSnapshotCopy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EnableSnapshotCopy -> r #

gmapQ :: (forall d. Data d => d -> u) -> EnableSnapshotCopy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EnableSnapshotCopy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EnableSnapshotCopy -> m EnableSnapshotCopy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableSnapshotCopy -> m EnableSnapshotCopy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableSnapshotCopy -> m EnableSnapshotCopy #

Read EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Show EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Generic EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Associated Types

type Rep EnableSnapshotCopy :: Type -> Type #

Hashable EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

AWSRequest EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Associated Types

type Rs EnableSnapshotCopy :: Type #

ToHeaders EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

ToPath EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

ToQuery EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

NFData EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Methods

rnf :: EnableSnapshotCopy -> () #

type Rep EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

type Rep EnableSnapshotCopy = D1 (MetaData "EnableSnapshotCopy" "Network.AWS.Redshift.EnableSnapshotCopy" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "EnableSnapshotCopy'" PrefixI True) ((S1 (MetaSel (Just "_escRetentionPeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_escSnapshotCopyGrantName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_escClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_escDestinationRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs EnableSnapshotCopy Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Request Lenses

escRetentionPeriod :: 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.

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

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

escClusterIdentifier :: 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.

escDestinationRegion :: Lens' EnableSnapshotCopy Text Source #

The destination region that you want to copy snapshots to. Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.

Destructuring the Response

enableSnapshotCopyResponse Source #

Creates a value of EnableSnapshotCopyResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data EnableSnapshotCopyResponse Source #

See: enableSnapshotCopyResponse smart constructor.

Instances
Eq EnableSnapshotCopyResponse Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Data EnableSnapshotCopyResponse Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EnableSnapshotCopyResponse -> c EnableSnapshotCopyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EnableSnapshotCopyResponse #

toConstr :: EnableSnapshotCopyResponse -> Constr #

dataTypeOf :: EnableSnapshotCopyResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c EnableSnapshotCopyResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EnableSnapshotCopyResponse) #

gmapT :: (forall b. Data b => b -> b) -> EnableSnapshotCopyResponse -> EnableSnapshotCopyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EnableSnapshotCopyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EnableSnapshotCopyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> EnableSnapshotCopyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EnableSnapshotCopyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EnableSnapshotCopyResponse -> m EnableSnapshotCopyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableSnapshotCopyResponse -> m EnableSnapshotCopyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableSnapshotCopyResponse -> m EnableSnapshotCopyResponse #

Read EnableSnapshotCopyResponse Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Show EnableSnapshotCopyResponse Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Generic EnableSnapshotCopyResponse Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

Associated Types

type Rep EnableSnapshotCopyResponse :: Type -> Type #

NFData EnableSnapshotCopyResponse Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

type Rep EnableSnapshotCopyResponse Source # 
Instance details

Defined in Network.AWS.Redshift.EnableSnapshotCopy

type Rep EnableSnapshotCopyResponse = D1 (MetaData "EnableSnapshotCopyResponse" "Network.AWS.Redshift.EnableSnapshotCopy" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "EnableSnapshotCopyResponse'" PrefixI True) (S1 (MetaSel (Just "_escrsCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Cluster)) :*: S1 (MetaSel (Just "_escrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses