KinesisClient.increase_stream_retention_period
rboto-kinesis==0.4.0 · Service index · Types
Model summary (excerpt): Increases the Kinesis data stream's retention period, which is the length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours (365 days). When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke...
Install and imports
Signature
async def increase_stream_retention_period(
*,
retention_period_hours: int,
stream_name: str | None = None,
stream_arn: str | None = None,
stream_id: str | None = None,
) -> None: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
retention_period_hours |
Yes | The new retention period of the stream, in hours. Must be more than the current retention period. |
stream_name |
No | The name of the stream to modify. |
stream_arn |
No | The ARN of the stream. |
stream_id |
No | Not Implemented. Reserved for future use. |
Output
None.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
—
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_kinesis.exceptions:
AccessDeniedError, InvalidArgumentError, LimitExceededError, ResourceInUseError, ResourceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.