Skip to content

Waiters#

Index > Glacier > Waiters

Auto-generated documentation for Glacier type annotations stubs module mypy-boto3-glacier.

VaultExistsWaiter#

Type annotations and code completion for boto3.client("glacier").get_waiter("vault_exists"). boto3 documentation

# VaultExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_glacier.waiter import VaultExistsWaiter


session = Session()

client = session.client("glacier")  # (1)
waiter: VaultExistsWaiter = client.get_waiter("vault_exists")  # (2)
await waiter.wait()
  1. client: GlacierClient
  2. waiter: VaultExistsWaiter

wait#

Type annotations and code completion for VaultExistsWaiter.wait method.

# wait method definition

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

kwargs: DescribeVaultInputVaultExistsWaitTypeDef = {  # (1)
    "accountId": ...,
    "vaultName": ...,
}

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

VaultNotExistsWaiter#

Type annotations and code completion for boto3.client("glacier").get_waiter("vault_not_exists"). boto3 documentation

# VaultNotExistsWaiter usage example

from boto3.session import Session

from mypy_boto3_glacier.waiter import VaultNotExistsWaiter


session = Session()

client = session.client("glacier")  # (1)
waiter: VaultNotExistsWaiter = client.get_waiter("vault_not_exists")  # (2)
await waiter.wait()
  1. client: GlacierClient
  2. waiter: VaultNotExistsWaiter

wait#

Type annotations and code completion for VaultNotExistsWaiter.wait method.

# wait method definition

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

kwargs: DescribeVaultInputVaultNotExistsWaitTypeDef = {  # (1)
    "accountId": ...,
    "vaultName": ...,
}

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