amazonka-kinesis-video-1.6.1: Amazon Kinesis Video Streams 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.KinesisVideo.UpdateDataRetention

Contents

Description

Increases or decreases the stream's data retention period by the value that you specify. To indicate whether you want to increase or decrease the data retention period, specify the Operation parameter in the request body. In the request, you must specify either the StreamName or the StreamARN .

This operation requires permission for the KinesisVideo:UpdateDataRetention action.

Changing the data retention period affects the data in the stream as follows:

  • If the data retention period is increased, existing data is retained for the new retention period. For example, if the data retention period is increased from one hour to seven hours, all existing data is retained for seven hours.
  • If the data retention period is decreased, existing data is retained for the new retention period. For example, if the data retention period is decreased from seven hours to one hour, all existing data is retained for one hour, and any data older than one hour is deleted immediately.
Synopsis

Creating a Request

updateDataRetention Source #

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

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

  • udrStreamARN - The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
  • udrStreamName - The name of the stream whose retention period you want to change.
  • udrCurrentVersion - The version of the stream whose retention period you want to change. To get the version, call either the DescribeStream or the ListStreams API.
  • udrOperation - Indicates whether you want to increase or decrease the retention period.
  • udrDataRetentionChangeInHours - The retention period, in hours. The value you specify replaces the current value.

data UpdateDataRetention Source #

See: updateDataRetention smart constructor.

Instances
Eq UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Data UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Methods

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

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

toConstr :: UpdateDataRetention -> Constr #

dataTypeOf :: UpdateDataRetention -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Show UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Generic UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Associated Types

type Rep UpdateDataRetention :: Type -> Type #

Hashable UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

ToJSON UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

AWSRequest UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Associated Types

type Rs UpdateDataRetention :: Type #

ToHeaders UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

ToPath UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

ToQuery UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

NFData UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Methods

rnf :: UpdateDataRetention -> () #

type Rep UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

type Rep UpdateDataRetention = D1 (MetaData "UpdateDataRetention" "Network.AWS.KinesisVideo.UpdateDataRetention" "amazonka-kinesis-video-1.6.1-DmBW3ngoQkA6qcsiLaMbWy" False) (C1 (MetaCons "UpdateDataRetention'" PrefixI True) ((S1 (MetaSel (Just "_udrStreamARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_udrStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_udrCurrentVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_udrOperation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UpdateDataRetentionOperation) :*: S1 (MetaSel (Just "_udrDataRetentionChangeInHours") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat)))))
type Rs UpdateDataRetention Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Request Lenses

udrStreamARN :: Lens' UpdateDataRetention (Maybe Text) Source #

The Amazon Resource Name (ARN) of the stream whose retention period you want to change.

udrStreamName :: Lens' UpdateDataRetention (Maybe Text) Source #

The name of the stream whose retention period you want to change.

udrCurrentVersion :: Lens' UpdateDataRetention Text Source #

The version of the stream whose retention period you want to change. To get the version, call either the DescribeStream or the ListStreams API.

udrOperation :: Lens' UpdateDataRetention UpdateDataRetentionOperation Source #

Indicates whether you want to increase or decrease the retention period.

udrDataRetentionChangeInHours :: Lens' UpdateDataRetention Natural Source #

The retention period, in hours. The value you specify replaces the current value.

Destructuring the Response

updateDataRetentionResponse Source #

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

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

data UpdateDataRetentionResponse Source #

See: updateDataRetentionResponse smart constructor.

Instances
Eq UpdateDataRetentionResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Data UpdateDataRetentionResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Methods

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

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

toConstr :: UpdateDataRetentionResponse -> Constr #

dataTypeOf :: UpdateDataRetentionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateDataRetentionResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Show UpdateDataRetentionResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Generic UpdateDataRetentionResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

Associated Types

type Rep UpdateDataRetentionResponse :: Type -> Type #

NFData UpdateDataRetentionResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

type Rep UpdateDataRetentionResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.UpdateDataRetention

type Rep UpdateDataRetentionResponse = D1 (MetaData "UpdateDataRetentionResponse" "Network.AWS.KinesisVideo.UpdateDataRetention" "amazonka-kinesis-video-1.6.1-DmBW3ngoQkA6qcsiLaMbWy" True) (C1 (MetaCons "UpdateDataRetentionResponse'" PrefixI True) (S1 (MetaSel (Just "_udrrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses