Examples#
Auto-generated documentation for Appflow type annotations stubs module types-aiobotocore-appflow.
Client#
Implicit type annotations#
Can be used with types-aioboto3[appflow]
package installed.
Write your Appflow
code as usual,
type checking and code completion should work out of the box.
# AppflowClient usage example
from aioboto3.session import Session
session = Session()
async with session.client("appflow") as client: # (1)
result = await client.cancel_flow_executions() # (2)
- client: AppflowClient
- result: CancelFlowExecutionsResponseTypeDef
Explicit type annotations#
With types-aioboto3-lite[appflow]
or a standalone types_aiobotocore_appflow
package, you have to explicitly specify
client: AppflowClient
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.
# AppflowClient usage example with type annotations
from aioboto3.session import Session
from types_aiobotocore_appflow.client import AppflowClient
from types_aiobotocore_appflow.type_defs import CancelFlowExecutionsResponseTypeDef
from types_aiobotocore_appflow.type_defs import CancelFlowExecutionsRequestRequestTypeDef
session = Session()
client: AppflowClient
async with session.client("appflow") as client: # (1)
kwargs: CancelFlowExecutionsRequestRequestTypeDef = {...} # (2)
result: CancelFlowExecutionsResponseTypeDef = await client.cancel_flow_executions(**kwargs) # (3)
- client: AppflowClient
- kwargs: CancelFlowExecutionsRequestRequestTypeDef
- result: CancelFlowExecutionsResponseTypeDef