Skip to content

Waiters#

Index > ECS > Waiters

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

ServicesInactiveWaiter#

Type annotations and code completion for session.create_client("ecs").get_waiter("services_inactive"). boto3 documentation

# ServicesInactiveWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_ecs.waiter import ServicesInactiveWaiter

session = get_session()
async with session.create_client("ecs") as client:  # (1)
    waiter: ServicesInactiveWaiter = client.get_waiter("services_inactive")  # (2)
    await waiter.wait()
  1. client: ECSClient
  2. waiter: ServicesInactiveWaiter

wait#

Type annotations and code completion for ServicesInactiveWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    services: Sequence[str],
    cluster: str = ...,
    include: Sequence[ServiceFieldType] = ...,  # (1)
    WaiterConfig: WaiterConfigTypeDef = ...,  # (2)
) -> None:
    ...
  1. See ServiceFieldType
  2. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeServicesRequestServicesInactiveWaitTypeDef = {  # (1)
    "services": ...,
}

parent.wait(**kwargs)
  1. See DescribeServicesRequestServicesInactiveWaitTypeDef

ServicesStableWaiter#

Type annotations and code completion for session.create_client("ecs").get_waiter("services_stable"). boto3 documentation

# ServicesStableWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_ecs.waiter import ServicesStableWaiter

session = get_session()
async with session.create_client("ecs") as client:  # (1)
    waiter: ServicesStableWaiter = client.get_waiter("services_stable")  # (2)
    await waiter.wait()
  1. client: ECSClient
  2. waiter: ServicesStableWaiter

wait#

Type annotations and code completion for ServicesStableWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    services: Sequence[str],
    cluster: str = ...,
    include: Sequence[ServiceFieldType] = ...,  # (1)
    WaiterConfig: WaiterConfigTypeDef = ...,  # (2)
) -> None:
    ...
  1. See ServiceFieldType
  2. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeServicesRequestServicesStableWaitTypeDef = {  # (1)
    "services": ...,
}

parent.wait(**kwargs)
  1. See DescribeServicesRequestServicesStableWaitTypeDef

TasksRunningWaiter#

Type annotations and code completion for session.create_client("ecs").get_waiter("tasks_running"). boto3 documentation

# TasksRunningWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_ecs.waiter import TasksRunningWaiter

session = get_session()
async with session.create_client("ecs") as client:  # (1)
    waiter: TasksRunningWaiter = client.get_waiter("tasks_running")  # (2)
    await waiter.wait()
  1. client: ECSClient
  2. waiter: TasksRunningWaiter

wait#

Type annotations and code completion for TasksRunningWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    tasks: Sequence[str],
    cluster: str = ...,
    include: Sequence[TaskFieldType] = ...,  # (1)
    WaiterConfig: WaiterConfigTypeDef = ...,  # (2)
) -> None:
    ...
  1. See TaskFieldType
  2. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeTasksRequestTasksRunningWaitTypeDef = {  # (1)
    "tasks": ...,
}

parent.wait(**kwargs)
  1. See DescribeTasksRequestTasksRunningWaitTypeDef

TasksStoppedWaiter#

Type annotations and code completion for session.create_client("ecs").get_waiter("tasks_stopped"). boto3 documentation

# TasksStoppedWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_ecs.waiter import TasksStoppedWaiter

session = get_session()
async with session.create_client("ecs") as client:  # (1)
    waiter: TasksStoppedWaiter = client.get_waiter("tasks_stopped")  # (2)
    await waiter.wait()
  1. client: ECSClient
  2. waiter: TasksStoppedWaiter

wait#

Type annotations and code completion for TasksStoppedWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    tasks: Sequence[str],
    cluster: str = ...,
    include: Sequence[TaskFieldType] = ...,  # (1)
    WaiterConfig: WaiterConfigTypeDef = ...,  # (2)
) -> None:
    ...
  1. See TaskFieldType
  2. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeTasksRequestTasksStoppedWaitTypeDef = {  # (1)
    "tasks": ...,
}

parent.wait(**kwargs)
  1. See DescribeTasksRequestTasksStoppedWaitTypeDef