DynamoDBClient.update_time_to_live
rboto-dynamodb==0.4.0 · Service index · Types
Model summary (excerpt): The UpdateTimeToLive method enables or disables Time to Live (TTL) for the specified table. A successful UpdateTimeToLive call returns the current TimeToLiveSpecification . It can take up to one hour for the change to fully process. Any additional UpdateTimeToLive calls for the same table during this one hour duration result in a ValidationException . TTL compares the current time in epoch...
Install and imports
from rboto import DynamoDBClient
from rboto_dynamodb.types import (
TimeToLiveSpecification,
UpdateTimeToLiveOutput,
)
Signature
async def update_time_to_live(
*,
table_name: str,
time_to_live_specification: TimeToLiveSpecification,
) -> UpdateTimeToLiveOutput: ...
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) |
|---|---|---|
table_name |
Yes | The name of the table to be configured. You can also provide the Amazon Resource Name (ARN) of the table in this parameter. |
time_to_live_specification |
Yes | Represents the settings used to enable or disable Time to Live for the specified table. |
Output
UpdateTimeToLiveOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
time_to_live_specification |
TimeToLiveSpecificationOutput | None |
Always present | TimeToLiveSpecificationOutput |
| 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
TimeToLiveSpecification, UpdateTimeToLiveOutput
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_dynamodb.exceptions:
InternalServerError, InvalidEndpointError, LimitExceededError, ResourceInUseError, ResourceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.