Class: Aws::ACM::Waiters::AcmeDomainValidationDeleted

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

Overview

Wait until an ACME domain validation has been deleted.

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ AcmeDomainValidationDeleted

Returns a new instance of AcmeDomainValidationDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/waiters.rb', line 89

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" => "error",
          "state" => "success",
          "expected" => "ResourceNotFoundException"
        },
        {
          "matcher" => "path",
          "argument" => "acme_domain_validation.status",
          "state" => "retry",
          "expected" => "DELETING"
        }
      ]
    )
  }.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:



115
116
117
# File 'gems/aws-sdk-acm/lib/aws-sdk-acm/waiters.rb', line 115

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