Class: Aws::ECS::Waiters::DaemonDeploymentStopped
- Inherits:
-
Object
- Object
- Aws::ECS::Waiters::DaemonDeploymentStopped
- Defined in:
- gems/aws-sdk-ecs/lib/aws-sdk-ecs/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ DaemonDeploymentStopped
constructor
A new instance of DaemonDeploymentStopped.
-
#wait(params = {}) ⇒ Types::DescribeDaemonDeploymentsResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ DaemonDeploymentStopped
Returns a new instance of DaemonDeploymentStopped.
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/waiters.rb', line 136 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 8, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_daemon_deployments, acceptors: [ { "matcher" => "pathAll", "argument" => "daemon_deployments[].status", "state" => "success", "expected" => "STOPPED" }, { "matcher" => "pathAny", "argument" => "failures[].reason", "state" => "failure", "expected" => "MISSING" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeDaemonDeploymentsResponse
Returns a response object which responds to the following methods:
- #failures => Array<Types::Failure>
- #daemon_deployments => Array<Types::DaemonDeployment>
163 164 165 |
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/waiters.rb', line 163 def wait(params = {}) @waiter.wait(client: @client, params: params) end |