libZSservicesZSamazonka-kinesis-videoZSamazonka-kinesis-video
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.KinesisVideo.UpdateDataRetention

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.

The retention period that you specify replaces the current value.

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

data UpdateDataRetention Source #

See: newUpdateDataRetention smart constructor.

Constructors

UpdateDataRetention' 

Fields

  • streamARN :: Maybe Text

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

  • streamName :: Maybe Text

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

  • currentVersion :: Text

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

  • operation :: UpdateDataRetentionOperation

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

  • dataRetentionChangeInHours :: Natural

    The retention period, in hours. The value you specify replaces the current value. The maximum value for this parameter is 87600 (ten years).

Instances

Instances details
Eq UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

Read UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

Show UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

Generic UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

Associated Types

type Rep UpdateDataRetention :: Type -> Type #

NFData UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

Methods

rnf :: UpdateDataRetention -> () #

Hashable UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

ToJSON UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

AWSRequest UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

Associated Types

type AWSResponse UpdateDataRetention #

ToHeaders UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

ToPath UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

ToQuery UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

type Rep UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

type Rep UpdateDataRetention = D1 ('MetaData "UpdateDataRetention" "Amazonka.KinesisVideo.UpdateDataRetention" "libZSservicesZSamazonka-kinesis-videoZSamazonka-kinesis-video" 'False) (C1 ('MetaCons "UpdateDataRetention'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "streamARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "streamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "currentVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UpdateDataRetentionOperation) :*: S1 ('MetaSel ('Just "dataRetentionChangeInHours") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))))
type AWSResponse UpdateDataRetention Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

newUpdateDataRetention Source #

Create a value of UpdateDataRetention with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:streamARN:UpdateDataRetention', updateDataRetention_streamARN - The Amazon Resource Name (ARN) of the stream whose retention period you want to change.

$sel:streamName:UpdateDataRetention', updateDataRetention_streamName - The name of the stream whose retention period you want to change.

$sel:currentVersion:UpdateDataRetention', updateDataRetention_currentVersion - The version of the stream whose retention period you want to change. To get the version, call either the DescribeStream or the ListStreams API.

$sel:operation:UpdateDataRetention', updateDataRetention_operation - Indicates whether you want to increase or decrease the retention period.

$sel:dataRetentionChangeInHours:UpdateDataRetention', updateDataRetention_dataRetentionChangeInHours - The retention period, in hours. The value you specify replaces the current value. The maximum value for this parameter is 87600 (ten years).

Request Lenses

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

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

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

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

updateDataRetention_currentVersion :: 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.

updateDataRetention_operation :: Lens' UpdateDataRetention UpdateDataRetentionOperation Source #

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

updateDataRetention_dataRetentionChangeInHours :: Lens' UpdateDataRetention Natural Source #

The retention period, in hours. The value you specify replaces the current value. The maximum value for this parameter is 87600 (ten years).

Destructuring the Response

data UpdateDataRetentionResponse Source #

See: newUpdateDataRetentionResponse smart constructor.

Constructors

UpdateDataRetentionResponse' 

Fields

Instances

Instances details
Eq UpdateDataRetentionResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

Read UpdateDataRetentionResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

Show UpdateDataRetentionResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

Generic UpdateDataRetentionResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

Associated Types

type Rep UpdateDataRetentionResponse :: Type -> Type #

NFData UpdateDataRetentionResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

type Rep UpdateDataRetentionResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.UpdateDataRetention

type Rep UpdateDataRetentionResponse = D1 ('MetaData "UpdateDataRetentionResponse" "Amazonka.KinesisVideo.UpdateDataRetention" "libZSservicesZSamazonka-kinesis-videoZSamazonka-kinesis-video" 'False) (C1 ('MetaCons "UpdateDataRetentionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateDataRetentionResponse Source #

Create a value of UpdateDataRetentionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:UpdateDataRetentionResponse', updateDataRetentionResponse_httpStatus - The response's http status code.

Response Lenses