Class: Aws::Route53RecoveryControlConfig::Waiters::RoutingControlCreated

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/waiters.rb

Overview

Wait until a routing control is created

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ RoutingControlCreated

Returns a new instance of RoutingControlCreated.

Parameters:

  • options (Hash)

Options Hash (options):

  • :client (required, Client)
  • :max_attempts (Integer) — default: 26
  • :delay (Integer) — default: 5
  • :before_attempt (Proc)
  • :before_wait (Proc)


288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
# File 'gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 288

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_routing_control,
      acceptors: [
        {
          "state" => "success",
          "matcher" => "path",
          "argument" => "routing_control.status",
          "expected" => "DEPLOYED"
        },
        {
          "state" => "retry",
          "matcher" => "path",
          "argument" => "routing_control.status",
          "expected" => "PENDING"
        },
        {
          "state" => "retry",
          "matcher" => "status",
          "expected" => 500
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

#wait(params = {}) ⇒ Types::DescribeRoutingControlResponse

Returns a response object which responds to the following methods:

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :routing_control_arn (required, String)

Returns:



320
321
322
# File 'gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 320

def wait(params = {})
  @waiter.wait(client: @client, params: params)
end