Class: Aws::ELBProxy::Waiters::ProxyUpdateComplete

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) ⇒ ProxyUpdateComplete

Returns a new instance of ProxyUpdateComplete.

Parameters:

  • options (Hash)

Options Hash (options):

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


171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# File 'gems/aws-sdk-elbproxy/lib/aws-sdk-elbproxy/waiters.rb', line 171

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_proxy_update,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "state.propagation_status",
          "state" => "success",
          "expected" => "complete"
        },
        {
          "matcher" => "path",
          "argument" => "state.propagation_status",
          "state" => "failure",
          "expected" => "failed"
        },
        {
          "matcher" => "path",
          "argument" => "state.propagation_status",
          "state" => "failure",
          "expected" => "cancelled"
        },
        {
          "matcher" => "path",
          "argument" => "state.propagation_status",
          "state" => "failure",
          "expected" => "skipped"
        },
        {
          "matcher" => "path",
          "argument" => "state.validation_status",
          "state" => "failure",
          "expected" => "invalid"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

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.

  • :update_identifier (required, String) —

    The ID of the update.

Returns:



216
217
218
# File 'gems/aws-sdk-elbproxy/lib/aws-sdk-elbproxy/waiters.rb', line 216

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