Class: Aws::LambdaWeb::Waiters::WebFunctionDeleted

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

Overview

Waits for the web function to be deleted. This should be used after function deletion.

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ WebFunctionDeleted

Returns a new instance of WebFunctionDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb', line 147

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 300,
    delay: 1,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_web_function,
      acceptors: [
        {
          "matcher" => "error",
          "state" => "success",
          "expected" => "ResourceNotFoundException"
        },
        {
          "matcher" => "path",
          "argument" => "state",
          "state" => "retry",
          "expected" => "Deleting"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :function_name (required, String) —

    The web function to retrieve.

    You can specify either of the following:

    • The function name, for example my-function.

    • The function ARN.

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Returns:



173
174
175
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb', line 173

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