Class: Aws::LambdaWeb::Waiters::WebFunctionDeleted
- Inherits:
-
Object
- Object
- Aws::LambdaWeb::Waiters::WebFunctionDeleted
- 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
-
#initialize(options) ⇒ WebFunctionDeleted
constructor
A new instance of WebFunctionDeleted.
-
#wait(params = {}) ⇒ Types::GetWebFunctionResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ WebFunctionDeleted
Returns a new instance of WebFunctionDeleted.
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() @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" => "error", "state" => "success", "expected" => "ResourceNotFoundException" }, { "matcher" => "path", "argument" => "state", "state" => "retry", "expected" => "Deleting" } ] ) }.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
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 |