Class: Aws::Lambda::Waiters::FunctionExists
- Inherits:
-
Object
- Object
- Aws::Lambda::Waiters::FunctionExists
- Defined in:
- lib/aws-sdk-lambda/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ FunctionExists
constructor
A new instance of FunctionExists.
-
#wait(params = {}) ⇒ Types::GetFunctionResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ FunctionExists
Returns a new instance of FunctionExists.
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/aws-sdk-lambda/waiters.rb', line 191 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 20, delay: 1, poller: Aws::Waiters::Poller.new( operation_name: :get_function, acceptors: [ { "state" => "success", "matcher" => "status", "expected" => 200 }, { "state" => "retry", "matcher" => "error", "expected" => "ResourceNotFoundException" } ] ) }.merge()) end |
Instance Attribute Details
#waiter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
221 222 223 |
# File 'lib/aws-sdk-lambda/waiters.rb', line 221 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetFunctionResponse
Returns a response object which responds to the following methods:
-
#configuration => Types::FunctionConfiguration
-
#code => Types::FunctionCodeLocation
-
#tags => Hash<String,String>
-
#tags_error => Types::TagsError
-
#concurrency => Types::Concurrency
216 217 218 |
# File 'lib/aws-sdk-lambda/waiters.rb', line 216 def wait(params = {}) @waiter.wait(client: @client, params: params) end |