Skip to content

Waiters#

Index > ElasticLoadBalancing > Waiters

Auto-generated documentation for ElasticLoadBalancing type annotations stubs module mypy-boto3-elb.

AnyInstanceInServiceWaiter#

Type annotations and code completion for boto3.client("elb").get_waiter("any_instance_in_service"). boto3 documentation

# AnyInstanceInServiceWaiter usage example

from boto3.session import Session

from mypy_boto3_elb.waiter import AnyInstanceInServiceWaiter


session = Session()

client = session.client("elb")  # (1)
waiter: AnyInstanceInServiceWaiter = client.get_waiter("any_instance_in_service")  # (2)
await waiter.wait()
  1. client: ElasticLoadBalancingClient
  2. waiter: AnyInstanceInServiceWaiter

wait#

Type annotations and code completion for AnyInstanceInServiceWaiter.wait method.

# wait method definition

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

kwargs: DescribeEndPointStateInputWaitTypeDef = {  # (1)
    "LoadBalancerName": ...,
}

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

InstanceDeregisteredWaiter#

Type annotations and code completion for boto3.client("elb").get_waiter("instance_deregistered"). boto3 documentation

# InstanceDeregisteredWaiter usage example

from boto3.session import Session

from mypy_boto3_elb.waiter import InstanceDeregisteredWaiter


session = Session()

client = session.client("elb")  # (1)
waiter: InstanceDeregisteredWaiter = client.get_waiter("instance_deregistered")  # (2)
await waiter.wait()
  1. client: ElasticLoadBalancingClient
  2. waiter: InstanceDeregisteredWaiter

wait#

Type annotations and code completion for InstanceDeregisteredWaiter.wait method.

# wait method definition

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

kwargs: DescribeEndPointStateInputWaitTypeDef = {  # (1)
    "LoadBalancerName": ...,
}

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

InstanceInServiceWaiter#

Type annotations and code completion for boto3.client("elb").get_waiter("instance_in_service"). boto3 documentation

# InstanceInServiceWaiter usage example

from boto3.session import Session

from mypy_boto3_elb.waiter import InstanceInServiceWaiter


session = Session()

client = session.client("elb")  # (1)
waiter: InstanceInServiceWaiter = client.get_waiter("instance_in_service")  # (2)
await waiter.wait()
  1. client: ElasticLoadBalancingClient
  2. waiter: InstanceInServiceWaiter

wait#

Type annotations and code completion for InstanceInServiceWaiter.wait method.

# wait method definition

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

kwargs: DescribeEndPointStateInputWaitTypeDef = {  # (1)
    "LoadBalancerName": ...,
}

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