Skip to content

ECS module

Index > ECS

Auto-generated documentation for ECS type annotations stubs module types-aiobotocore-ecs.

How to install

From PyPI with pip

Install types-aioboto3 for ECS service.

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


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


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

How to uninstall

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

Usage

Code samples can be found in Examples.

ECSClient

Type annotations and code completion for session.client("ecs") as ECSClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_ecs.client import ECSClient


session = Session()
async with session.client("ecs") as client:
    client: ECSClient

Paginators

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

Usage example
from types_aiobotocore_ecs.paginator import ListAccountSettingsPaginator

def get_list_account_settings_paginator() -> ListAccountSettingsPaginator:
    return client.get_paginator("list_account_settings"))

Waiters

Type annotations and code completion for waiters from session.client("ecs").get_waiter("...").

Usage example
from types_aiobotocore_ecs.waiter import ServicesInactiveWaiter

def get_services_inactive_waiter() -> ServicesInactiveWaiter:
    return Session().client("ecs").get_waiter("services_inactive")

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_ecs.literals import AgentUpdateStatusType

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

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_ecs.type_defs import AttachmentStateChangeTypeDef

def get_value() -> AttachmentStateChangeTypeDef:
    return {
        "attachmentArn": ...,
        "status": ...,
    }