Class: Aws::ECS::Waiters::DaemonDeploymentSuccessful

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-ecs/lib/aws-sdk-ecs/waiters.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DaemonDeploymentSuccessful

Returns a new instance of DaemonDeploymentSuccessful.

Parameters:

  • options (Hash)

Options Hash (options):

  • :client (required, Client)
  • :max_attempts (Integer) — default: 8
  • :delay (Integer) — default: 15
  • :before_attempt (Proc)
  • :before_wait (Proc)


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(options)
  @client = options.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(options))
end

Instance Method Details

#wait(params = {}) ⇒ Types::DescribeDaemonDeploymentsResponse

Returns a response object which responds to the following methods:

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :daemon_deployment_arns (required, Array<String>)

    The ARN of the daemon deployments to describe. You can specify up to 20 ARNs.

Returns:



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