amazonka-kinesis-1.3.3: Amazon Kinesis SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Decreases the 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.

See: AWS API Reference for DecreaseStreamRetentionPeriod.


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:

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