Class: Aws::TranscribeService::Waiters::VocabularyReady
- Inherits:
-
Object
- Object
- Aws::TranscribeService::Waiters::VocabularyReady
- Defined in:
- gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ VocabularyReady
constructor
A new instance of VocabularyReady.
-
#wait(params = {}) ⇒ Types::GetVocabularyResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ VocabularyReady
Returns a new instance of VocabularyReady.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/waiters.rb', line 354 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 180, delay: 10, poller: Aws::Waiters::Poller.new( operation_name: :get_vocabulary, acceptors: [ { "state" => "success", "matcher" => "path", "argument" => "vocabulary_state", "expected" => "READY" }, { "state" => "failure", "matcher" => "path", "argument" => "vocabulary_state", "expected" => "FAILED" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetVocabularyResponse
Returns a response object which responds to the following methods:
- #vocabulary_name => String
- #language_code => String
- #vocabulary_state => String
- #last_modified_time => Time
- #failure_reason => String
- #download_uri => String
381 382 383 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/waiters.rb', line 381 def wait(params = {}) @waiter.wait(client: @client, params: params) end |