Skip to content

AppSync module#

Index > AppSync

Auto-generated documentation for AppSync type annotations stubs module types-aiobotocore-appsync.

How to install#

From PyPI with pip#

Install types-aiobotocore for AppSync service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[appsync]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[appsync]'


# standalone installation
python -m pip install types-aiobotocore-appsync

How to uninstall#

python -m pip uninstall -y types-aiobotocore-appsync

Usage#

Code samples can be found in Examples.

AppSyncClient#

Type annotations and code completion for session.create_client("appsync") as AppSyncClient boto3 documentation

# AppSyncClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_appsync.client import AppSyncClient


session = get_session()
async with session.create_client("appsync") as client:
    client: AppSyncClient

Paginators#

Type annotations and code completion for paginators from session.create_client("appsync").get_paginator("...").

# ListApiKeysPaginator usage example

from types_aiobotocore_appsync.paginator import ListApiKeysPaginator

def get_list_api_keys_paginator() -> ListApiKeysPaginator:
    return client.get_paginator("list_api_keys"))

Literals#

Type annotations for literals used in methods and schema.

# ApiCacheStatusType usage example

from types_aiobotocore_appsync.literals import ApiCacheStatusType

def get_value() -> ApiCacheStatusType:
    return "AVAILABLE"

Type definitions#

Type annotations for type definitions used in methods and schema.