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

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

Overview

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

Instance Attribute Summary collapse

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 '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 Attribute Details

#waiterObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



242
243
244
# File 'lib/aws-sdk-deadline/waiters.rb', line 242

def waiter
  @waiter
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Options Hash (params):

  • :license_endpoint_id (required, String)

    The license endpoint ID.

Returns:



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

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