Class: Aws::ACM::Waiters::CertificateValidated

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ CertificateValidated

Returns a new instance of CertificateValidated.

Parameters:

  • options (Hash)

Options Hash (options):

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


278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/waiters.rb', line 278

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 5,
    delay: 60,
    poller: Aws::Waiters::Poller.new(
      operation_name: :describe_certificate,
      acceptors: [
        {
          "matcher" => "pathAll",
          "argument" => "certificate.domain_validation_options[].validation_status",
          "state" => "success",
          "expected" => "SUCCESS"
        },
        {
          "matcher" => "pathAny",
          "argument" => "certificate.domain_validation_options[].validation_status",
          "state" => "retry",
          "expected" => "PENDING_VALIDATION"
        },
        {
          "matcher" => "path",
          "argument" => "certificate.status",
          "state" => "failure",
          "expected" => "FAILED"
        },
        {
          "matcher" => "error",
          "state" => "failure",
          "expected" => "ResourceNotFoundException"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :certificate_arn (required, String)

    The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form:

    arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

    For more information about ARNs, see Amazon Resource Names (ARNs).

Returns:



316
317
318
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/waiters.rb', line 316

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