Skip to content

Waiters#

Index > OpsWorksCM > Waiters

Auto-generated documentation for OpsWorksCM type annotations stubs module types-aiobotocore-opsworkscm.

NodeAssociatedWaiter#

Type annotations and code completion for session.create_client("opsworkscm").get_waiter("node_associated"). boto3 documentation

# NodeAssociatedWaiter usage example

from aiobotocore.session import Session

from types_aiobotocore_opsworkscm.waiter import NodeAssociatedWaiter

session = get_session()
async with session.create_client("opsworkscm") as client:  # (1)
    waiter: NodeAssociatedWaiter = client.get_waiter("node_associated")  # (2)
    await waiter.wait()
  1. client: OpsWorksCMClient
  2. waiter: NodeAssociatedWaiter

wait#

Type annotations and code completion for NodeAssociatedWaiter.wait method.

# wait method definition

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

kwargs: DescribeNodeAssociationStatusRequestNodeAssociatedWaitTypeDef = {  # (1)
    "NodeAssociationStatusToken": ...,
    "ServerName": ...,
}

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