amazonka-kinesis-1.4.3: Amazon Kinesis 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.Kinesis.DecreaseStreamRetentionPeriod

Contents

Description

Decreases the Amazon Kinesis stream's retention period, which is the length of time data records are accessible after they are added to the stream. The minimum value of a stream's retention period is 24 hours.

This operation may result in lost data. For example, if the stream's retention period is 48 hours and is decreased to 24 hours, any data already in the stream that is older than 24 hours is inaccessible.

Synopsis

Creating a Request

decreaseStreamRetentionPeriod Source #

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

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

data DecreaseStreamRetentionPeriod Source #

Represents the input for DecreaseStreamRetentionPeriod.

See: decreaseStreamRetentionPeriod smart constructor.

Instances

Eq DecreaseStreamRetentionPeriod Source # 
Data DecreaseStreamRetentionPeriod Source # 

Methods

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

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

toConstr :: DecreaseStreamRetentionPeriod -> Constr #

dataTypeOf :: DecreaseStreamRetentionPeriod -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DecreaseStreamRetentionPeriod Source # 
Show DecreaseStreamRetentionPeriod Source # 
Generic DecreaseStreamRetentionPeriod Source # 
Hashable DecreaseStreamRetentionPeriod Source # 
ToJSON DecreaseStreamRetentionPeriod Source # 
NFData DecreaseStreamRetentionPeriod Source # 
AWSRequest DecreaseStreamRetentionPeriod Source # 
ToQuery DecreaseStreamRetentionPeriod Source # 
ToPath DecreaseStreamRetentionPeriod Source # 
ToHeaders DecreaseStreamRetentionPeriod Source # 
type Rep DecreaseStreamRetentionPeriod Source # 
type Rep DecreaseStreamRetentionPeriod = D1 (MetaData "DecreaseStreamRetentionPeriod" "Network.AWS.Kinesis.DecreaseStreamRetentionPeriod" "amazonka-kinesis-1.4.3-Ae0nwQ55647lNwGKtUEHQ" False) (C1 (MetaCons "DecreaseStreamRetentionPeriod'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dsrpStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dsrpRetentionPeriodHours") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat))))
type Rs DecreaseStreamRetentionPeriod Source # 

Request Lenses

dsrpStreamName :: Lens' DecreaseStreamRetentionPeriod Text Source #

The name of the stream to modify.

dsrpRetentionPeriodHours :: Lens' DecreaseStreamRetentionPeriod Natural Source #

The new retention period of the stream, in hours. Must be less than the current retention period.

Destructuring the Response

data DecreaseStreamRetentionPeriodResponse Source #

Instances

Eq DecreaseStreamRetentionPeriodResponse Source # 
Data DecreaseStreamRetentionPeriodResponse Source # 

Methods

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

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

toConstr :: DecreaseStreamRetentionPeriodResponse -> Constr #

dataTypeOf :: DecreaseStreamRetentionPeriodResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DecreaseStreamRetentionPeriodResponse Source # 
Show DecreaseStreamRetentionPeriodResponse Source # 
Generic DecreaseStreamRetentionPeriodResponse Source # 
NFData DecreaseStreamRetentionPeriodResponse Source # 
type Rep DecreaseStreamRetentionPeriodResponse Source # 
type Rep DecreaseStreamRetentionPeriodResponse = D1 (MetaData "DecreaseStreamRetentionPeriodResponse" "Network.AWS.Kinesis.DecreaseStreamRetentionPeriod" "amazonka-kinesis-1.4.3-Ae0nwQ55647lNwGKtUEHQ" False) (C1 (MetaCons "DecreaseStreamRetentionPeriodResponse'" PrefixI False) U1)