Skip to content

DataSync module

Index > DataSync

Auto-generated documentation for DataSync type annotations stubs module types-aiobotocore-datasync.

How to install

From PyPI with pip

Install types-aioboto3 for DataSync service.

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


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


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

How to uninstall

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

Usage

Code samples can be found in Examples.

DataSyncClient

Type annotations and code completion for session.client("datasync") as DataSyncClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_datasync.client import DataSyncClient


session = Session()
async with session.client("datasync") as client:
    client: DataSyncClient

Paginators

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

Usage example
from types_aiobotocore_datasync.paginator import ListAgentsPaginator

def get_list_agents_paginator() -> ListAgentsPaginator:
    return client.get_paginator("list_agents"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_datasync.literals import AgentStatusType

def get_value() -> AgentStatusType:
    return "OFFLINE"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_datasync.type_defs import AgentListEntryTypeDef

def get_value() -> AgentListEntryTypeDef:
    return {
        "AgentArn": ...,
    }