Type annotations for aiobotocore.CognitoSync 2.1.0 service generated by mypy-boto3-builder 6.4.2
Project description
mypy-boto3-cognito-sync
Type annotations for boto3.CognitoSync 1.20.47 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-builder 6.4.2.
More information can be found on boto3-stubs page and in types-aiobotocore-cognito-sync docs
See how it helps to find and fix potential bugs:
How to install
VSCode extension
Add
AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and CognitoSync
.
From PyPI with pip
Install types-aiobotocore
for CognitoSync
service.
# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[cognito-sync]'
# Lite version does not provide session.create_client overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[cognito-sync]'
# standalone installation
python -m pip install types-aiobotocore-cognito-sync
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylance
as your Python Language Server - Install
types-aiobotocore[cognito-sync]
in your environment:python -m pip install 'types-aiobotocore[cognito-sync]'
Both type checking and auto-complete should work for CognitoSync
service. No
explicit type annotations required, write your boto3
code as usual.
PyCharm
- Install
types-aiobotocore[cognito-sync]
in your environment:python -m pip install 'types-aiobotocore[cognito-sync]'
Both type checking and auto-complete should work for CognitoSync
service. No
explicit type annotations required, write your aiobotocore
code as usual.
Auto-complete can be slow on big projects or if you have a lot of installed
types-aiobotocore
submodules.
Other IDEs
Not tested, but as long as your IDE supports mypy
or pyright
, everything
should work.
mypy
- Install
mypy
:python -m pip install mypy
- Install
types-aiobotocore[cognito-sync]
in your environment:python -m pip install 'types-aiobotocore[cognito-sync]'
- Run
mypy
as usual
Type checking should work for CognitoSync
service. No explicit type
annotations required, write your aiobotocore
code as usual.
pyright
- Install
pyright
:yarn global add pyright
- Install
types-aiobotocore[cognito-sync]
in your environment:python -m pip install 'types-aiobotocore[cognito-sync]'
- Optionally, you can install
boto3-stubs
totypings
folder.
Type checking should work for CognitoSync
service. No explicit type
annotations required, write your aiobotocore
code as usual.
Explicit type annotations
Client annotations
CognitoSyncClient
provides annotations for
session.create_client("cognito-sync")
.
from aiobotocore.session import get_session
from types_aiobotocore_cognito_sync import CognitoSyncClient
session = get_session()
async with session.create_client("cognito-sync") as client:
client: CognitoSyncClient
# now client usage is checked by mypy and IDE should provide code auto-complete
Literals
types_aiobotocore_cognito_sync.literals
module contains literals extracted
from shapes that can be used in user code for type checking.
from types_aiobotocore_cognito_sync.literals import (
BulkPublishStatusType,
OperationType,
PlatformType,
StreamingStatusType,
ServiceName,
)
def check_value(value: BulkPublishStatusType) -> bool:
...
Typed dictionaries
types_aiobotocore_cognito_sync.type_defs
module contains structures and
shapes assembled to typed dictionaries for additional type checking.
from types_aiobotocore_cognito_sync.type_defs import (
BulkPublishRequestRequestTypeDef,
BulkPublishResponseTypeDef,
CognitoStreamsTypeDef,
DatasetTypeDef,
DeleteDatasetRequestRequestTypeDef,
DeleteDatasetResponseTypeDef,
DescribeDatasetRequestRequestTypeDef,
DescribeDatasetResponseTypeDef,
DescribeIdentityPoolUsageRequestRequestTypeDef,
DescribeIdentityPoolUsageResponseTypeDef,
DescribeIdentityUsageRequestRequestTypeDef,
DescribeIdentityUsageResponseTypeDef,
GetBulkPublishDetailsRequestRequestTypeDef,
GetBulkPublishDetailsResponseTypeDef,
GetCognitoEventsRequestRequestTypeDef,
GetCognitoEventsResponseTypeDef,
GetIdentityPoolConfigurationRequestRequestTypeDef,
GetIdentityPoolConfigurationResponseTypeDef,
IdentityPoolUsageTypeDef,
IdentityUsageTypeDef,
ListDatasetsRequestRequestTypeDef,
ListDatasetsResponseTypeDef,
ListIdentityPoolUsageRequestRequestTypeDef,
ListIdentityPoolUsageResponseTypeDef,
ListRecordsRequestRequestTypeDef,
ListRecordsResponseTypeDef,
PushSyncTypeDef,
RecordPatchTypeDef,
RecordTypeDef,
RegisterDeviceRequestRequestTypeDef,
RegisterDeviceResponseTypeDef,
ResponseMetadataTypeDef,
SetCognitoEventsRequestRequestTypeDef,
SetIdentityPoolConfigurationRequestRequestTypeDef,
SetIdentityPoolConfigurationResponseTypeDef,
SubscribeToDatasetRequestRequestTypeDef,
UnsubscribeFromDatasetRequestRequestTypeDef,
UpdateRecordsRequestRequestTypeDef,
UpdateRecordsResponseTypeDef,
)
def get_structure() -> BulkPublishRequestRequestTypeDef:
return {
...
}
Versioning
types-aiobotocore-cognito-sync
version is the same as related boto3
version
and follows PEP 440 format.
Documentation
All type annotations can be found in types-aiobotocore-cognito-sync docs
Support and contributing
This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for types-aiobotocore-cognito-sync-2.1.0.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d5d20248d4380b8189b5b611a04c049307fb22a4cefd22630d2508f4566dda3 |
|
MD5 | ec105a4161b0e25c4c3eefbb8393d73b |
|
BLAKE2b-256 | e5c14de5b48c930ba47b562e812ad0258b38cb84e45af522f10d91f852c860f7 |
Hashes for types_aiobotocore_cognito_sync-2.1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b235b8ca1e45043a3df98a69a5eae7539ae452e6949c1b989c8956d0f6e6ba0 |
|
MD5 | 82a41f87c25a381b0b317957c7fb45be |
|
BLAKE2b-256 | ef62df3491849b8616809f1029e53d427e09ab0e577ba37e62ed0cd4db0230c1 |