Examples#
Index > BillingandCostManagementDataExports > Examples
Auto-generated documentation for BillingandCostManagementDataExports type annotations stubs module types-aiobotocore-bcm-data-exports.
Client#
Implicit type annotations#
Can be used with types-aioboto3[bcm-data-exports]
package installed.
Write your BillingandCostManagementDataExports
code as usual,
type checking and code completion should work out of the box.
Client method usage example#
# BillingandCostManagementDataExportsClient usage example
from aioboto3.session import Session
session = Session()
async with session.client("bcm-data-exports") as client: # (1)
result = await client.create_export() # (2)
- client: BillingandCostManagementDataExportsClient
- result: CreateExportResponseTypeDef
Paginator usage example#
# ListExecutionsPaginator usage example
from aioboto3.session import Session
session = Session()
async with session.client("bcm-data-exports") as client: # (1)
paginator = client.get_paginator("list_executions") # (2)
async for item in paginator.paginate(...):
print(item) # (3)
- client: BillingandCostManagementDataExportsClient
- paginator: ListExecutionsPaginator
- item: ListExecutionsResponseTypeDef
Explicit type annotations#
With types-aioboto3-lite[bcm-data-exports]
or a standalone types_aiobotocore_bcm_data_exports
package, you have to explicitly specify
client: BillingandCostManagementDataExportsClient
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 method usage example#
# BillingandCostManagementDataExportsClient usage example with type annotations
from aioboto3.session import Session
from types_aiobotocore_bcm_data_exports.client import BillingandCostManagementDataExportsClient
from types_aiobotocore_bcm_data_exports.type_defs import CreateExportResponseTypeDef
from types_aiobotocore_bcm_data_exports.type_defs import CreateExportRequestTypeDef
session = Session()
client: BillingandCostManagementDataExportsClient
async with session.client("bcm-data-exports") as client: # (1)
kwargs: CreateExportRequestTypeDef = {...} # (2)
result: CreateExportResponseTypeDef = await client.create_export(**kwargs) # (3)
- client: BillingandCostManagementDataExportsClient
- kwargs: CreateExportRequestTypeDef
- result: CreateExportResponseTypeDef
Paginator usage example#
# ListExecutionsPaginator usage example with type annotations
from aioboto3.session import Session
from types_aiobotocore_bcm_data_exports.client import BillingandCostManagementDataExportsClient
from types_aiobotocore_bcm_data_exports.paginator import ListExecutionsPaginator
from types_aiobotocore_bcm_data_exports.type_defs import ListExecutionsResponseTypeDef
session = Session()
client: BillingandCostManagementDataExportsClient
async with session.client("bcm-data-exports") as client: # (1)
paginator: ListExecutionsPaginator = client.get_paginator("list_executions") # (2)
async for item in paginator.paginate(...):
item: ListExecutionsResponseTypeDef
print(item) # (3)
- client: BillingandCostManagementDataExportsClient
- paginator: ListExecutionsPaginator
- item: ListExecutionsResponseTypeDef