CloudFront / Waiter / InvalidationCompleted

InvalidationCompleted#

class CloudFront.Waiter.InvalidationCompleted#
waiter = client.get_waiter('invalidation_completed')
wait(**kwargs)#

Polls CloudFront.Client.get_invalidation() every 20 seconds until a successful state is reached. An error is raised after 30 failed checks.

See also: AWS API Documentation

Request Syntax

waiter.wait(
    DistributionId='string',
    Id='string',
    WaiterConfig={
        'Delay': 123,
        'MaxAttempts': 123
    }
)
Parameters:
  • DistributionId (string) –

    [REQUIRED]

    The distribution’s ID.

  • Id (string) –

    [REQUIRED]

    The identifier for the invalidation request, for example, IDFDVBD632BHDS5.

  • WaiterConfig (dict) –

    A dictionary that provides parameters to control waiting behavior.

    • Delay (integer) –

      The amount of time in seconds to wait between attempts. Default: 20

    • MaxAttempts (integer) –

      The maximum number of attempts to be made. Default: 30

Returns:

None