class Aws::CloudFront::Waiters::DistributionDeployed

Wait until a distribution is deployed.

Attributes

waiter[R]

@api private

Public Class Methods

new(options) click to toggle source

@param [Hash] options @option options [required, Client] :client @option options [Integer] :max_attempts (35) @option options [Integer] :delay (60) @option options [Proc] :before_attempt @option options [Proc] :before_wait

# File lib/aws-sdk-cloudfront/waiters.rb, line 87
def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 35,
    delay: 60,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_distribution,
      acceptors: [{
        "expected" => "Deployed",
        "matcher" => "path",
        "state" => "success",
        "argument" => "distribution.status"
      }]
    )
  }.merge(options))
end

Public Instance Methods

wait(params = {}) click to toggle source

@option (see Client#get_distribution) @return (see Client#get_distribution)

# File lib/aws-sdk-cloudfront/waiters.rb, line 106
def wait(params = {})
  @waiter.wait(client: @client, params: params)
end