Class: Aws::AgentRegistryControl::Waiters::RegistryRecordApproved
- Inherits:
-
Object
- Object
- Aws::AgentRegistryControl::Waiters::RegistryRecordApproved
- Defined in:
- gems/aws-sdk-agentregistrycontrol/lib/aws-sdk-agentregistrycontrol/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ RegistryRecordApproved
constructor
A new instance of RegistryRecordApproved.
-
#wait(params = {}) ⇒ Types::GetRegistryRecordResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ RegistryRecordApproved
Returns a new instance of RegistryRecordApproved.
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() @client = .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()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetRegistryRecordResponse
Returns a response object which responds to the following methods:
- #registry_arn => String
- #record_arn => String
- #record_id => String
- #name => String
- #display_name => String
- #description => String
- #record_type => String
- #descriptors => Types::Descriptors
- #record_version => String
- #status => String
- #created_at => Time
- #updated_at => Time
- #status_reason => String
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 |