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.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 # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Data ModifySnapshotCopyRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Redshift.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 Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Show ModifySnapshotCopyRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Generic ModifySnapshotCopyRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Associated Types

type Rep ModifySnapshotCopyRetentionPeriod :: Type -> Type #

Hashable ModifySnapshotCopyRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

AWSRequest ModifySnapshotCopyRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Associated Types

type Rs ModifySnapshotCopyRetentionPeriod :: Type #

ToHeaders ModifySnapshotCopyRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

ToPath ModifySnapshotCopyRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

ToQuery ModifySnapshotCopyRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

NFData ModifySnapshotCopyRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

type Rep ModifySnapshotCopyRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

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

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

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 # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Data ModifySnapshotCopyRetentionPeriodResponse Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

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 # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Show ModifySnapshotCopyRetentionPeriodResponse Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Generic ModifySnapshotCopyRetentionPeriodResponse Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

NFData ModifySnapshotCopyRetentionPeriodResponse Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

type Rep ModifySnapshotCopyRetentionPeriodResponse Source # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

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

Response Lenses