class Aws::Route53RecoveryControlConfig::Waiters::ClusterCreated
Wait until a cluster is created
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 (26) @option options [Integer] :delay (5) @option options [Proc] :before_attempt @option options [Proc] :before_wait
# File lib/aws-sdk-route53recoverycontrolconfig/waiters.rb, line 90 def initialize(options) @client = options.fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 26, delay: 5, poller: Aws::Waiters::Poller.new( operation_name: :describe_cluster, acceptors: [ { "state" => "success", "matcher" => "path", "argument" => "cluster.status", "expected" => "DEPLOYED" }, { "state" => "retry", "matcher" => "path", "argument" => "cluster.status", "expected" => "PENDING" }, { "state" => "retry", "matcher" => "status", "expected" => 500 } ] ) }.merge(options)) end
Public Instance Methods
wait(params = {})
click to toggle source
@option (see Client#describe_cluster
) @return (see Client#describe_cluster
)
# File lib/aws-sdk-route53recoverycontrolconfig/waiters.rb, line 122 def wait(params = {}) @waiter.wait(client: @client, params: params) end