Class: Aws::CredentialBrokerControl::Waiters::CredentialProviderReady
- Inherits:
-
Object
- Object
- Aws::CredentialBrokerControl::Waiters::CredentialProviderReady
- Defined in:
- gems/aws-sdk-credentialbrokercontrol/lib/aws-sdk-credentialbrokercontrol/waiters.rb
Overview
Poll until an async create or update reaches a terminal lifecycle state.
Instance Method Summary collapse
-
#initialize(options) ⇒ CredentialProviderReady
constructor
A new instance of CredentialProviderReady.
-
#wait(params = {}) ⇒ Types::GetCredentialProviderResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ CredentialProviderReady
Returns a new instance of CredentialProviderReady.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'gems/aws-sdk-credentialbrokercontrol/lib/aws-sdk-credentialbrokercontrol/waiters.rb', line 205 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 2, poller: Aws::Waiters::Poller.new( operation_name: :get_credential_provider, acceptors: [ { "matcher" => "path", "argument" => "status", "state" => "success", "expected" => "READY" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "FAILED" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetCredentialProviderResponse
Returns a response object which responds to the following methods:
- #credential_provider_arn => String
- #credential_provider_id => String
- #credential_provider_pool_id => String
- #name => String
- #provider_type => String
- #status => String
- #provider_configuration => Types::CredentialProviderConfigurationOutput
- #status_reason => String
- #created_at => Time
- #updated_at => Time
232 233 234 |
# File 'gems/aws-sdk-credentialbrokercontrol/lib/aws-sdk-credentialbrokercontrol/waiters.rb', line 232 def wait(params = {}) @waiter.wait(client: @client, params: params) end |