Type definitions#
Index > DynamoDBStreams > Type definitions
Auto-generated documentation for DynamoDBStreams type annotations stubs module mypy-boto3-dynamodbstreams.
AttributeValueTypeDef#
# AttributeValueTypeDef definition
class AttributeValueTypeDef(TypedDict):
S: NotRequired[str],
N: NotRequired[str],
B: NotRequired[bytes],
SS: NotRequired[List[str]],
NS: NotRequired[List[str]],
BS: NotRequired[List[bytes]],
M: NotRequired[Dict[str, Dict[str, Any]]],
L: NotRequired[List[Dict[str, Any]]],
NULL: NotRequired[bool],
BOOL: NotRequired[bool],
DescribeStreamInputRequestTypeDef#
# DescribeStreamInputRequestTypeDef definition
class DescribeStreamInputRequestTypeDef(TypedDict):
StreamArn: str,
Limit: NotRequired[int],
ExclusiveStartShardId: NotRequired[str],
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
GetRecordsInputRequestTypeDef#
# GetRecordsInputRequestTypeDef definition
class GetRecordsInputRequestTypeDef(TypedDict):
ShardIterator: str,
Limit: NotRequired[int],
GetShardIteratorInputRequestTypeDef#
# GetShardIteratorInputRequestTypeDef definition
class GetShardIteratorInputRequestTypeDef(TypedDict):
StreamArn: str,
ShardId: str,
ShardIteratorType: ShardIteratorTypeType, # (1)
SequenceNumber: NotRequired[str],
IdentityTypeDef#
# IdentityTypeDef definition
class IdentityTypeDef(TypedDict):
PrincipalId: NotRequired[str],
Type: NotRequired[str],
KeySchemaElementTypeDef#
# KeySchemaElementTypeDef definition
class KeySchemaElementTypeDef(TypedDict):
AttributeName: str,
KeyType: KeyTypeType, # (1)
- See KeyTypeType
ListStreamsInputRequestTypeDef#
# ListStreamsInputRequestTypeDef definition
class ListStreamsInputRequestTypeDef(TypedDict):
TableName: NotRequired[str],
Limit: NotRequired[int],
ExclusiveStartStreamArn: NotRequired[str],
StreamTypeDef#
# StreamTypeDef definition
class StreamTypeDef(TypedDict):
StreamArn: NotRequired[str],
TableName: NotRequired[str],
StreamLabel: NotRequired[str],
SequenceNumberRangeTypeDef#
# SequenceNumberRangeTypeDef definition
class SequenceNumberRangeTypeDef(TypedDict):
StartingSequenceNumber: NotRequired[str],
EndingSequenceNumber: NotRequired[str],
StreamRecordTypeDef#
# StreamRecordTypeDef definition
class StreamRecordTypeDef(TypedDict):
ApproximateCreationDateTime: NotRequired[datetime],
Keys: NotRequired[Dict[str, AttributeValueTypeDef]], # (1)
NewImage: NotRequired[Dict[str, AttributeValueTypeDef]], # (1)
OldImage: NotRequired[Dict[str, AttributeValueTypeDef]], # (1)
SequenceNumber: NotRequired[str],
SizeBytes: NotRequired[int],
StreamViewType: NotRequired[StreamViewTypeType], # (4)
- See AttributeValueTypeDef
- See AttributeValueTypeDef
- See AttributeValueTypeDef
- See StreamViewTypeType
GetShardIteratorOutputTypeDef#
# GetShardIteratorOutputTypeDef definition
class GetShardIteratorOutputTypeDef(TypedDict):
ShardIterator: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ListStreamsOutputTypeDef#
# ListStreamsOutputTypeDef definition
class ListStreamsOutputTypeDef(TypedDict):
Streams: List[StreamTypeDef], # (1)
LastEvaluatedStreamArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
- See StreamTypeDef
- See ResponseMetadataTypeDef
ShardTypeDef#
# ShardTypeDef definition
class ShardTypeDef(TypedDict):
ShardId: NotRequired[str],
SequenceNumberRange: NotRequired[SequenceNumberRangeTypeDef], # (1)
ParentShardId: NotRequired[str],
RecordTypeDef#
# RecordTypeDef definition
class RecordTypeDef(TypedDict):
eventID: NotRequired[str],
eventName: NotRequired[OperationTypeType], # (1)
eventVersion: NotRequired[str],
eventSource: NotRequired[str],
awsRegion: NotRequired[str],
dynamodb: NotRequired[StreamRecordTypeDef], # (2)
userIdentity: NotRequired[IdentityTypeDef], # (3)
- See OperationTypeType
- See StreamRecordTypeDef
- See IdentityTypeDef
StreamDescriptionTypeDef#
# StreamDescriptionTypeDef definition
class StreamDescriptionTypeDef(TypedDict):
StreamArn: NotRequired[str],
StreamLabel: NotRequired[str],
StreamStatus: NotRequired[StreamStatusType], # (1)
StreamViewType: NotRequired[StreamViewTypeType], # (2)
CreationRequestDateTime: NotRequired[datetime],
TableName: NotRequired[str],
KeySchema: NotRequired[List[KeySchemaElementTypeDef]], # (3)
Shards: NotRequired[List[ShardTypeDef]], # (4)
LastEvaluatedShardId: NotRequired[str],
- See StreamStatusType
- See StreamViewTypeType
- See KeySchemaElementTypeDef
- See ShardTypeDef
GetRecordsOutputTypeDef#
# GetRecordsOutputTypeDef definition
class GetRecordsOutputTypeDef(TypedDict):
Records: List[RecordTypeDef], # (1)
NextShardIterator: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
- See RecordTypeDef
- See ResponseMetadataTypeDef
DescribeStreamOutputTypeDef#
# DescribeStreamOutputTypeDef definition
class DescribeStreamOutputTypeDef(TypedDict):
StreamDescription: StreamDescriptionTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)