Class: Aws::Imagebuilder::Waiters::ImageAvailable
- Inherits:
-
Object
- Object
- Aws::Imagebuilder::Waiters::ImageAvailable
- Defined in:
- gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/waiters.rb
Overview
Wait until an image build version reaches the AVAILABLE state, meaning the build completed, including distribution and integration of output resources. The waiter fails if the image reaches the FAILED or CANCELLED state. Specify the full image build version ARN; wildcard version ARNs only resolve to images that are already available.
Instance Method Summary collapse
-
#initialize(options) ⇒ ImageAvailable
constructor
A new instance of ImageAvailable.
-
#wait(params = {}) ⇒ Types::GetImageResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ImageAvailable
Returns a new instance of ImageAvailable.
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/waiters.rb', line 85 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 360, delay: 60, poller: Aws::Waiters::Poller.new( operation_name: :get_image, acceptors: [ { "state" => "success", "matcher" => "path", "argument" => "image.state.status", "expected" => "AVAILABLE" }, { "state" => "failure", "matcher" => "path", "argument" => "image.state.status", "expected" => "FAILED" }, { "state" => "failure", "matcher" => "path", "argument" => "image.state.status", "expected" => "CANCELLED" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetImageResponse
Returns a response object which responds to the following methods:
- #request_id => String
- #image => Types::Image
- #latest_version_references => Types::LatestVersionReferences
118 119 120 |
# File 'gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/waiters.rb', line 118 def wait(params = {}) @waiter.wait(client: @client, params: params) end |