Class: Aws::EC2::Waiters::ImageExists
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::ImageExists
- Defined in:
- lib/aws-sdk-ec2/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ImageExists
constructor
A new instance of ImageExists.
-
#wait(params = {}) ⇒ Types::DescribeImagesResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ImageExists
Returns a new instance of ImageExists.
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 353 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: [ { "matcher" => "path", "expected" => true, "argument" => "length(images[]) > `0`", "state" => "success" }, { "matcher" => "error", "expected" => "InvalidAMIID.NotFound", "state" => "retry" } ] ) }.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.
384 385 386 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 384 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>
379 380 381 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 379 def wait(params = {}) @waiter.wait(client: @client, params: params) end |