amazonka-redshift-1.4.5: Amazon Redshift SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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 #

See: enableSnapshotCopy smart constructor.

Instances

Eq EnableSnapshotCopy # 
Data 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 # 
Show EnableSnapshotCopy # 
Generic EnableSnapshotCopy # 
Hashable EnableSnapshotCopy # 
NFData EnableSnapshotCopy # 

Methods

rnf :: EnableSnapshotCopy -> () #

AWSRequest EnableSnapshotCopy # 
ToQuery EnableSnapshotCopy # 
ToPath EnableSnapshotCopy # 
ToHeaders EnableSnapshotCopy # 
type Rep EnableSnapshotCopy # 
type Rep EnableSnapshotCopy = D1 (MetaData "EnableSnapshotCopy" "Network.AWS.Redshift.EnableSnapshotCopy" "amazonka-redshift-1.4.5-5ygenDSSyjc71mxYPXWxi1" False) (C1 (MetaCons "EnableSnapshotCopy'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_escRetentionPeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_escSnapshotCopyGrantName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_escClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_escDestinationRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs EnableSnapshotCopy # 

Request Lenses

escRetentionPeriod :: Lens' EnableSnapshotCopy (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.

escSnapshotCopyGrantName :: Lens' EnableSnapshotCopy (Maybe Text) #

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 #

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 #

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 #

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 #

See: enableSnapshotCopyResponse smart constructor.

Instances

Eq EnableSnapshotCopyResponse # 
Data EnableSnapshotCopyResponse # 

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 # 
Show EnableSnapshotCopyResponse # 
Generic EnableSnapshotCopyResponse # 
NFData EnableSnapshotCopyResponse # 
type Rep EnableSnapshotCopyResponse # 
type Rep EnableSnapshotCopyResponse = D1 (MetaData "EnableSnapshotCopyResponse" "Network.AWS.Redshift.EnableSnapshotCopy" "amazonka-redshift-1.4.5-5ygenDSSyjc71mxYPXWxi1" False) (C1 (MetaCons "EnableSnapshotCopyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_escrsCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Cluster))) (S1 (MetaSel (Just Symbol "_escrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

escrsResponseStatus :: Lens' EnableSnapshotCopyResponse Int #

  • - | The response status code.