Skip to content

CognitoSync module

Index > CognitoSync

Auto-generated documentation for CognitoSync type annotations stubs module types-aiobotocore-cognito-sync.

How to install

From PyPI with pip

Install types-aioboto3 for CognitoSync service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[cognito-sync]'


# 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[cognito-sync]'


# standalone installation
python -m pip install types-aiobotocore-cognito-sync

How to uninstall

python -m pip uninstall -y types-aiobotocore-cognito-sync

Usage

Code samples can be found in Examples.

CognitoSyncClient

Type annotations and code completion for session.client("cognito-sync") as CognitoSyncClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_cognito_sync.client import CognitoSyncClient


session = Session()
async with session.client("cognito-sync") as client:
    client: CognitoSyncClient

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_cognito_sync.literals import BulkPublishStatusType

def get_value() -> BulkPublishStatusType:
    return "FAILED"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_cognito_sync.type_defs import BulkPublishRequestRequestTypeDef

def get_value() -> BulkPublishRequestRequestTypeDef:
    return {
        "IdentityPoolId": ...,
    }