Class: Aws::ECS::Waiters::DaemonDeploymentStopped

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) ⇒ DaemonDeploymentStopped

Returns a new instance of DaemonDeploymentStopped.

Parameters:

  • options (Hash)

Options Hash (options):

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


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(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" => "STOPPED"
        },
        {
          "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:



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