Skip to content

Examples#

Index > AppConfigData > Examples

Auto-generated documentation for AppConfigData type annotations stubs module mypy-boto3-appconfigdata.

Client#

Implicit type annotations#

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

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

# AppConfigDataClient usage example

from boto3.session import Session


session = Session()

client = session.client("appconfigdata")  # (1)
result = client.get_latest_configuration()  # (2)
  1. client: AppConfigDataClient
  2. result: GetLatestConfigurationResponseTypeDef

Explicit type annotations#

With boto3-stubs-lite[appconfigdata] or a standalone mypy_boto3_appconfigdata package, you have to explicitly specify client: AppConfigDataClient 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.

# AppConfigDataClient usage example with type annotations

from boto3.session import Session

from mypy_boto3_appconfigdata.client import AppConfigDataClient
from mypy_boto3_appconfigdata.type_defs import GetLatestConfigurationResponseTypeDef
from mypy_boto3_appconfigdata.type_defs import GetLatestConfigurationRequestRequestTypeDef


session = Session()

client: AppConfigDataClient = session.client("appconfigdata")

kwargs: GetLatestConfigurationRequestRequestTypeDef = {...}
result: GetLatestConfigurationResponseTypeDef = client.get_latest_configuration(**kwargs)