Class: Aws::LambdaWeb::Waiters::WebFunctionEndpointActive
- Inherits:
-
Object
- Object
- Aws::LambdaWeb::Waiters::WebFunctionEndpointActive
- Defined in:
- gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb
Overview
Waits for the web function endpoint's state to be Active. This should be used after new endpoint creation.
Instance Method Summary collapse
-
#initialize(options) ⇒ WebFunctionEndpointActive
constructor
A new instance of WebFunctionEndpointActive.
-
#wait(params = {}) ⇒ Types::GetWebFunctionEndpointResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ WebFunctionEndpointActive
Returns a new instance of WebFunctionEndpointActive.
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb', line 191 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_endpoint, 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::GetWebFunctionEndpointResponse
Returns a response object which responds to the following methods:
- #function_arn => String
- #endpoint_arn => String
- #endpoint_name => String
- #description => String
- #endpoint_type => String
- #domain_name => String
- #auth_type => String
- #auto_deployment_mode => String
- #revision_weights => Array<Types::RevisionWeight>
- #regions => Array<String>
- #scaling_config => Types::ScalingConfig
- #throttle_config => Types::ThrottleConfig
- #state => String
- #state_reason => String
- #update_status => String
- #update_status_reason => String
- #regional_endpoints => Hash<String,Types::RegionalEndpoint>
- #created_at => Time
- #updated_at => Time
230 231 232 |
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb', line 230 def wait(params = {}) @waiter.wait(client: @client, params: params) end |