Sha256: bd42791d0fc951cb11463fe89890d817356f935a04684adf547cd3fddf4264f6

Contents?: true

Size: 1.99 KB

Versions: 20

Compression:

Stored size: 1.99 KB

Contents

# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE

require 'aws-sdk-core/waiters'

module Aws::ACM
  module Waiters

    class CertificateValidated

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

      # @option (see Client#describe_certificate)
      # @return (see Client#describe_certificate)
      def wait(params = {})
        @waiter.wait(client: @client, params: params)
      end

      # @api private
      attr_reader :waiter

    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
aws-sdk-acm-1.28.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.27.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.26.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.25.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.24.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.23.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.22.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.21.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.20.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.19.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.18.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.17.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.16.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.15.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.14.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.13.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.12.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.11.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.10.0 lib/aws-sdk-acm/waiters.rb
aws-sdk-acm-1.9.0 lib/aws-sdk-acm/waiters.rb