Skip to content

Examples

Index > WellArchitected > Examples

Auto-generated documentation for WellArchitected type annotations stubs module mypy-boto3-wellarchitected.

Client

Implicit type annotations

Can be used with boto3-stubs[wellarchitected] package installed.

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

Client usage example
from boto3.session import Session


session = Session()

client = session.client("wellarchitected")  # (1)
result = client.associate_lenses()  # (2)
  1. client: WellArchitectedClient
  2. result: EmptyResponseMetadataTypeDef

Explicit type annotations

With boto3-stubs-lite[wellarchitected] or a standalone mypy_boto3_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.

Client usage example
from boto3.session import Session

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


session = Session()

client: WellArchitectedClient = session.client("wellarchitected")

kwargs: AssociateLensesInputRequestTypeDef = {...}
result: EmptyResponseMetadataTypeDef = client.associate_lenses(**kwargs)