Class: Aws::ELBProxy::Waiters::ProxyDeleted

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ProxyDeleted

Returns a new instance of ProxyDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'gems/aws-sdk-elbproxy/lib/aws-sdk-elbproxy/waiters.rb', line 136

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 40,
    delay: 15,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_proxy,
      acceptors: [{
        "matcher" => "error",
        "state" => "success",
        "expected" => "ResourceNotFoundException"
      }]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :proxy_identifier (required, String) —

    The Amazon Resource Name (ARN) of the proxy.

Returns:



154
155
156
# File 'gems/aws-sdk-elbproxy/lib/aws-sdk-elbproxy/waiters.rb', line 154

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