Skip to content

Waiters#

Index > CloudFront > Waiters

Auto-generated documentation for CloudFront type annotations stubs module mypy-boto3-cloudfront.

DistributionDeployedWaiter#

Type annotations and code completion for boto3.client("cloudfront").get_waiter("distribution_deployed"). boto3 documentation

# DistributionDeployedWaiter usage example

from boto3.session import Session

from mypy_boto3_cloudfront.waiter import DistributionDeployedWaiter


session = Session()

client = session.client("cloudfront")  # (1)
waiter: DistributionDeployedWaiter = client.get_waiter("distribution_deployed")  # (2)
await waiter.wait()
  1. client: CloudFrontClient
  2. waiter: DistributionDeployedWaiter

wait#

Type annotations and code completion for DistributionDeployedWaiter.wait method.

# wait method definition

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

kwargs: GetDistributionRequestDistributionDeployedWaitTypeDef = {  # (1)
    "Id": ...,
}

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

InvalidationCompletedWaiter#

Type annotations and code completion for boto3.client("cloudfront").get_waiter("invalidation_completed"). boto3 documentation

# InvalidationCompletedWaiter usage example

from boto3.session import Session

from mypy_boto3_cloudfront.waiter import InvalidationCompletedWaiter


session = Session()

client = session.client("cloudfront")  # (1)
waiter: InvalidationCompletedWaiter = client.get_waiter("invalidation_completed")  # (2)
await waiter.wait()
  1. client: CloudFrontClient
  2. waiter: InvalidationCompletedWaiter

wait#

Type annotations and code completion for InvalidationCompletedWaiter.wait method.

# wait method definition

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

kwargs: GetInvalidationRequestInvalidationCompletedWaitTypeDef = {  # (1)
    "DistributionId": ...,
    "Id": ...,
}

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

StreamingDistributionDeployedWaiter#

Type annotations and code completion for boto3.client("cloudfront").get_waiter("streaming_distribution_deployed"). boto3 documentation

# StreamingDistributionDeployedWaiter usage example

from boto3.session import Session

from mypy_boto3_cloudfront.waiter import StreamingDistributionDeployedWaiter


session = Session()

client = session.client("cloudfront")  # (1)
waiter: StreamingDistributionDeployedWaiter = client.get_waiter("streaming_distribution_deployed")  # (2)
await waiter.wait()
  1. client: CloudFrontClient
  2. waiter: StreamingDistributionDeployedWaiter

wait#

Type annotations and code completion for StreamingDistributionDeployedWaiter.wait method.

# wait method definition

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

kwargs: GetStreamingDistributionRequestStreamingDistributionDeployedWaitTypeDef = {  # (1)
    "Id": ...,
}

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