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"). boto3 documentation

# ExportTaskCompletedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import ExportTaskCompletedWaiter


session = Session()

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

wait#

Type annotations and code completion for ExportTaskCompletedWaiter.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: DescribeExportTasksRequestExportTaskCompletedWaitTypeDef = {  # (1)
    "ExportTaskIds": ...,
}

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

ImageAvailableWaiter#

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

# ImageAvailableWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import ImageAvailableWaiter


session = Session()

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

wait#

Type annotations and code completion for ImageAvailableWaiter.wait method.

# wait method definition

def wait(
    self,
    *,
    ExecutableUsers: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ImageIds: Sequence[str] = ...,
    Owners: Sequence[str] = ...,
    IncludeDeprecated: bool = ...,
    IncludeDisabled: bool = ...,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (2)
) -> None:
    ...
  1. See FilterTypeDef
  2. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeImagesRequestImageAvailableWaitTypeDef = {  # (1)
    "ExecutableUsers": ...,
}

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

ImageExistsWaiter#

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

# ImageExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import ImageExistsWaiter


session = Session()

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

wait#

Type annotations and code completion for ImageExistsWaiter.wait method.

# wait method definition

def wait(
    self,
    *,
    ExecutableUsers: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ImageIds: Sequence[str] = ...,
    Owners: Sequence[str] = ...,
    IncludeDeprecated: bool = ...,
    IncludeDisabled: bool = ...,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (2)
) -> None:
    ...
  1. See FilterTypeDef
  2. See WaiterConfigTypeDef
# wait method usage example with argument unpacking

kwargs: DescribeImagesRequestImageExistsWaitTypeDef = {  # (1)
    "ExecutableUsers": ...,
}

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

InstanceExistsWaiter#

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

# InstanceExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import InstanceExistsWaiter


session = Session()

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

wait#

Type annotations and code completion for InstanceExistsWaiter.wait method.

# wait method definition

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

kwargs: DescribeInstancesRequestInstanceExistsWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

InstanceRunningWaiter#

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

# InstanceRunningWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import InstanceRunningWaiter


session = Session()

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

wait#

Type annotations and code completion for InstanceRunningWaiter.wait method.

# wait method definition

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

kwargs: DescribeInstancesRequestInstanceRunningWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

InstanceStatusOkWaiter#

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

# InstanceStatusOkWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import InstanceStatusOkWaiter


session = Session()

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

wait#

Type annotations and code completion for InstanceStatusOkWaiter.wait method.

# wait method definition

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

kwargs: DescribeInstanceStatusRequestInstanceStatusOkWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

InstanceStoppedWaiter#

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

# InstanceStoppedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import InstanceStoppedWaiter


session = Session()

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

wait#

Type annotations and code completion for InstanceStoppedWaiter.wait method.

# wait method definition

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

kwargs: DescribeInstancesRequestInstanceStoppedWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

InstanceTerminatedWaiter#

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

# InstanceTerminatedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import InstanceTerminatedWaiter


session = Session()

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

wait#

Type annotations and code completion for InstanceTerminatedWaiter.wait method.

# wait method definition

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

kwargs: DescribeInstancesRequestInstanceTerminatedWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

InternetGatewayExistsWaiter#

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

# InternetGatewayExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import InternetGatewayExistsWaiter


session = Session()

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

wait#

Type annotations and code completion for InternetGatewayExistsWaiter.wait method.

# wait method definition

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

kwargs: DescribeInternetGatewaysRequestInternetGatewayExistsWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

KeyPairExistsWaiter#

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

# KeyPairExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import KeyPairExistsWaiter


session = Session()

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

wait#

Type annotations and code completion for KeyPairExistsWaiter.wait method.

# wait method definition

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

kwargs: DescribeKeyPairsRequestKeyPairExistsWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

NatGatewayAvailableWaiter#

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

# NatGatewayAvailableWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import NatGatewayAvailableWaiter


session = Session()

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

wait#

Type annotations and code completion for NatGatewayAvailableWaiter.wait method.

# wait method definition

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

kwargs: DescribeNatGatewaysRequestNatGatewayAvailableWaitTypeDef = {  # (1)
    "DryRun": ...,
}

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

NatGatewayDeletedWaiter#

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

# NatGatewayDeletedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import NatGatewayDeletedWaiter


session = Session()

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

wait#

Type annotations and code completion for NatGatewayDeletedWaiter.wait method.

# wait method definition

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

kwargs: DescribeNatGatewaysRequestNatGatewayDeletedWaitTypeDef = {  # (1)
    "DryRun": ...,
}

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

NetworkInterfaceAvailableWaiter#

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

# NetworkInterfaceAvailableWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import NetworkInterfaceAvailableWaiter


session = Session()

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

wait#

Type annotations and code completion for NetworkInterfaceAvailableWaiter.wait method.

# wait method definition

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

kwargs: DescribeNetworkInterfacesRequestNetworkInterfaceAvailableWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

PasswordDataAvailableWaiter#

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

# PasswordDataAvailableWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import PasswordDataAvailableWaiter


session = Session()

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

wait#

Type annotations and code completion for PasswordDataAvailableWaiter.wait method.

# wait method definition

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

kwargs: GetPasswordDataRequestPasswordDataAvailableWaitTypeDef = {  # (1)
    "InstanceId": ...,
}

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

SecurityGroupExistsWaiter#

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

# SecurityGroupExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import SecurityGroupExistsWaiter


