Examples#
Index > AppConfigData > Examples
Auto-generated documentation for AppConfigData type annotations stubs module types-boto3-appconfigdata.
Client#
Implicit type annotations#
Can be used with types-boto3[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)
- client: AppConfigDataClient
- result: GetLatestConfigurationResponseTypeDef
Explicit type annotations#
With types-boto3-lite[appconfigdata]
or a standalone types_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 types_boto3_appconfigdata.client import AppConfigDataClient
from types_boto3_appconfigdata.type_defs import GetLatestConfigurationResponseTypeDef
from types_boto3_appconfigdata.type_defs import GetLatestConfigurationRequestRequestTypeDef
session = Session()
client: AppConfigDataClient = session.client("appconfigdata")
kwargs: GetLatestConfigurationRequestRequestTypeDef = {...}
result: GetLatestConfigurationResponseTypeDef = client.get_latest_configuration(**kwargs)