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.
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 309 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.
341 342 343 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 341 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>
336 337 338 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 336 def wait(params = {}) @waiter.wait(client: @client, params: params) end |