Class: Aws::Route53RecoveryControlConfig::Waiters::RoutingControlDeleted

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

Overview

Wait for a routing control to be deleted

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ RoutingControlDeleted

Returns a new instance of RoutingControlDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 338

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" => "status",
          "expected" => 404
        },
        {
          "state" => "retry",
          "matcher" => "path",
          "argument" => "routing_control.status",
          "expected" => "PENDING_DELETION"
        },
        {
          "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.



374
375
376
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 374

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:



369
370
371
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 369

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