Skip to content

Waiters#

Index > ECS > Waiters

Auto-generated documentation for ECS type annotations stubs module mypy-boto3-ecs.

ServicesInactiveWaiter#

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

# ServicesInactiveWaiter usage example

from boto3.session import Session

from mypy_boto3_ecs.waiter import ServicesInactiveWaiter


session = Session()

client = session.client("ecs")  # (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

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 boto3.client("ecs").get_waiter("services_stable"). boto3 documentation

# ServicesStableWaiter usage example

from boto3.session import Session

from mypy_boto3_ecs.waiter import ServicesStableWaiter


session = Session()

client = session.client("ecs")  # (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

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 boto3.client("ecs").get_waiter("tasks_running"). boto3 documentation

# TasksRunningWaiter usage example

from boto3.session import Session

from mypy_boto3_ecs.waiter import TasksRunningWaiter


session = Session()

client = session.client("ecs")  # (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

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 boto3.client("ecs").get_waiter("tasks_stopped"). boto3 documentation

# TasksStoppedWaiter usage example

from boto3.session import Session

from mypy_boto3_ecs.waiter import TasksStoppedWaiter


session = Session()

client = session.client("ecs")  # (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

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