Class: Aws::ACM::Waiters::AcmeDomainValidationValidated

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-acm/lib/aws-sdk-acm/waiters.rb

Overview

Wait until an ACME domain validation reaches a terminal validation state.

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ AcmeDomainValidationValidated

Returns a new instance of AcmeDomainValidationValidated.

Parameters:

  • options (Hash)

Options Hash (options):

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


133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/waiters.rb', line 133

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 60,
    delay: 5,
    poller: Aws::Waiters::Poller.new(
      operation_name: :describe_acme_domain_validation,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "acme_domain_validation.status",
          "state" => "success",
          "expected" => "VALID"
        },
        {
          "matcher" => "path",
          "argument" => "acme_domain_validation.status",
          "state" => "failure",
          "expected" => "INVALID"
        },
        {
          "matcher" => "path",
          "argument" => "acme_domain_validation.status",
          "state" => "retry",
          "expected" => "VALIDATING"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :acme_domain_validation_arn (required, String)

    The Amazon Resource Name (ARN) of the ACME domain validation.

Returns:



166
167
168
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/waiters.rb', line 166

def wait(params = {})
  @waiter.wait(client: @client, params: params)
end