Class: Aws::ECS::Waiters::DaemonDeploymentSuccessful
- Inherits:
-
Object
- Object
- Aws::ECS::Waiters::DaemonDeploymentSuccessful
- Defined in:
- gems/aws-sdk-ecs/lib/aws-sdk-ecs/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ DaemonDeploymentSuccessful
constructor
A new instance of DaemonDeploymentSuccessful.
-
#wait(params = {}) ⇒ Types::DescribeDaemonDeploymentsResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ DaemonDeploymentSuccessful
Returns a new instance of DaemonDeploymentSuccessful.
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/waiters.rb', line 180 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" => "SUCCESSFUL" }, { "matcher" => "pathAny", "argument" => "daemon_deployments[].status", "state" => "failure", "expected" => "STOPPED" }, { "matcher" => "pathAny", "argument" => "daemon_deployments[].status", "state" => "failure", "expected" => "ROLLBACK_FAILED" }, { "matcher" => "pathAny", "argument" => "daemon_deployments[].status", "state" => "failure", "expected" => "ROLLBACK_SUCCESSFUL" }, { "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>
225 226 227 |
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/waiters.rb', line 225 def wait(params = {}) @waiter.wait(client: @client, params: params) end |