Skip to content

Waiters#

Index > PrometheusService > Waiters

Auto-generated documentation for PrometheusService type annotations stubs module mypy-boto3-amp.

ScraperActiveWaiter#

Type annotations and code completion for boto3.client("amp").get_waiter("scraper_active"). boto3 documentation

# ScraperActiveWaiter usage example

from boto3.session import Session

from mypy_boto3_amp.waiter import ScraperActiveWaiter


session = Session()

client = session.client("amp")  # (1)
waiter: ScraperActiveWaiter = client.get_waiter("scraper_active")  # (2)
await waiter.wait()
  1. client: PrometheusServiceClient
  2. waiter: ScraperActiveWaiter

wait#

Type annotations and code completion for ScraperActiveWaiter.wait method.

# wait method definition

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

kwargs: DescribeScraperRequestWaitTypeDef = {  # (1)
    "scraperId": ...,
}

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

ScraperDeletedWaiter#

Type annotations and code completion for boto3.client("amp").get_waiter("scraper_deleted"). boto3 documentation

# ScraperDeletedWaiter usage example

from boto3.session import Session

from mypy_boto3_amp.waiter import ScraperDeletedWaiter


session = Session()

client = session.client("amp")  # (1)
waiter: ScraperDeletedWaiter = client.get_waiter("scraper_deleted")  # (2)
await waiter.wait()
  1. client: PrometheusServiceClient
  2. waiter: ScraperDeletedWaiter

wait#

Type annotations and code completion for ScraperDeletedWaiter.wait method.

# wait method definition

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

kwargs: DescribeScraperRequestWaitTypeDef = {  # (1)
    "scraperId": ...,
}

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

WorkspaceActiveWaiter#

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

# WorkspaceActiveWaiter usage example

from boto3.session import Session

from mypy_boto3_amp.waiter import WorkspaceActiveWaiter


session = Session()

client = session.client("amp")  # (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

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

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

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

WorkspaceDeletedWaiter#

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

# WorkspaceDeletedWaiter usage example

from boto3.session import Session

from mypy_boto3_amp.waiter import WorkspaceDeletedWaiter


session = Session()

client = session.client("amp")  # (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

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

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

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