Skip to content

Waiters#

Index > EMR > Waiters

Auto-generated documentation for EMR type annotations stubs module mypy-boto3-emr.

ClusterRunningWaiter#

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

# ClusterRunningWaiter usage example

from boto3.session import Session

from mypy_boto3_emr.waiter import ClusterRunningWaiter


session = Session()

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

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

# ClusterTerminatedWaiter usage example

from boto3.session import Session

from mypy_boto3_emr.waiter import ClusterTerminatedWaiter


session = Session()

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

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

# StepCompleteWaiter usage example

from boto3.session import Session

from mypy_boto3_emr.waiter import StepCompleteWaiter


session = Session()

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

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