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

Contents

Description

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

Synopsis

Creating a Request

modifySnapshotCopyRetentionPeriod #

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

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

  • mscrpClusterIdentifier - The unique identifier of the cluster for which you want to change the retention period for automated snapshots that are copied to a destination region. Constraints: Must be the valid name of an existing cluster that has cross-region snapshot copy enabled.
  • mscrpRetentionPeriod - The number of days to retain automated snapshots in the destination region after they are copied from the source region. If you decrease the retention period for automated snapshots that are copied to a destination region, Amazon Redshift will delete any existing automated snapshots that were copied to the destination region and that fall outside of the new retention period. Constraints: Must be at least 1 and no more than 35.

data ModifySnapshotCopyRetentionPeriod #

See: modifySnapshotCopyRetentionPeriod smart constructor.

Instances

Eq ModifySnapshotCopyRetentionPeriod # 
Data ModifySnapshotCopyRetentionPeriod # 

Methods

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

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

toConstr :: ModifySnapshotCopyRetentionPeriod -> Constr #

dataTypeOf :: ModifySnapshotCopyRetentionPeriod -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifySnapshotCopyRetentionPeriod # 
Show ModifySnapshotCopyRetentionPeriod # 
Generic ModifySnapshotCopyRetentionPeriod # 
Hashable ModifySnapshotCopyRetentionPeriod # 
NFData ModifySnapshotCopyRetentionPeriod # 
AWSRequest ModifySnapshotCopyRetentionPeriod # 
ToQuery ModifySnapshotCopyRetentionPeriod # 
ToPath ModifySnapshotCopyRetentionPeriod # 
ToHeaders ModifySnapshotCopyRetentionPeriod # 
type Rep ModifySnapshotCopyRetentionPeriod # 
type Rep ModifySnapshotCopyRetentionPeriod = D1 (MetaData "ModifySnapshotCopyRetentionPeriod" "Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod" "amazonka-redshift-1.4.5-5ygenDSSyjc71mxYPXWxi1" False) (C1 (MetaCons "ModifySnapshotCopyRetentionPeriod'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mscrpClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_mscrpRetentionPeriod") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))
type Rs ModifySnapshotCopyRetentionPeriod # 

Request Lenses

mscrpClusterIdentifier :: Lens' ModifySnapshotCopyRetentionPeriod Text #

The unique identifier of the cluster for which you want to change the retention period for automated snapshots that are copied to a destination region. Constraints: Must be the valid name of an existing cluster that has cross-region snapshot copy enabled.

mscrpRetentionPeriod :: Lens' ModifySnapshotCopyRetentionPeriod Int #

The number of days to retain automated snapshots in the destination region after they are copied from the source region. If you decrease the retention period for automated snapshots that are copied to a destination region, Amazon Redshift will delete any existing automated snapshots that were copied to the destination region and that fall outside of the new retention period. Constraints: Must be at least 1 and no more than 35.

Destructuring the Response

modifySnapshotCopyRetentionPeriodResponse #

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

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

data ModifySnapshotCopyRetentionPeriodResponse #

Instances

Eq ModifySnapshotCopyRetentionPeriodResponse # 
Data ModifySnapshotCopyRetentionPeriodResponse # 

Methods

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

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

toConstr :: ModifySnapshotCopyRetentionPeriodResponse -> Constr #

dataTypeOf :: ModifySnapshotCopyRetentionPeriodResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifySnapshotCopyRetentionPeriodResponse # 
Show ModifySnapshotCopyRetentionPeriodResponse # 
Generic ModifySnapshotCopyRetentionPeriodResponse # 
NFData ModifySnapshotCopyRetentionPeriodResponse # 
type Rep ModifySnapshotCopyRetentionPeriodResponse # 
type Rep ModifySnapshotCopyRetentionPeriodResponse = D1 (MetaData "ModifySnapshotCopyRetentionPeriodResponse" "Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod" "amazonka-redshift-1.4.5-5ygenDSSyjc71mxYPXWxi1" False) (C1 (MetaCons "ModifySnapshotCopyRetentionPeriodResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mscrprsCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Cluster))) (S1 (MetaSel (Just Symbol "_mscrprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses