Class: Aws::RTBFabric::Waiters::LinkRoutingRuleActive

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ LinkRoutingRuleActive

Returns a new instance of LinkRoutingRuleActive.

Parameters:

  • options (Hash)

Options Hash (options):

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


518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/waiters.rb', line 518

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 24,
    delay: 5,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_link_routing_rule,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "CREATE_FAILED"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "success",
          "expected" => "ACTIVE"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "FAILED"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "DELETED"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :gateway_id (required, String) —

    The unique identifier of the gateway.

  • :link_id (required, String) —

    The unique identifier of the link.

  • :rule_id (required, String) —

    The unique identifier of the routing rule.

Returns:



557
558
559
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/waiters.rb', line 557

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