Skip to content

Waiters

Index > CloudWatch > Waiters

Auto-generated documentation for CloudWatch type annotations stubs module mypy-boto3-cloudwatch.

AlarmExistsWaiter

Type annotations and code completion for boto3.client("cloudwatch").get_waiter("alarm_exists"). boto3 documentation

Usage example
from boto3.session import Session

from mypy_boto3_cloudwatch.waiter import AlarmExistsWaiter


session = Session()

client = session.client("cloudwatch")  # (1)
waiter: AlarmExistsWaiter = client.get_waiter("alarm_exists")  # (2)
await waiter.wait()
  1. client: CloudWatchClient
  2. waiter: AlarmExistsWaiter

wait

Type annotations and code completion for AlarmExistsWaiter.wait method.

Method definition
def wait(
    self,
    *,
    AlarmNames: Sequence[str] = ...,
    AlarmNamePrefix: str = ...,
    AlarmTypes: Sequence[AlarmTypeType] = ...,  # (1)
    ChildrenOfAlarmName: str = ...,
    ParentsOfAlarmName: str = ...,
    StateValue: StateValueType = ...,  # (2)
    ActionPrefix: str = ...,
    MaxRecords: int = ...,
    NextToken: str = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (3)
) -> None:
    ...
  1. See AlarmTypeType
  2. See StateValueType
  3. See WaiterConfigTypeDef
Usage example with kwargs
kwargs: DescribeAlarmsInputAlarmExistsWaitTypeDef = {  # (1)
    "AlarmNames": ...,
}

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

CompositeAlarmExistsWaiter

Type annotations and code completion for boto3.client("cloudwatch").get_waiter("composite_alarm_exists"). boto3 documentation

Usage example
from boto3.session import Session

from mypy_boto3_cloudwatch.waiter import CompositeAlarmExistsWaiter


session = Session()

client = session.client("cloudwatch")  # (1)
waiter: CompositeAlarmExistsWaiter = client.get_waiter("composite_alarm_exists")  # (2)
await waiter.wait()
  1. client: CloudWatchClient
  2. waiter: CompositeAlarmExistsWaiter

wait

Type annotations and code completion for CompositeAlarmExistsWaiter.wait method.

Method definition
def wait(
    self,
    *,
    AlarmNames: Sequence[str] = ...,
    AlarmNamePrefix: str = ...,
    AlarmTypes: Sequence[AlarmTypeType] = ...,  # (1)
    ChildrenOfAlarmName: str = ...,
    ParentsOfAlarmName: str = ...,
    StateValue: StateValueType = ...,  # (2)
    ActionPrefix: str = ...,
    MaxRecords: int = ...,
    NextToken: str = ...,
    WaiterConfig: WaiterConfigTypeDef = ...,  # (3)
) -> None:
    ...
  1. See AlarmTypeType
  2. See StateValueType
  3. See WaiterConfigTypeDef
Usage example with kwargs
kwargs: DescribeAlarmsInputCompositeAlarmExistsWaitTypeDef = {  # (1)
    "AlarmNames": ...,
}

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