Examples#
Index > BillingConductor > Examples
Auto-generated documentation for BillingConductor type annotations stubs module types-boto3-billingconductor.
Client#
Implicit type annotations#
Can be used with types-boto3[billingconductor]
package installed.
Write your BillingConductor
code as usual,
type checking and code completion should work out of the box.
# BillingConductorClient usage example
from boto3.session import Session
session = Session()
client = session.client("billingconductor") # (1)
result = client.associate_accounts() # (2)
- client: BillingConductorClient
- result: AssociateAccountsOutputTypeDef
# ListAccountAssociationsPaginator usage example
from boto3.session import Session
session = Session()
client = session.client("billingconductor") # (1)
paginator = client.get_paginator("list_account_associations") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: BillingConductorClient
- paginator: ListAccountAssociationsPaginator
- item: ListAccountAssociationsOutputTypeDef
Explicit type annotations#
With types-boto3-lite[billingconductor]
or a standalone types_boto3_billingconductor
package, you have to explicitly specify client: BillingConductorClient
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.
# BillingConductorClient usage example with type annotations
from boto3.session import Session
from types_boto3_billingconductor.client import BillingConductorClient
from types_boto3_billingconductor.type_defs import AssociateAccountsOutputTypeDef
from types_boto3_billingconductor.type_defs import AssociateAccountsInputRequestTypeDef
session = Session()
client: BillingConductorClient = session.client("billingconductor")
kwargs: AssociateAccountsInputRequestTypeDef = {...}
result: AssociateAccountsOutputTypeDef = client.associate_accounts(**kwargs)
# ListAccountAssociationsPaginator usage example with type annotations
from boto3.session import Session
from types_boto3_billingconductor.client import BillingConductorClient
from types_boto3_billingconductor.paginator import ListAccountAssociationsPaginator
from types_boto3_billingconductor.type_defs import ListAccountAssociationsOutputTypeDef
session = Session()
client: BillingConductorClient = session.client("billingconductor")
paginator: ListAccountAssociationsPaginator = client.get_paginator("list_account_associations")
for item in paginator.paginate(...):
item: ListAccountAssociationsOutputTypeDef
print(item)