Skip to content

Examples#

Index > WellArchitected > Examples

Auto-generated documentation for WellArchitected type annotations stubs module types-aiobotocore-wellarchitected.

Client#

Implicit type annotations#

Can be used with types-aiobotocore[wellarchitected] package installed.

Write your WellArchitected code as usual, type checking and code completion should work out of the box.

# WellArchitectedClient usage example

from aiobotocore.session import get_session


session = get_session()

async with session.create_client("wellarchitected") as client:  # (1)
    result = await client.associate_lenses()  # (2)
  1. client: WellArchitectedClient
  2. result: EmptyResponseMetadataTypeDef

Explicit type annotations#

With types-aiobotocore-lite[wellarchitected] or a standalone types_aiobotocore_wellarchitected package, you have to explicitly specify client: WellArchitectedClient 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.

# WellArchitectedClient usage example with type annotations

from aiobotocore.session import get_session

from types_aiobotocore_wellarchitected.client import WellArchitectedClient
from types_aiobotocore_wellarchitected.type_defs import EmptyResponseMetadataTypeDef
from types_aiobotocore_wellarchitected.type_defs import AssociateLensesInputRequestTypeDef


session = get_session()

async with session.create_client("wellarchitected") as client:
    client: WellArchitectedClient
    kwargs: AssociateLensesInputRequestTypeDef = {...}
    result: EmptyResponseMetadataTypeDef = await client.associate_lenses(**kwargs)