Skip to content

Waiters#

Index > EMR > Waiters

Auto-generated documentation for EMR type annotations stubs module types-aiobotocore-emr.

ClusterRunningWaiter#

Type annotations and code completion for session.create_client("emr").get_waiter("cluster_running"). boto3 documentation

# ClusterRunningWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_emr.waiter import ClusterRunningWaiter

session = get_session()
async with session.create_client("emr") as client:  # (1)
    waiter: ClusterRunningWaiter = client.get_waiter("cluster_running")  # (2)
    await waiter.wait()
  1. client: EMRClient
  2. waiter: ClusterRunningWaiter

wait#

Type annotations and code completion for ClusterRunningWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    ClusterId: str,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...
  1. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeClusterInputClusterRunningWaitTypeDef = {  # (1)
    "ClusterId": ...,
}

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

ClusterTerminatedWaiter#

Type annotations and code completion for session.create_client("emr").get_waiter("cluster_terminated"). boto3 documentation

# ClusterTerminatedWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_emr.waiter import ClusterTerminatedWaiter

session = get_session()
async with session.create_client("emr") as client:  # (1)
    waiter: ClusterTerminatedWaiter = client.get_waiter("cluster_terminated")  # (2)
    await waiter.wait()
  1. client: EMRClient
  2. waiter: ClusterTerminatedWaiter

wait#

Type annotations and code completion for ClusterTerminatedWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    ClusterId: str,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...
  1. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeClusterInputClusterTerminatedWaitTypeDef = {  # (1)
    "ClusterId": ...,
}

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

StepCompleteWaiter#

Type annotations and code completion for session.create_client("emr").get_waiter("step_complete"). boto3 documentation

# StepCompleteWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_emr.waiter import StepCompleteWaiter

session = get_session()
async with session.create_client("emr") as client:  # (1)
    waiter: StepCompleteWaiter = client.get_waiter("step_complete")  # (2)
    await waiter.wait()
  1. client: EMRClient
  2. waiter: StepCompleteWaiter

wait#

Type annotations and code completion for StepCompleteWaiter.wait method.

# wait method definition

await def wait(
    self,
    *,
    ClusterId: str,
    StepId: str,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...
  1. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeStepInputStepCompleteWaitTypeDef = {  # (1)
    "ClusterId": ...,
    "StepId": ...,
}

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