Class: Aws::LambdaWeb::Waiters::WebFunctionRevisionActive
- Inherits:
-
Object
- Object
- Aws::LambdaWeb::Waiters::WebFunctionRevisionActive
- Defined in:
- gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb
Overview
Waits for the web function revision's state to be Active. This should be used after new revision creation.
Instance Method Summary collapse
-
#initialize(options) ⇒ WebFunctionRevisionActive
constructor
A new instance of WebFunctionRevisionActive.
-
#wait(params = {}) ⇒ Types::GetWebFunctionRevisionResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ WebFunctionRevisionActive
Returns a new instance of WebFunctionRevisionActive.
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb', line 343 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_revision, acceptors: [ { "matcher" => "path", "argument" => "state", "state" => "success", "expected" => "Active" }, { "matcher" => "path", "argument" => "state", "state" => "failure", "expected" => "Failed" }, { "matcher" => "path", "argument" => "state", "state" => "retry", "expected" => "Pending" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetWebFunctionRevisionResponse
Returns a response object which responds to the following methods:
- #function_arn => String
- #revision_arn => String
- #revision_id => String
- #description => String
- #kms_key_arn => String
- #build_config => Types::BuildConfig
- #service_config => Types::ServiceConfig
- #state => String
- #state_reason => String
- #errors => Array<Types::RevisionError>
- #created_at => Time
376 377 378 |
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/waiters.rb', line 376 def wait(params = {}) @waiter.wait(client: @client, params: params) end |