Class: Aws::Route53::Waiters::HealthCheckSourceCreated

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ HealthCheckSourceCreated

Returns a new instance of HealthCheckSourceCreated.

Parameters:

  • options (Hash)

Options Hash (options):

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


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

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 100,
    delay: 15,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_health_check_source,
      acceptors: [
        {
          "matcher" => "path",
          "expected" => "CREATE_COMPLETED",
          "argument" => "health_check_source.health_check_source_status",
          "state" => "success"
        },
        {
          "matcher" => "path",
          "expected" => "CREATE_FAILED",
          "argument" => "health_check_source.health_check_source_status",
          "state" => "failure"
        },
        {
          "matcher" => "error",
          "expected" => "NoSuchHealthCheckSource",
          "state" => "retry"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :health_check_source_id (required, String) —

    The ID of the health check source that you want to get information about.

Returns:



118
119
120
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/waiters.rb', line 118

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