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