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

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

Overview

Wait for a routing control to be deleted

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 'gems/aws-sdk-route53recoverycontrolconfig/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 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:



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

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