Class: Aws::Deadline::Waiters::QueueLimitAssociationStopped
- Inherits:
-
Object
- Object
- Aws::Deadline::Waiters::QueueLimitAssociationStopped
- Defined in:
- lib/aws-sdk-deadline/waiters.rb
Overview
Wait until a QueueLimitAssociation is stopped. Use this after setting the status to STOP_LIMIT_USAGE_AND_COMPLETE_TASKS or STOP_LIMIT_USAGE_AND_CANCEL_TASKS to wait for a QueueLimitAssociation to reach STOPPED
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ QueueLimitAssociationStopped
constructor
A new instance of QueueLimitAssociationStopped.
-
#wait(params = {}) ⇒ Types::GetQueueLimitAssociationResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ QueueLimitAssociationStopped
Returns a new instance of QueueLimitAssociationStopped.
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/aws-sdk-deadline/waiters.rb', line 338 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 10, poller: Aws::Waiters::Poller.new( operation_name: :get_queue_limit_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.
362 363 364 |
# File 'lib/aws-sdk-deadline/waiters.rb', line 362 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetQueueLimitAssociationResponse
Returns a response object which responds to the following methods:
-
#created_at => Time
-
#created_by => String
-
#updated_at => Time
-
#updated_by => String
-
#queue_id => String
-
#limit_id => String
-
#status => String
357 358 359 |
# File 'lib/aws-sdk-deadline/waiters.rb', line 357 def wait(params = {}) @waiter.wait(client: @client, params: params) end |