Class: Aws::Imagebuilder::Waiters::ImageAvailable

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-imagebuilder/waiters.rb,
sig/waiters.rbs

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 Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ImageAvailable

Returns a new instance of ImageAvailable.

Parameters:

  • options (Hash)

Options Hash (options):

  • :client (required, Client)
  • :max_attempts (Integer) — default: 360
  • :delay (Integer) — default: 60
  • :before_attempt (Proc)
  • :before_wait (Proc)


85
86
# File 'lib/aws-sdk-imagebuilder/waiters.rb', line 85

def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
| (?Hash[Symbol, untyped]) -> void

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.



123
124
125
# File 'lib/aws-sdk-imagebuilder/waiters.rb', line 123

def waiter
  @waiter
end

Instance Method Details

#wait(params = {}) ⇒ Types::GetImageResponse

Returns a response object which responds to the following methods:

Parameters:

  • params (Hash) (defaults to: {}) —

    a customizable set of options

Options Hash (params):

  • :image_build_version_arn (required, String) —

    The Amazon Resource Name (ARN) of the image that you want to get. You can specify a full build version ARN, or a version ARN with or without wildcards (x.x.x, 1.x.x, or 1.0.x). A version or wildcard ARN resolves to the latest matching build version that has reached AVAILABLE status. Builds that were later deprecated, disabled, or deleted don't resolve. To get an image in any other state, such as a failed or in-progress build, specify the full build version ARN.

Returns:



118
119
120
121
# File 'lib/aws-sdk-imagebuilder/waiters.rb', line 118

def wait: (
    image_build_version_arn: ::String
  ) -> Client::_GetImageResponseSuccess
| (Hash[Symbol, untyped]) -> Client::_GetImageResponseSuccess