Skip to content

Waiters#

Index > EC2 > Waiters

Auto-generated documentation for EC2 type annotations stubs module mypy-boto3-ec2.

BundleTaskCompleteWaiter#

Type annotations and code completion for boto3.client("ec2").get_waiter("bundle_task_complete"). boto3 documentation

# BundleTaskCompleteWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import BundleTaskCompleteWaiter


session = Session()

client = session.client("ec2")  # (1)
waiter: BundleTaskCompleteWaiter = client.get_waiter("bundle_task_complete")  # (2)
await waiter.wait()
  1. client: EC2Client
  2. waiter: BundleTaskCompleteWaiter

wait#

Type annotations and code completion for BundleTaskCompleteWaiter.wait method.

# wait method definition

def wait(
    self,
    *,
    BundleIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (2)
) -> None:
    ...
  1. See FilterTypeDef
  2. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeBundleTasksRequestBundleTaskCompleteWaitTypeDef = {  # (1)
    "BundleIds": ...,
}

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

ConversionTaskCancelledWaiter#

Type annotations and code completion for boto3.client("ec2").get_waiter("conversion_task_cancelled"). boto3 documentation

# ConversionTaskCancelledWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import ConversionTaskCancelledWaiter


session = Session()

client = session.client("ec2")  # (1)
waiter: ConversionTaskCancelledWaiter = client.get_waiter("conversion_task_cancelled")  # (2)
await waiter.wait()
  1. client: EC2Client
  2. waiter: ConversionTaskCancelledWaiter

wait#

Type annotations and code completion for ConversionTaskCancelledWaiter.wait method.

# wait method definition

def wait(
    self,
    *,
    ConversionTaskIds: Sequence[str] = ...,
    DryRun: bool = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...
  1. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeConversionTasksRequestConversionTaskCancelledWaitTypeDef = {  # (1)
    "ConversionTaskIds": ...,
}

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

ConversionTaskCompletedWaiter#

Type annotations and code completion for boto3.client("ec2").get_waiter("conversion_task_completed"). boto3 documentation

# ConversionTaskCompletedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import ConversionTaskCompletedWaiter


session = Session()

client = session.client("ec2")  # (1)
waiter: ConversionTaskCompletedWaiter = client.get_waiter("conversion_task_completed")  # (2)
await waiter.wait()
  1. client: EC2Client
  2. waiter: ConversionTaskCompletedWaiter

wait#

Type annotations and code completion for ConversionTaskCompletedWaiter.wait method.

# wait method definition

def wait(
    self,
    *,
    ConversionTaskIds: Sequence[str] = ...,
    DryRun: bool = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...
  1. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeConversionTasksRequestConversionTaskCompletedWaitTypeDef = {  # (1)
    "ConversionTaskIds": ...,
}

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

ConversionTaskDeletedWaiter#

Type annotations and code completion for boto3.client("ec2").get_waiter("conversion_task_deleted"). boto3 documentation

# ConversionTaskDeletedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import ConversionTaskDeletedWaiter


session = Session()

client = session.client("ec2")  # (1)
waiter: ConversionTaskDeletedWaiter = client.get_waiter("conversion_task_deleted")  # (2)
await waiter.wait()
  1. client: EC2Client
  2. waiter: ConversionTaskDeletedWaiter

wait#

Type annotations and code completion for ConversionTaskDeletedWaiter.wait method.

# wait method definition

def wait(
    self,
    *,
    ConversionTaskIds: Sequence[str] = ...,
    DryRun: bool = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (1)
) -> None:
    ...
  1. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeConversionTasksRequestConversionTaskDeletedWaitTypeDef = {  # (1)
    "ConversionTaskIds": ...,
}

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

CustomerGatewayAvailableWaiter#

Type annotations and code completion for boto3.client("ec2").get_waiter("customer_gateway_available"). boto3 documentation

# CustomerGatewayAvailableWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import CustomerGatewayAvailableWaiter


session = Session()

client = session.client("ec2")  # (1)
waiter: CustomerGatewayAvailableWaiter = client.get_waiter("customer_gateway_available")  # (2)
await waiter.wait()
  1. client: EC2Client
  2. waiter: CustomerGatewayAvailableWaiter

wait#

Type annotations and code completion for CustomerGatewayAvailableWaiter.wait method.

# wait method definition

def wait(
    self,
    *,
    CustomerGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (2)
) -> None:
    ...
  1. See FilterTypeDef
  2. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeCustomerGatewaysRequestCustomerGatewayAvailableWaitTypeDef = {  # (1)
    "CustomerGatewayIds": ...,
}

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

ExportTaskCancelledWaiter#

Type annotations and code completion for boto3.client("ec2").get_waiter("export_task_cancelled"). boto3 documentation

# ExportTaskCancelledWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import ExportTaskCancelledWaiter


session = Session()

client = session.client("ec2")  # (1)
waiter: ExportTaskCancelledWaiter = client.get_waiter("export_task_cancelled")  # (2)
await waiter.wait()
  1. client: EC2Client
  2. waiter: ExportTaskCancelledWaiter

wait#

Type annotations and code completion for ExportTaskCancelledWaiter.wait method.

# wait method definition

def wait(
    self,
    *,
    ExportTaskIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    WaiterConfig: WaiterConfigTypeDef = ...,  # (2)
) -> None:
    ...
  1. See FilterTypeDef
  2. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeExportTasksRequestExportTaskCancelledWaitTypeDef = {  # (1)
    "ExportTaskIds": ...,
}

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

ExportTaskCompletedWaiter#

Type annotations and code completion for boto3.client("ec2").get_waiter("export_task_completed").