Examples#
Auto-generated documentation for RoboMaker type annotations stubs module types-aiobotocore-robomaker.
Client#
Implicit type annotations#
Can be used with types-aiobotocore[robomaker]
package installed.
Write your RoboMaker
code as usual,
type checking and code completion should work out of the box.
# RoboMakerClient usage example
from aiobotocore.session import get_session
session = get_session()
async with session.create_client("robomaker") as client: # (1)
result = await client.batch_delete_worlds() # (2)
- client: RoboMakerClient
- result: BatchDeleteWorldsResponseTypeDef
# ListDeploymentJobsPaginator usage example
from aiobotocore.session import get_session
session = get_session()
async with session.create_client("robomaker") as client: # (1)
paginator = client.get_paginator("list_deployment_jobs") # (2)
async for item in paginator.paginate(...):
print(item) # (3)
- client: RoboMakerClient
- paginator: ListDeploymentJobsPaginator
- item: ListDeploymentJobsResponseTypeDef
Explicit type annotations#
With types-aiobotocore-lite[robomaker]
or a standalone types_aiobotocore_robomaker
package, you have to explicitly specify
client: RoboMakerClient
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.
# RoboMakerClient usage example with type annotations
from aiobotocore.session import get_session
from types_aiobotocore_robomaker.client import RoboMakerClient
from types_aiobotocore_robomaker.type_defs import BatchDeleteWorldsResponseTypeDef
from types_aiobotocore_robomaker.type_defs import BatchDeleteWorldsRequestRequestTypeDef
session = get_session()
async with session.create_client("robomaker") as client:
client: RoboMakerClient
kwargs: BatchDeleteWorldsRequestRequestTypeDef = {...}
result: BatchDeleteWorldsResponseTypeDef = await client.batch_delete_worlds(**kwargs)
# ListDeploymentJobsPaginator usage example with type annotations
from aiobotocore.session import get_session
from types_aiobotocore_robomaker.client import RoboMakerClient
from types_aiobotocore_robomaker.paginator import ListDeploymentJobsPaginator
from types_aiobotocore_robomaker.type_defs import ListDeploymentJobsResponseTypeDef
session = get_session()
async with session.create_client("robomaker") as client:
client: RoboMakerClient
paginator: ListDeploymentJobsPaginator = client.get_paginator("list_deployment_jobs")
async for item in paginator.paginate(...):
item: ListDeploymentJobsResponseTypeDef
print(item)