Skip to content

Waiters#

Index > PrometheusService > Waiters

Auto-generated documentation for PrometheusService type annotations stubs module types-aiobotocore-amp.

WorkspaceActiveWaiter#

Type annotations and code completion for session.create_client("amp").get_waiter("workspace_active"). boto3 documentation

# WorkspaceActiveWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_amp.waiter import WorkspaceActiveWaiter

session = get_session()
async with session.create_client("amp") as client:  # (1)
    waiter: WorkspaceActiveWaiter = client.get_waiter("workspace_active")  # (2)
    await waiter.wait()
  1. client: PrometheusServiceClient
  2. waiter: WorkspaceActiveWaiter

wait#

Type annotations and code completion for WorkspaceActiveWaiter.wait method.

# wait method definition

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

kwargs: DescribeWorkspaceRequestWorkspaceActiveWaitTypeDef = {  # (1)
    "workspaceId": ...,
}

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

WorkspaceDeletedWaiter#

Type annotations and code completion for session.create_client("amp").get_waiter("workspace_deleted"). boto3 documentation

# WorkspaceDeletedWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_amp.waiter import WorkspaceDeletedWaiter

session = get_session()
async with session.create_client("amp") as client:  # (1)
    waiter: WorkspaceDeletedWaiter = client.get_waiter("workspace_deleted")  # (2)
    await waiter.wait()
  1. client: PrometheusServiceClient
  2. waiter: WorkspaceDeletedWaiter

wait#

Type annotations and code completion for WorkspaceDeletedWaiter.wait method.

# wait method definition

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

kwargs: DescribeWorkspaceRequestWorkspaceDeletedWaitTypeDef = {  # (1)
    "workspaceId": ...,
}

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