Skip to content

StreamDescription

Source code in docs_src/capo_dynamodb_streams/types/stream_description.py
class StreamDescription(TypedDict, closed=True):
    stream_arn: NotRequired["capo_dynamodb_streams.types.stream_arn.StreamArn"]
    """<p>The Amazon Resource Name (ARN) for the stream.</p>"""
    stream_label: NotRequired["capo_dynamodb_streams.types.string.String"]
    """<p>A timestamp, in ISO 8601 format, for this stream.</p> <p>Note that <code>LatestStreamLabel</code> is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:</p> <ul> <li> <p>the Amazon Web Services customer ID.</p> </li> <li> <p>the table name</p> </li> <li> <p>the <code>StreamLabel</code> </p> </li> </ul>"""
    stream_status: NotRequired["capo_dynamodb_streams.types.stream_status.StreamStatus"]
    """<p>Indicates the current status of the stream:</p> <ul> <li> <p> <code>ENABLING</code> - Streams is currently being enabled on the DynamoDB table.</p> </li> <li> <p> <code>ENABLED</code> - the stream is enabled.</p> </li> <li> <p> <code>DISABLING</code> - Streams is currently being disabled on the DynamoDB table.</p> </li> <li> <p> <code>DISABLED</code> - the stream is disabled.</p> </li> </ul>"""
    stream_view_type: NotRequired[
        "capo_dynamodb_streams.types.stream_view_type.StreamViewType"
    ]
    """<p>Indicates the format of the records within this stream:</p> <ul> <li> <p> <code>KEYS_ONLY</code> - only the key attributes of items that were modified in the DynamoDB table.</p> </li> <li> <p> <code>NEW_IMAGE</code> - entire items from the table, as they appeared after they were modified.</p> </li> <li> <p> <code>OLD_IMAGE</code> - entire items from the table, as they appeared before they were modified.</p> </li> <li> <p> <code>NEW_AND_OLD_IMAGES</code> - both the new and the old images of the items from the table.</p> </li> </ul>"""
    creation_request_date_time: NotRequired["capo_dynamodb_streams.types.date.Date"]
    """<p>The date and time when the request to create this stream was issued.</p>"""
    table_name: NotRequired["capo_dynamodb_streams.types.table_name.TableName"]
    """<p>The DynamoDB table with which the stream is associated.</p>"""
    key_schema: NotRequired["capo_dynamodb_streams.types.key_schema.KeySchema"]
    """<p>The key attribute(s) of the stream's DynamoDB table.</p>"""
    shards: NotRequired[
        "capo_dynamodb_streams.types.shard_description_list.ShardDescriptionList"
    ]
    """<p>The shards that comprise the stream.</p>"""
    last_evaluated_shard_id: NotRequired["capo_dynamodb_streams.types.shard_id.ShardId"]
    """<p>The shard ID of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.</p> <p>If <code>LastEvaluatedShardId</code> is empty, then the "last page" of results has been processed and there is currently no more data to be retrieved.</p> <p>If <code>LastEvaluatedShardId</code> is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when <code>LastEvaluatedShardId</code> is empty.</p>"""

creation_request_date_time instance-attribute

creation_request_date_time: NotRequired[Date]

The date and time when the request to create this stream was issued.

key_schema instance-attribute

key_schema: NotRequired[KeySchema]

The key attribute(s) of the stream's DynamoDB table.

last_evaluated_shard_id instance-attribute

last_evaluated_shard_id: NotRequired[ShardId]

The shard ID of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

If LastEvaluatedShardId is empty, then the "last page" of results has been processed and there is currently no more data to be retrieved.

If LastEvaluatedShardId is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedShardId is empty.

shards instance-attribute

shards: NotRequired[ShardDescriptionList]

The shards that comprise the stream.

stream_arn instance-attribute

stream_arn: NotRequired[StreamArn]

The Amazon Resource Name (ARN) for the stream.

stream_label instance-attribute

stream_label: NotRequired[String]

A timestamp, in ISO 8601 format, for this stream.

Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:

  • the Amazon Web Services customer ID.

  • the table name

  • the StreamLabel

stream_status instance-attribute

stream_status: NotRequired[StreamStatus]

Indicates the current status of the stream:

  • ENABLING - Streams is currently being enabled on the DynamoDB table.

  • ENABLED - the stream is enabled.

  • DISABLING - Streams is currently being disabled on the DynamoDB table.

  • DISABLED - the stream is disabled.

stream_view_type instance-attribute

stream_view_type: NotRequired[StreamViewType]

Indicates the format of the records within this stream:

  • KEYS_ONLY - only the key attributes of items that were modified in the DynamoDB table.

  • NEW_IMAGE - entire items from the table, as they appeared after they were modified.

  • OLD_IMAGE - entire items from the table, as they appeared before they were modified.

  • NEW_AND_OLD_IMAGES - both the new and the old images of the items from the table.

table_name instance-attribute

table_name: NotRequired[TableName]

The DynamoDB table with which the stream is associated.