update_data_retention
(**kwargs)¶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
.
Note
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:
See also: AWS API Documentation
Request Syntax
response = client.update_data_retention(
StreamName='string',
StreamARN='string',
CurrentVersion='string',
Operation='INCREASE_DATA_RETENTION'|'DECREASE_DATA_RETENTION',
DataRetentionChangeInHours=123
)
[REQUIRED]
The version of the stream whose retention period you want to change. To get the version, call either the DescribeStream
or the ListStreams
API.
[REQUIRED]
Indicates whether you want to increase or decrease the retention period.
[REQUIRED]
The retention period, in hours. The value you specify replaces the current value. The maximum value for this parameter is 87600 (ten years).
dict
Response Syntax
{}
Response Structure
Exceptions
KinesisVideo.Client.exceptions.ClientLimitExceededException
KinesisVideo.Client.exceptions.InvalidArgumentException
KinesisVideo.Client.exceptions.ResourceNotFoundException
KinesisVideo.Client.exceptions.ResourceInUseException
KinesisVideo.Client.exceptions.NotAuthorizedException
KinesisVideo.Client.exceptions.VersionMismatchException