Class: Aws::EC2::Waiters::ImageAvailable
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::ImageAvailable
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
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.
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 403 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 Method Details
#wait(params = {}) ⇒ Types::DescribeImagesResult
430 431 432 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 430 def wait(params = {}) @waiter.wait(client: @client, params: params) end |