amazonka-redshift-1.4.1: 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 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:

data EnableSnapshotCopy Source #

See: enableSnapshotCopy smart constructor.

Instances

Eq EnableSnapshotCopy Source # 
Data EnableSnapshotCopy Source # 

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

Methods

rnf :: EnableSnapshotCopy -> () #

AWSRequest EnableSnapshotCopy Source # 
ToQuery EnableSnapshotCopy Source # 
ToPath EnableSnapshotCopy Source # 
ToHeaders EnableSnapshotCopy Source # 
type Rep EnableSnapshotCopy Source # 
type Rep EnableSnapshotCopy = D1 (MetaData "EnableSnapshotCopy" "Network.AWS.Redshift.EnableSnapshotCopy" "amazonka-redshift-1.4.1-6kPkaOfgvaC7rEqhDOralh" 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 Source # 

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 # 
Data EnableSnapshotCopyResponse Source # 

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

Response Lenses