Skip to content

Examples

Index > SupportApp > Examples

Auto-generated documentation for SupportApp type annotations stubs module types-aiobotocore-support-app.

Client

Implicit type annotations

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

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

Client usage example
from aioboto3.session import Session


session = Session()

async with session.client("support-app") as client:  # (1)
    result = await client.list_slack_channel_configurations()  # (2)
  1. client: SupportAppClient
  2. result: ListSlackChannelConfigurationsResultTypeDef

Explicit type annotations

With types-aioboto3-lite[support-app] or a standalone types_aiobotocore_support_app package, you have to explicitly specify client: SupportAppClient 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 aioboto3.session import Session

from types_aiobotocore_support_app.client import SupportAppClient
from types_aiobotocore_support_app.type_defs import ListSlackChannelConfigurationsResultTypeDef
from types_aiobotocore_support_app.type_defs import ListSlackChannelConfigurationsRequestRequestTypeDef


session = Session()

client: SupportAppClient
async with session.client("support-app") as client:  # (1)
    kwargs: ListSlackChannelConfigurationsRequestRequestTypeDef = {...}  # (2)
    result: ListSlackChannelConfigurationsResultTypeDef = await client.list_slack_channel_configurations(**kwargs)  # (3)
  1. client: SupportAppClient
  2. kwargs: ListSlackChannelConfigurationsRequestRequestTypeDef
  3. result: ListSlackChannelConfigurationsResultTypeDef