Class: Aws::LambdaCore::Waiters::RuntimeVersionActive

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

Overview

Wait until a runtime version has finished provisioning and reached the ACTIVE state.

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ RuntimeVersionActive

Returns a new instance of RuntimeVersionActive.

Parameters:

  • options (Hash)

Options Hash (options):

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


123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/waiters.rb', line 123

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 60,
    delay: 2,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_runtime_version,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "state",
          "state" => "success",
          "expected" => "ACTIVE"
        },
        {
          "matcher" => "path",
          "argument" => "state",
          "state" => "failure",
          "expected" => "FAILED"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :runtime_name (required, String) —

    The name or ARN of the runtime.

  • :name (required, String) —

    The name of the runtime version to retrieve.

Returns:



150
151
152
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/waiters.rb', line 150

def wait(params = {})
  @waiter.wait(client: @client, params: params)
end