class Aws::Proton::Waiters::EnvironmentTemplateVersionRegistered

Wait until an EnvironmentTemplateVersion is registered. Use this after invoking CreateEnvironmentTemplateVersion

Attributes

waiter[R]

@api private

Public Class Methods

new(options) click to toggle source

@param [Hash] options @option options [required, Client] :client @option options [Integer] :max_attempts (150) @option options [Integer] :delay (2) @option options [Proc] :before_attempt @option options [Proc] :before_wait

# File lib/aws-sdk-proton/waiters.rb, line 137
def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 150,
    delay: 2,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_environment_template_version,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "environment_template_version.status",
          "state" => "success",
          "expected" => "DRAFT"
        },
        {
          "matcher" => "path",
          "argument" => "environment_template_version.status",
          "state" => "success",
          "expected" => "PUBLISHED"
        },
        {
          "matcher" => "path",
          "argument" => "environment_template_version.status",
          "state" => "failure",
          "expected" => "REGISTRATION_FAILED"
        }
      ]
    )
  }.merge(options))
end

Public Instance Methods

wait(params = {}) click to toggle source

@option (see Client#get_environment_template_version) @return (see Client#get_environment_template_version)

# File lib/aws-sdk-proton/waiters.rb, line 170
def wait(params = {})
  @waiter.wait(client: @client, params: params)
end