Skip to content

Waiters#

Index > DynamoDB > Waiters

Auto-generated documentation for DynamoDB type annotations stubs module mypy-boto3-dynamodb.

TableExistsWaiter#

Type annotations and code completion for boto3.client("dynamodb").get_waiter("table_exists"). boto3 documentation

# TableExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_dynamodb.waiter import TableExistsWaiter


session = Session()

client = session.client("dynamodb")  # (1)
waiter: TableExistsWaiter = client.get_waiter("table_exists")  # (2)
await waiter.wait()
  1. client: DynamoDBClient
  2. waiter: TableExistsWaiter

wait#

Type annotations and code completion for TableExistsWaiter.wait method.

# wait method definition

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

kwargs: DescribeTableInputWaitTypeDef = {  # (1)
    "TableName": ...,
}

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

TableNotExistsWaiter#

Type annotations and code completion for boto3.client("dynamodb").get_waiter("table_not_exists"). boto3 documentation

# TableNotExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_dynamodb.waiter import TableNotExistsWaiter


session = Session()

client = session.client("dynamodb")  # (1)
waiter: TableNotExistsWaiter = client.get_waiter("table_not_exists")  # (2)
await waiter.wait()
  1. client: DynamoDBClient
  2. waiter: TableNotExistsWaiter

wait#

Type annotations and code completion for TableNotExistsWaiter.wait method.

# wait method definition

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

kwargs: DescribeTableInputWaitTypeDef = {  # (1)
    "TableName": ...,
}

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