Class: Aws::Deadline::Waiters::QueueFleetAssociationStopped
- Inherits:
-
Object
- Object
- Aws::Deadline::Waiters::QueueFleetAssociationStopped
- Defined in:
- 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 Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ QueueFleetAssociationStopped
constructor
A new instance of QueueFleetAssociationStopped.
-
#wait(params = {}) ⇒ Types::GetQueueFleetAssociationResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ QueueFleetAssociationStopped
Returns a new instance of QueueFleetAssociationStopped.
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 |
# File 'lib/aws-sdk-deadline/waiters.rb', line 300 def initialize() @client = .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()) end |
Instance Attribute Details
#waiter ⇒ Object (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.
324 325 326 |
# File 'lib/aws-sdk-deadline/waiters.rb', line 324 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetQueueFleetAssociationResponse
Returns a response object which responds to the following methods:
-
#queue_id => String
-
#fleet_id => String
-
#status => String
-
#created_at => Time
-
#created_by => String
-
#updated_at => Time
-
#updated_by => String
319 320 321 |
# File 'lib/aws-sdk-deadline/waiters.rb', line 319 def wait(params = {}) @waiter.wait(client: @client, params: params) end |