Class: Aws::AgentRegistryControl::Waiters::RegistryRecordApproved

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ RegistryRecordApproved

Returns a new instance of RegistryRecordApproved.

Parameters:

  • options (Hash)

Options Hash (options):

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


141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'gems/aws-sdk-agentregistrycontrol/lib/aws-sdk-agentregistrycontrol/waiters.rb', line 141

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 5,
    delay: 30,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_registry_record,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "success",
          "expected" => "APPROVED"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "REJECTED"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "CREATE_FAILED"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "UPDATE_FAILED"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :registry_id (required, String)

    The identifier of the registry containing the record (ARN or ID)

  • :record_id (required, String)

    The identifier of the registry record to retrieve (ARN or ID)

Returns:



180
181
182
# File 'gems/aws-sdk-agentregistrycontrol/lib/aws-sdk-agentregistrycontrol/waiters.rb', line 180

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