Class: Aws::LambdaWeb::Waiters::WebFunctionEndpointUpdated
- Inherits:
-
Object
- Object
- Aws::LambdaWeb::Waiters::WebFunctionEndpointUpdated
- Defined in:
- gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb
Overview
Waits for the web function endpoint's update status to be Successful. This should be used after endpoint updates.
Instance Method Summary collapse
-
#initialize(options) ⇒ WebFunctionEndpointUpdated
constructor
A new instance of WebFunctionEndpointUpdated.
-
#wait(params = {}) ⇒ Types::GetWebFunctionEndpointResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ WebFunctionEndpointUpdated
Returns a new instance of WebFunctionEndpointUpdated.
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb', line 292 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" => "update_status", "state" => "success", "expected" => "Successful" }, { "matcher" => "path", "argument" => "update_status", "state" => "failure", "expected" => "Failed" }, { "matcher" => "path", "argument" => "update_status", "state" => "retry", "expected" => "InProgress" } ] ) }.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
325 326 327 |
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb', line 325 def wait(params = {}) @waiter.wait(client: @client, params: params) end |