Skip to content

Examples#

Index > AppConfigData > Examples

Auto-generated documentation for AppConfigData type annotations stubs module types-aiobotocore-appconfigdata.

Client#

Implicit type annotations#

Can be used with types-aioboto3[appconfigdata] package installed.

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

# AppConfigDataClient usage example

from aioboto3.session import Session


session = Session()

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

Explicit type annotations#

With types-aioboto3-lite[appconfigdata] or a standalone types_aiobotocore_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 aioboto3.session import Session

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


session = Session()

client: AppConfigDataClient
async with session.client("appconfigdata") as client:  # (1)
    kwargs: GetLatestConfigurationRequestRequestTypeDef = {...}  # (2)
    result: GetLatestConfigurationResponseTypeDef = await client.get_latest_configuration(**kwargs)  # (3)
  1. client: AppConfigDataClient
  2. kwargs: GetLatestConfigurationRequestRequestTypeDef
  3. result: GetLatestConfigurationResponseTypeDef