Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- decreaseStreamRetentionPeriod :: Text -> Natural -> DecreaseStreamRetentionPeriod
- data DecreaseStreamRetentionPeriod
- dsrpStreamName :: Lens' DecreaseStreamRetentionPeriod Text
- dsrpRetentionPeriodHours :: Lens' DecreaseStreamRetentionPeriod Natural
- decreaseStreamRetentionPeriodResponse :: DecreaseStreamRetentionPeriodResponse
- data DecreaseStreamRetentionPeriodResponse
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:
dsrpStreamName
- The name of the stream to modify.dsrpRetentionPeriodHours
- The new retention period of the stream, in hours. Must be less than the current retention period.
data DecreaseStreamRetentionPeriod Source #
Represents the input for DecreaseStreamRetentionPeriod
.
See: decreaseStreamRetentionPeriod
smart constructor.
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
decreaseStreamRetentionPeriodResponse :: DecreaseStreamRetentionPeriodResponse Source #
Creates a value of DecreaseStreamRetentionPeriodResponse
with the minimum fields required to make a request.
data DecreaseStreamRetentionPeriodResponse Source #
See: decreaseStreamRetentionPeriodResponse
smart constructor.