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

Contents

Description

Decreases the Kinesis data 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 # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

Data DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

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

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

Show DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

Generic DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

Associated Types

type Rep DecreaseStreamRetentionPeriod :: Type -> Type #

Hashable DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

ToJSON DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

AWSRequest DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

Associated Types

type Rs DecreaseStreamRetentionPeriod :: Type #

ToHeaders DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

ToPath DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

ToQuery DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

NFData DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

type Rep DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

type Rep DecreaseStreamRetentionPeriod = D1 (MetaData "DecreaseStreamRetentionPeriod" "Network.AWS.Kinesis.DecreaseStreamRetentionPeriod" "amazonka-kinesis-1.6.1-DicNGWPqg566LpzNlyqosm" False) (C1 (MetaCons "DecreaseStreamRetentionPeriod'" PrefixI True) (S1 (MetaSel (Just "_dsrpStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dsrpRetentionPeriodHours") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat)))
type Rs DecreaseStreamRetentionPeriod Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

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

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

Data DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

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

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

Show DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

Generic DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

NFData DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

type Rep DecreaseStreamRetentionPeriodResponse Source # 
Instance details

Defined in Network.AWS.Kinesis.DecreaseStreamRetentionPeriod

type Rep DecreaseStreamRetentionPeriodResponse = D1 (MetaData "DecreaseStreamRetentionPeriodResponse" "Network.AWS.Kinesis.DecreaseStreamRetentionPeriod" "amazonka-kinesis-1.6.1-DicNGWPqg566LpzNlyqosm" False) (C1 (MetaCons "DecreaseStreamRetentionPeriodResponse'" PrefixI False) (U1 :: Type -> Type))