Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- updateDataRetention :: Text -> UpdateDataRetentionOperation -> Natural -> UpdateDataRetention
- data UpdateDataRetention
- udrStreamARN :: Lens' UpdateDataRetention (Maybe Text)
- udrStreamName :: Lens' UpdateDataRetention (Maybe Text)
- udrCurrentVersion :: Lens' UpdateDataRetention Text
- udrOperation :: Lens' UpdateDataRetention UpdateDataRetentionOperation
- udrDataRetentionChangeInHours :: Lens' UpdateDataRetention Natural
- updateDataRetentionResponse :: Int -> UpdateDataRetentionResponse
- data UpdateDataRetentionResponse
- udrrsResponseStatus :: Lens' UpdateDataRetentionResponse Int
Creating a Request
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 theDescribeStream
or theListStreams
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.
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:
udrrsResponseStatus
- -- | The response status code.
data UpdateDataRetentionResponse Source #
See: updateDataRetentionResponse
smart constructor.
Response Lenses
udrrsResponseStatus :: Lens' UpdateDataRetentionResponse Int Source #
- - | The response status code.