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

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

Overview

Wait until a routing control is created

Instance Attribute Summary collapse

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)
[View source]

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 '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 Attribute Details

#waiterObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


325
326
327
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 325

def waiter
  @waiter
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Options Hash (params):

  • :routing_control_arn (required, String)

Returns:

[View source]

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

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