session = Session()

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

wait#

Type annotations and code completion for SecurityGroupExistsWaiter.wait method.

# wait method definition

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

kwargs: DescribeSecurityGroupsRequestSecurityGroupExistsWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

SnapshotCompletedWaiter#

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

# SnapshotCompletedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import SnapshotCompletedWaiter


session = Session()

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

wait#

Type annotations and code completion for SnapshotCompletedWaiter.wait method.

# wait method definition

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

kwargs: DescribeSnapshotsRequestSnapshotCompletedWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

SnapshotImportedWaiter#

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

# SnapshotImportedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import SnapshotImportedWaiter


session = Session()

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

wait#

Type annotations and code completion for SnapshotImportedWaiter.wait method.

# wait method definition

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

kwargs: DescribeImportSnapshotTasksRequestSnapshotImportedWaitTypeDef = {  # (1)
    "DryRun": ...,
}

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

SpotInstanceRequestFulfilledWaiter#

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

# SpotInstanceRequestFulfilledWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import SpotInstanceRequestFulfilledWaiter


session = Session()

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

wait#

Type annotations and code completion for SpotInstanceRequestFulfilledWaiter.wait method.

# wait method definition

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

kwargs: DescribeSpotInstanceRequestsRequestSpotInstanceRequestFulfilledWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

StoreImageTaskCompleteWaiter#

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

# StoreImageTaskCompleteWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import StoreImageTaskCompleteWaiter


session = Session()

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

wait#

Type annotations and code completion for StoreImageTaskCompleteWaiter.wait method.

# wait method definition

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

kwargs: DescribeStoreImageTasksRequestStoreImageTaskCompleteWaitTypeDef = {  # (1)
    "ImageIds": ...,
}

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

SubnetAvailableWaiter#

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

# SubnetAvailableWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import SubnetAvailableWaiter


session = Session()

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

wait#

Type annotations and code completion for SubnetAvailableWaiter.wait method.

# wait method definition

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

kwargs: DescribeSubnetsRequestSubnetAvailableWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

SystemStatusOkWaiter#

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

# SystemStatusOkWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import SystemStatusOkWaiter


session = Session()

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

wait#

Type annotations and code completion for SystemStatusOkWaiter.wait method.

# wait method definition

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

kwargs: DescribeInstanceStatusRequestSystemStatusOkWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

VolumeAvailableWaiter#

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

# VolumeAvailableWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import VolumeAvailableWaiter


session = Session()

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

wait#

Type annotations and code completion for VolumeAvailableWaiter.wait method.

# wait method definition

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

kwargs: DescribeVolumesRequestVolumeAvailableWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

VolumeDeletedWaiter#

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

# VolumeDeletedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import VolumeDeletedWaiter


session = Session()

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

wait#

Type annotations and code completion for VolumeDeletedWaiter.wait method.

# wait method definition

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

kwargs: DescribeVolumesRequestVolumeDeletedWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

VolumeInUseWaiter#

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

# VolumeInUseWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import VolumeInUseWaiter


session = Session()

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

wait#

Type annotations and code completion for VolumeInUseWaiter.wait method.

# wait method definition

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

kwargs: DescribeVolumesRequestVolumeInUseWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

VpcAvailableWaiter#

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

# VpcAvailableWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import VpcAvailableWaiter


session = Session()

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

wait#

Type annotations and code completion for VpcAvailableWaiter.wait method.

# wait method definition

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

kwargs: DescribeVpcsRequestVpcAvailableWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

VpcExistsWaiter#

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

# VpcExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import VpcExistsWaiter


session = Session()

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

wait#

Type annotations and code completion for VpcExistsWaiter.wait method.

# wait method definition

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

kwargs: DescribeVpcsRequestVpcExistsWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

VpcPeeringConnectionDeletedWaiter#

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

# VpcPeeringConnectionDeletedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import VpcPeeringConnectionDeletedWaiter


session = Session()

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

wait#

Type annotations and code completion for VpcPeeringConnectionDeletedWaiter.wait method.

# wait method definition

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

kwargs: DescribeVpcPeeringConnectionsRequestVpcPeeringConnectionDeletedWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

VpcPeeringConnectionExistsWaiter#

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

# VpcPeeringConnectionExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import VpcPeeringConnectionExistsWaiter


session = Session()

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

wait#

Type annotations and code completion for VpcPeeringConnectionExistsWaiter.wait method.

# wait method definition

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

kwargs: DescribeVpcPeeringConnectionsRequestVpcPeeringConnectionExistsWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

VpnConnectionAvailableWaiter#

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

# VpnConnectionAvailableWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import VpnConnectionAvailableWaiter


session = Session()

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

wait#

Type annotations and code completion for VpnConnectionAvailableWaiter.wait method.

# wait method definition

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

kwargs: DescribeVpnConnectionsRequestVpnConnectionAvailableWaitTypeDef = {  # (1)
    "Filters": ...,
}

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

VpnConnectionDeletedWaiter#

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

# VpnConnectionDeletedWaiter usage example

from boto3.session import Session

from mypy_boto3_ec2.waiter import VpnConnectionDeletedWaiter


session = Session()

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

wait#

Type annotations and code completion for VpnConnectionDeletedWaiter.wait method.

# wait method definition

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

kwargs: DescribeVpnConnectionsRequestVpnConnectionDeletedWaitTypeDef = {  # (1)
    "Filters": ...,
}

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