Class: Aws::LambdaCore::Waiters::RuntimeAliasActive

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

Overview

Wait until a runtime alias has finished provisioning/updating and reached the ACTIVE state.

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ RuntimeAliasActive

Returns a new instance of RuntimeAliasActive.

Parameters:

  • options (Hash)

Options Hash (options):

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


86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/waiters.rb', line 86

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_alias,
      acceptors: [{
        "matcher" => "path",
        "argument" => "state",
        "state" => "success",
        "expected" => "ACTIVE"
      }]
    )
  }.merge(options))
end

Instance Method Details

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

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 alias to retrieve.

Returns:



105
106
107
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/waiters.rb', line 105

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