Class: Aws::EC2::Waiters::ImageAvailable
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::ImageAvailable
- Defined in:
- lib/aws-sdk-ec2/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ImageAvailable
constructor
A new instance of ImageAvailable.
-
#wait(params = {}) ⇒ Types::DescribeImagesResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ImageAvailable
Returns a new instance of ImageAvailable.
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 407 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_images, acceptors: [ { "state" => "success", "matcher" => "pathAll", "argument" => "images[].state", "expected" => "available" }, { "state" => "failure", "matcher" => "pathAny", "argument" => "images[].state", "expected" => "failed" } ] ) }.merge()) end |
Instance Attribute Details
#waiter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
439 440 441 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 439 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeImagesResult
Returns a response object which responds to the following methods:
-
#images => Array<Types::Image>
-
#next_token => String
434 435 436 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 434 def wait(params = {}) @waiter.wait(client: @client, params: params) end |