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-aiobotocore for ECS service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[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-aiobotocore-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.create_client("ecs") as ECSClient boto3 documentation

# ECSClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_ecs.client import ECSClient


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

Paginators#

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

# ListAccountSettingsPaginator 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.create_client("ecs").get_waiter("...").

# ServicesInactiveWaiter 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.

# AgentUpdateStatusType usage example

from types_aiobotocore_ecs.literals import AgentUpdateStatusType

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

Type definitions#

Type annotations for type definitions used in methods and schema.