amazonka-redshift-1.6.0: 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.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 Source #

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

See: modifySnapshotCopyRetentionPeriod smart constructor.

Instances

Eq ModifySnapshotCopyRetentionPeriod Source # 
Data ModifySnapshotCopyRetentionPeriod Source # 

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 Source # 
Show ModifySnapshotCopyRetentionPeriod Source # 
Generic ModifySnapshotCopyRetentionPeriod Source # 
Hashable ModifySnapshotCopyRetentionPeriod Source # 
NFData ModifySnapshotCopyRetentionPeriod Source # 
AWSRequest ModifySnapshotCopyRetentionPeriod Source # 
ToHeaders ModifySnapshotCopyRetentionPeriod Source # 
ToPath ModifySnapshotCopyRetentionPeriod Source # 
ToQuery ModifySnapshotCopyRetentionPeriod Source # 
type Rep ModifySnapshotCopyRetentionPeriod Source # 
type Rep ModifySnapshotCopyRetentionPeriod = D1 * (MetaData "ModifySnapshotCopyRetentionPeriod" "Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod" "amazonka-redshift-1.6.0-7nAokQL56xfEdvuigF8j6k" False) (C1 * (MetaCons "ModifySnapshotCopyRetentionPeriod'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_mscrpClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_mscrpRetentionPeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))
type Rs ModifySnapshotCopyRetentionPeriod Source # 

Request Lenses

mscrpClusterIdentifier :: Lens' ModifySnapshotCopyRetentionPeriod Text Source #

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

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

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

Instances

Eq ModifySnapshotCopyRetentionPeriodResponse Source # 
Data ModifySnapshotCopyRetentionPeriodResponse Source # 

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 Source # 
Show ModifySnapshotCopyRetentionPeriodResponse Source # 
Generic ModifySnapshotCopyRetentionPeriodResponse Source # 
NFData ModifySnapshotCopyRetentionPeriodResponse Source # 
type Rep ModifySnapshotCopyRetentionPeriodResponse Source # 
type Rep ModifySnapshotCopyRetentionPeriodResponse = D1 * (MetaData "ModifySnapshotCopyRetentionPeriodResponse" "Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod" "amazonka-redshift-1.6.0-7nAokQL56xfEdvuigF8j6k" False) (C1 * (MetaCons "ModifySnapshotCopyRetentionPeriodResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_mscrprsCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Cluster))) (S1 * (MetaSel (Just Symbol "_mscrprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses