Class: Aws::Proton::Waiters::ServiceDeleted

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

Overview

Wait until a Service, its instances, and possibly pipeline have been deleted after DeleteService is invoked

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ServiceDeleted

Returns a new instance of ServiceDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File 'gems/aws-sdk-proton/lib/aws-sdk-proton/waiters.rb', line 336

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 999,
    delay: 5,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_service,
      acceptors: [
        {
          "matcher" => "error",
          "state" => "success",
          "expected" => "ResourceNotFoundException"
        },
        {
          "matcher" => "path",
          "argument" => "service.status",
          "state" => "failure",
          "expected" => "DELETE_FAILED"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :name (required, String)

    The name of the service that you want to get the detailed data for.

Returns:



362
363
364
# File 'gems/aws-sdk-proton/lib/aws-sdk-proton/waiters.rb', line 362

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