Class: Aws::Deadline::Waiters::LicenseEndpointDeleted

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

Overview

Wait until a LicenseEndpoint is Deleted. Use this after invoking DeleteLicenseEndpoint.

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ LicenseEndpointDeleted

Returns a new instance of LicenseEndpointDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
# File 'gems/aws-sdk-deadline/lib/aws-sdk-deadline/waiters.rb', line 211

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

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :license_endpoint_id (required, String)

    The license endpoint ID.

Returns:



237
238
239
# File 'gems/aws-sdk-deadline/lib/aws-sdk-deadline/waiters.rb', line 237

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