Class: Aws::ECS::Waiters::TasksRunning
- Inherits:
-
Object
- Object
- Aws::ECS::Waiters::TasksRunning
- Defined in:
- lib/aws-sdk-ecs/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ TasksRunning
constructor
A new instance of TasksRunning.
-
#wait(params = {}) ⇒ Types::DescribeTasksResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ TasksRunning
Returns a new instance of TasksRunning.
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 |
# File 'lib/aws-sdk-ecs/waiters.rb', line 428 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 100, delay: 6, poller: Aws::Waiters::Poller.new( operation_name: :describe_tasks, acceptors: [ { "matcher" => "pathAny", "argument" => "tasks[].last_status", "state" => "failure", "expected" => "STOPPED" }, { "matcher" => "pathAny", "argument" => "failures[].reason", "state" => "failure", "expected" => "MISSING" }, { "matcher" => "pathAll", "argument" => "tasks[].last_status", "state" => "success", "expected" => "RUNNING" } ] ) }.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.
466 467 468 |
# File 'lib/aws-sdk-ecs/waiters.rb', line 466 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeTasksResponse
461 462 463 |
# File 'lib/aws-sdk-ecs/waiters.rb', line 461 def wait(params = {}) @waiter.wait(client: @client, params: params) end |