Class: Aws::LambdaWeb::Waiters::WebFunctionActive
- Inherits:
-
Object
- Object
- Aws::LambdaWeb::Waiters::WebFunctionActive
- Defined in:
- gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb
Overview
Waits for the web function's state to be Active. This should be used after new function creation.
Instance Method Summary collapse
-
#initialize(options) ⇒ WebFunctionActive
constructor
A new instance of WebFunctionActive.
-
#wait(params = {}) ⇒ Types::GetWebFunctionResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ WebFunctionActive
Returns a new instance of WebFunctionActive.
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb', line 90 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 300, delay: 1, poller: Aws::Waiters::Poller.new( operation_name: :get_web_function, acceptors: [ { "matcher" => "path", "argument" => "state", "state" => "success", "expected" => "Active" }, { "matcher" => "path", "argument" => "state", "state" => "failure", "expected" => "Failed" }, { "matcher" => "path", "argument" => "state", "state" => "failure", "expected" => "Deleting" }, { "matcher" => "path", "argument" => "state", "state" => "retry", "expected" => "Pending" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetWebFunctionResponse
Returns a response object which responds to the following methods:
- #function_name => String
- #function_arn => String
- #state => String
- #state_reason => String
- #created_at => Time
- #updated_at => Time
129 130 131 |
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb', line 129 def wait(params = {}) @waiter.wait(client: @client, params: params) end |