Examples
Index > DynamoDBStreams > Examples
Auto-generated documentation for DynamoDBStreams type annotations stubs module types-aiobotocore-dynamodbstreams.
Client
Implicit type annotations
Can be used with types-aioboto3[dynamodbstreams]
package installed.
Write your DynamoDBStreams
code as usual,
type checking and code completion should work out of the box.
Client usage example
from aioboto3.session import Session
session = Session()
async with session.client("dynamodbstreams") as client: # (1)
result = await client.describe_stream() # (2)
- client: DynamoDBStreamsClient
- result: DescribeStreamOutputTypeDef
Explicit type annotations
With types-aioboto3-lite[dynamodbstreams]
or a standalone types_aiobotocore_dynamodbstreams
package, you have to explicitly specify
client: DynamoDBStreamsClient
type annotation.
All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.
Client usage example
from aioboto3.session import Session
from types_aiobotocore_dynamodbstreams.client import DynamoDBStreamsClient
from types_aiobotocore_dynamodbstreams.type_defs import DescribeStreamOutputTypeDef
from types_aiobotocore_dynamodbstreams.type_defs import DescribeStreamInputRequestTypeDef
session = Session()
client: DynamoDBStreamsClient
async with session.client("dynamodbstreams") as client: # (1)
kwargs: DescribeStreamInputRequestTypeDef = {...} # (2)
result: DescribeStreamOutputTypeDef = await client.describe_stream(**kwargs) # (3)
- client: DynamoDBStreamsClient
- kwargs: DescribeStreamInputRequestTypeDef
- result: DescribeStreamOutputTypeDef