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