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-aioboto3 for AppSync service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[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-aioboto3-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.client("appsync") as AppSyncClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_appsync.client import AppSyncClient


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

Paginators

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

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.

Usage example
from types_aiobotocore_appsync.literals import ApiCacheStatusType

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

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_appsync.type_defs import CognitoUserPoolConfigTypeDef

def get_value() -> CognitoUserPoolConfigTypeDef:
    return {
        "userPoolId": ...,
        "awsRegion": ...,
    }