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 #

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

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

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

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Show ModifySnapshotCopyRetentionPeriod # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Generic ModifySnapshotCopyRetentionPeriod # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Associated Types

type Rep ModifySnapshotCopyRetentionPeriod :: Type -> Type #

Hashable ModifySnapshotCopyRetentionPeriod # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

AWSRequest ModifySnapshotCopyRetentionPeriod # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Associated Types

type Rs ModifySnapshotCopyRetentionPeriod :: Type #

ToHeaders ModifySnapshotCopyRetentionPeriod # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

ToPath ModifySnapshotCopyRetentionPeriod # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

ToQuery ModifySnapshotCopyRetentionPeriod # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

NFData ModifySnapshotCopyRetentionPeriod # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

type Rep ModifySnapshotCopyRetentionPeriod # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

type Rep ModifySnapshotCopyRetentionPeriod = D1 (MetaData "ModifySnapshotCopyRetentionPeriod" "Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod" "amazonka-redshift-1.6.1-7E7pXybui4gHstewEovezS" 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 # 
Instance details

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

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

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

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Show ModifySnapshotCopyRetentionPeriodResponse # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

Generic ModifySnapshotCopyRetentionPeriodResponse # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

NFData ModifySnapshotCopyRetentionPeriodResponse # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

type Rep ModifySnapshotCopyRetentionPeriodResponse # 
Instance details

Defined in Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod

type Rep ModifySnapshotCopyRetentionPeriodResponse = D1 (MetaData "ModifySnapshotCopyRetentionPeriodResponse" "Network.AWS.Redshift.ModifySnapshotCopyRetentionPeriod" "amazonka-redshift-1.6.1-7E7pXybui4gHstewEovezS" 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