Class: Aws::Deadline::Waiters::QueueFleetAssociationStopped

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

Overview

Wait until a QueueFleetAssociation is stopped. Use this after setting the status to STOP_SCHEDULING_AND_COMPLETE_TASKS or STOP_SCHEDULING_AND_CANCEL_TASKS to wait for a QueueFleetAssociation to reach STOPPED

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ QueueFleetAssociationStopped

Returns a new instance of QueueFleetAssociationStopped.

Parameters:

  • options (Hash)

Options Hash (options):

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


300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
# File 'gems/aws-sdk-deadline/lib/aws-sdk-deadline/waiters.rb', line 300

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

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :farm_id (required, String)

    The farm ID of the farm that contains the queue-fleet association.

  • :fleet_id (required, String)

    The fleet ID for the queue-fleet association.

  • :queue_id (required, String)

    The queue ID for the queue-fleet association.

Returns:



319
320
321
# File 'gems/aws-sdk-deadline/lib/aws-sdk-deadline/waiters.rb', line 319

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