aws-sdk-transcribeservice 1.134.0 → 1.135.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-transcribeservice/client.rb +162 -2
- data/lib/aws-sdk-transcribeservice/waiters.rb +390 -0
- data/lib/aws-sdk-transcribeservice.rb +2 -1
- data/sig/client.rbs +30 -0
- data/sig/waiters.rbs +70 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 110036b65bd40200916167022e8a5946beb02a55ca60e93dfaf319fce5c09681
|
|
4
|
+
data.tar.gz: 26441e312eaacec1d7b88f5ab0544fd81f23e2ecf18e4c0d1c09557d2f0bd575
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ef99de2cd985d960fc93b7c30bbd42a514e02465ffe4d8e75b53401f8c14d284db781da1763345b8a301b1f7643951d7a59094a01e29087aa81e033b91a5a70
|
|
7
|
+
data.tar.gz: 31abc9a89e7581357b2c72d1ba0d757b753e11d71b279f93b9aa66546d530a7cc4bd6800be253fd4cd55ce105a361b3bd7bed3a72689fe037bd2c3579ddff016
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.135.0
|
|
@@ -1475,6 +1475,11 @@ module Aws::TranscribeService
|
|
|
1475
1475
|
# resp.language_model.input_data_config.tuning_data_s3_uri #=> String
|
|
1476
1476
|
# resp.language_model.input_data_config.data_access_role_arn #=> String
|
|
1477
1477
|
#
|
|
1478
|
+
#
|
|
1479
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1480
|
+
#
|
|
1481
|
+
# * language_model_completed
|
|
1482
|
+
#
|
|
1478
1483
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModel AWS API Documentation
|
|
1479
1484
|
#
|
|
1480
1485
|
# @overload describe_language_model(params = {})
|
|
@@ -1643,6 +1648,11 @@ module Aws::TranscribeService
|
|
|
1643
1648
|
# resp.call_analytics_job.tags[0].key #=> String
|
|
1644
1649
|
# resp.call_analytics_job.tags[0].value #=> String
|
|
1645
1650
|
#
|
|
1651
|
+
#
|
|
1652
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1653
|
+
#
|
|
1654
|
+
# * call_analytics_job_completed
|
|
1655
|
+
#
|
|
1646
1656
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetCallAnalyticsJob AWS API Documentation
|
|
1647
1657
|
#
|
|
1648
1658
|
# @overload get_call_analytics_job(params = {})
|
|
@@ -1705,6 +1715,11 @@ module Aws::TranscribeService
|
|
|
1705
1715
|
# resp.medical_scribe_job.tags[0].key #=> String
|
|
1706
1716
|
# resp.medical_scribe_job.tags[0].value #=> String
|
|
1707
1717
|
#
|
|
1718
|
+
#
|
|
1719
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1720
|
+
#
|
|
1721
|
+
# * medical_scribe_job_completed
|
|
1722
|
+
#
|
|
1708
1723
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalScribeJob AWS API Documentation
|
|
1709
1724
|
#
|
|
1710
1725
|
# @overload get_medical_scribe_job(params = {})
|
|
@@ -1765,6 +1780,11 @@ module Aws::TranscribeService
|
|
|
1765
1780
|
# resp.medical_transcription_job.tags[0].key #=> String
|
|
1766
1781
|
# resp.medical_transcription_job.tags[0].value #=> String
|
|
1767
1782
|
#
|
|
1783
|
+
#
|
|
1784
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1785
|
+
#
|
|
1786
|
+
# * medical_transcription_job_completed
|
|
1787
|
+
#
|
|
1768
1788
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalTranscriptionJob AWS API Documentation
|
|
1769
1789
|
#
|
|
1770
1790
|
# @overload get_medical_transcription_job(params = {})
|
|
@@ -1811,6 +1831,11 @@ module Aws::TranscribeService
|
|
|
1811
1831
|
# resp.failure_reason #=> String
|
|
1812
1832
|
# resp.download_uri #=> String
|
|
1813
1833
|
#
|
|
1834
|
+
#
|
|
1835
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1836
|
+
#
|
|
1837
|
+
# * medical_vocabulary_ready
|
|
1838
|
+
#
|
|
1814
1839
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabulary AWS API Documentation
|
|
1815
1840
|
#
|
|
1816
1841
|
# @overload get_medical_vocabulary(params = {})
|
|
@@ -1901,6 +1926,11 @@ module Aws::TranscribeService
|
|
|
1901
1926
|
# resp.transcription_job.toxicity_detection[0].toxicity_categories #=> Array
|
|
1902
1927
|
# resp.transcription_job.toxicity_detection[0].toxicity_categories[0] #=> String, one of "ALL"
|
|
1903
1928
|
#
|
|
1929
|
+
#
|
|
1930
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1931
|
+
#
|
|
1932
|
+
# * transcription_job_completed
|
|
1933
|
+
#
|
|
1904
1934
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetTranscriptionJob AWS API Documentation
|
|
1905
1935
|
#
|
|
1906
1936
|
# @overload get_transcription_job(params = {})
|
|
@@ -1947,6 +1977,11 @@ module Aws::TranscribeService
|
|
|
1947
1977
|
# resp.failure_reason #=> String
|
|
1948
1978
|
# resp.download_uri #=> String
|
|
1949
1979
|
#
|
|
1980
|
+
#
|
|
1981
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1982
|
+
#
|
|
1983
|
+
# * vocabulary_ready
|
|
1984
|
+
#
|
|
1950
1985
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabulary AWS API Documentation
|
|
1951
1986
|
#
|
|
1952
1987
|
# @overload get_vocabulary(params = {})
|
|
@@ -4514,14 +4549,139 @@ module Aws::TranscribeService
|
|
|
4514
4549
|
tracer: tracer
|
|
4515
4550
|
)
|
|
4516
4551
|
context[:gem_name] = 'aws-sdk-transcribeservice'
|
|
4517
|
-
context[:gem_version] = '1.
|
|
4552
|
+
context[:gem_version] = '1.135.0'
|
|
4518
4553
|
Seahorse::Client::Request.new(handlers, context)
|
|
4519
4554
|
end
|
|
4520
4555
|
|
|
4556
|
+
# Polls an API operation until a resource enters a desired state.
|
|
4557
|
+
#
|
|
4558
|
+
# ## Basic Usage
|
|
4559
|
+
#
|
|
4560
|
+
# A waiter will call an API operation until:
|
|
4561
|
+
#
|
|
4562
|
+
# * It is successful
|
|
4563
|
+
# * It enters a terminal state
|
|
4564
|
+
# * It makes the maximum number of attempts
|
|
4565
|
+
#
|
|
4566
|
+
# In between attempts, the waiter will sleep.
|
|
4567
|
+
#
|
|
4568
|
+
# # polls in a loop, sleeping between attempts
|
|
4569
|
+
# client.wait_until(waiter_name, params)
|
|
4570
|
+
#
|
|
4571
|
+
# ## Configuration
|
|
4572
|
+
#
|
|
4573
|
+
# You can configure the maximum number of polling attempts, and the
|
|
4574
|
+
# delay (in seconds) between each polling attempt. You can pass
|
|
4575
|
+
# configuration as the final arguments hash.
|
|
4576
|
+
#
|
|
4577
|
+
# # poll for ~25 seconds
|
|
4578
|
+
# client.wait_until(waiter_name, params, {
|
|
4579
|
+
# max_attempts: 5,
|
|
4580
|
+
# delay: 5,
|
|
4581
|
+
# })
|
|
4582
|
+
#
|
|
4583
|
+
# ## Callbacks
|
|
4584
|
+
#
|
|
4585
|
+
# You can be notified before each polling attempt and before each
|
|
4586
|
+
# delay. If you throw `:success` or `:failure` from these callbacks,
|
|
4587
|
+
# it will terminate the waiter.
|
|
4588
|
+
#
|
|
4589
|
+
# started_at = Time.now
|
|
4590
|
+
# client.wait_until(waiter_name, params, {
|
|
4591
|
+
#
|
|
4592
|
+
# # disable max attempts
|
|
4593
|
+
# max_attempts: nil,
|
|
4594
|
+
#
|
|
4595
|
+
# # poll for 1 hour, instead of a number of attempts
|
|
4596
|
+
# before_wait: -> (attempts, response) do
|
|
4597
|
+
# throw :failure if Time.now - started_at > 3600
|
|
4598
|
+
# end
|
|
4599
|
+
# })
|
|
4600
|
+
#
|
|
4601
|
+
# ## Handling Errors
|
|
4602
|
+
#
|
|
4603
|
+
# When a waiter is unsuccessful, it will raise an error.
|
|
4604
|
+
# All of the failure errors extend from
|
|
4605
|
+
# {Aws::Waiters::Errors::WaiterFailed}.
|
|
4606
|
+
#
|
|
4607
|
+
# begin
|
|
4608
|
+
# client.wait_until(...)
|
|
4609
|
+
# rescue Aws::Waiters::Errors::WaiterFailed
|
|
4610
|
+
# # resource did not enter the desired state in time
|
|
4611
|
+
# end
|
|
4612
|
+
#
|
|
4613
|
+
# ## Valid Waiters
|
|
4614
|
+
#
|
|
4615
|
+
# The following table lists the valid waiter names, the operations they call,
|
|
4616
|
+
# and the default `:delay` and `:max_attempts` values.
|
|
4617
|
+
#
|
|
4618
|
+
# | waiter_name | params | :delay | :max_attempts |
|
|
4619
|
+
# | ----------------------------------- | -------------------------------------- | -------- | ------------- |
|
|
4620
|
+
# | call_analytics_job_completed | {Client#get_call_analytics_job} | 10 | 180 |
|
|
4621
|
+
# | language_model_completed | {Client#describe_language_model} | 120 | 180 |
|
|
4622
|
+
# | medical_scribe_job_completed | {Client#get_medical_scribe_job} | 10 | 180 |
|
|
4623
|
+
# | medical_transcription_job_completed | {Client#get_medical_transcription_job} | 10 | 180 |
|
|
4624
|
+
# | medical_vocabulary_ready | {Client#get_medical_vocabulary} | 10 | 180 |
|
|
4625
|
+
# | transcription_job_completed | {Client#get_transcription_job} | 10 | 180 |
|
|
4626
|
+
# | vocabulary_ready | {Client#get_vocabulary} | 10 | 180 |
|
|
4627
|
+
#
|
|
4628
|
+
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
|
4629
|
+
# because the waiter has entered a state that it will not transition
|
|
4630
|
+
# out of, preventing success.
|
|
4631
|
+
#
|
|
4632
|
+
# @raise [Errors::TooManyAttemptsError] Raised when the configured
|
|
4633
|
+
# maximum number of attempts have been made, and the waiter is not
|
|
4634
|
+
# yet successful.
|
|
4635
|
+
#
|
|
4636
|
+
# @raise [Errors::UnexpectedError] Raised when an error is encounted
|
|
4637
|
+
# while polling for a resource that is not expected.
|
|
4638
|
+
#
|
|
4639
|
+
# @raise [Errors::NoSuchWaiterError] Raised when you request to wait
|
|
4640
|
+
# for an unknown state.
|
|
4641
|
+
#
|
|
4642
|
+
# @return [Boolean] Returns `true` if the waiter was successful.
|
|
4643
|
+
# @param [Symbol] waiter_name
|
|
4644
|
+
# @param [Hash] params ({})
|
|
4645
|
+
# @param [Hash] options ({})
|
|
4646
|
+
# @option options [Integer] :max_attempts
|
|
4647
|
+
# @option options [Integer] :delay
|
|
4648
|
+
# @option options [Proc] :before_attempt
|
|
4649
|
+
# @option options [Proc] :before_wait
|
|
4650
|
+
def wait_until(waiter_name, params = {}, options = {})
|
|
4651
|
+
w = waiter(waiter_name, options)
|
|
4652
|
+
yield(w.waiter) if block_given? # deprecated
|
|
4653
|
+
w.wait(params)
|
|
4654
|
+
end
|
|
4655
|
+
|
|
4521
4656
|
# @api private
|
|
4522
4657
|
# @deprecated
|
|
4523
4658
|
def waiter_names
|
|
4524
|
-
|
|
4659
|
+
waiters.keys
|
|
4660
|
+
end
|
|
4661
|
+
|
|
4662
|
+
private
|
|
4663
|
+
|
|
4664
|
+
# @param [Symbol] waiter_name
|
|
4665
|
+
# @param [Hash] options ({})
|
|
4666
|
+
def waiter(waiter_name, options = {})
|
|
4667
|
+
waiter_class = waiters[waiter_name]
|
|
4668
|
+
if waiter_class
|
|
4669
|
+
waiter_class.new(options.merge(client: self))
|
|
4670
|
+
else
|
|
4671
|
+
raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
|
|
4672
|
+
end
|
|
4673
|
+
end
|
|
4674
|
+
|
|
4675
|
+
def waiters
|
|
4676
|
+
{
|
|
4677
|
+
call_analytics_job_completed: Waiters::CallAnalyticsJobCompleted,
|
|
4678
|
+
language_model_completed: Waiters::LanguageModelCompleted,
|
|
4679
|
+
medical_scribe_job_completed: Waiters::MedicalScribeJobCompleted,
|
|
4680
|
+
medical_transcription_job_completed: Waiters::MedicalTranscriptionJobCompleted,
|
|
4681
|
+
medical_vocabulary_ready: Waiters::MedicalVocabularyReady,
|
|
4682
|
+
transcription_job_completed: Waiters::TranscriptionJobCompleted,
|
|
4683
|
+
vocabulary_ready: Waiters::VocabularyReady
|
|
4684
|
+
}
|
|
4525
4685
|
end
|
|
4526
4686
|
|
|
4527
4687
|
class << self
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
require 'aws-sdk-core/waiters'
|
|
11
|
+
|
|
12
|
+
module Aws::TranscribeService
|
|
13
|
+
# Waiters are utility methods that poll for a particular state to occur
|
|
14
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
|
15
|
+
# interval defined for the service client.
|
|
16
|
+
#
|
|
17
|
+
# For a list of operations that can be waited for and the
|
|
18
|
+
# client methods called for each operation, see the table below or the
|
|
19
|
+
# {Client#wait_until} field documentation for the {Client}.
|
|
20
|
+
#
|
|
21
|
+
# # Invoking a Waiter
|
|
22
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
|
23
|
+
# is the waiter name, which is specific to the service client and indicates
|
|
24
|
+
# which operation is being waited for. The second parameter is a hash of
|
|
25
|
+
# parameters that are passed to the client method called by the waiter,
|
|
26
|
+
# which varies according to the waiter name.
|
|
27
|
+
#
|
|
28
|
+
# # Wait Failures
|
|
29
|
+
# To catch errors in a waiter, use WaiterFailed,
|
|
30
|
+
# as shown in the following example.
|
|
31
|
+
#
|
|
32
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
|
33
|
+
# puts "failed waiting for instance running: #{error.message}
|
|
34
|
+
# end
|
|
35
|
+
#
|
|
36
|
+
# # Configuring a Waiter
|
|
37
|
+
# Each waiter has a default polling interval and a maximum number of
|
|
38
|
+
# attempts it will make before returning control to your program.
|
|
39
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
|
40
|
+
# in your `#wait_until` call.
|
|
41
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
|
42
|
+
#
|
|
43
|
+
# client.wait_until(...) do |w|
|
|
44
|
+
# w.max_attempts = 5
|
|
45
|
+
# w.delay = 5
|
|
46
|
+
# end
|
|
47
|
+
#
|
|
48
|
+
# To disable wait failures, set the value of either of these parameters
|
|
49
|
+
# to `nil`.
|
|
50
|
+
#
|
|
51
|
+
# # Extending a Waiter
|
|
52
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
|
53
|
+
# triggered before each polling attempt and before waiting.
|
|
54
|
+
#
|
|
55
|
+
# The following example implements an exponential backoff in a waiter
|
|
56
|
+
# by doubling the amount of time to wait on every attempt.
|
|
57
|
+
#
|
|
58
|
+
# client.wait_until(...) do |w|
|
|
59
|
+
# w.interval = 0 # disable normal sleep
|
|
60
|
+
# w.before_wait do |n, resp|
|
|
61
|
+
# sleep(n ** 2)
|
|
62
|
+
# end
|
|
63
|
+
# end
|
|
64
|
+
#
|
|
65
|
+
# # Available Waiters
|
|
66
|
+
#
|
|
67
|
+
# The following table lists the valid waiter names, the operations they call,
|
|
68
|
+
# and the default `:delay` and `:max_attempts` values.
|
|
69
|
+
#
|
|
70
|
+
# | waiter_name | params | :delay | :max_attempts |
|
|
71
|
+
# | ----------------------------------- | -------------------------------------- | -------- | ------------- |
|
|
72
|
+
# | call_analytics_job_completed | {Client#get_call_analytics_job} | 10 | 180 |
|
|
73
|
+
# | language_model_completed | {Client#describe_language_model} | 120 | 180 |
|
|
74
|
+
# | medical_scribe_job_completed | {Client#get_medical_scribe_job} | 10 | 180 |
|
|
75
|
+
# | medical_transcription_job_completed | {Client#get_medical_transcription_job} | 10 | 180 |
|
|
76
|
+
# | medical_vocabulary_ready | {Client#get_medical_vocabulary} | 10 | 180 |
|
|
77
|
+
# | transcription_job_completed | {Client#get_transcription_job} | 10 | 180 |
|
|
78
|
+
# | vocabulary_ready | {Client#get_vocabulary} | 10 | 180 |
|
|
79
|
+
#
|
|
80
|
+
module Waiters
|
|
81
|
+
|
|
82
|
+
class CallAnalyticsJobCompleted
|
|
83
|
+
|
|
84
|
+
# @param [Hash] options
|
|
85
|
+
# @option options [required, Client] :client
|
|
86
|
+
# @option options [Integer] :max_attempts (180)
|
|
87
|
+
# @option options [Integer] :delay (10)
|
|
88
|
+
# @option options [Proc] :before_attempt
|
|
89
|
+
# @option options [Proc] :before_wait
|
|
90
|
+
def initialize(options)
|
|
91
|
+
@client = options.fetch(:client)
|
|
92
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
93
|
+
max_attempts: 180,
|
|
94
|
+
delay: 10,
|
|
95
|
+
poller: Aws::Waiters::Poller.new(
|
|
96
|
+
operation_name: :get_call_analytics_job,
|
|
97
|
+
acceptors: [
|
|
98
|
+
{
|
|
99
|
+
"state" => "success",
|
|
100
|
+
"matcher" => "path",
|
|
101
|
+
"argument" => "call_analytics_job.call_analytics_job_status",
|
|
102
|
+
"expected" => "COMPLETED"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"state" => "failure",
|
|
106
|
+
"matcher" => "path",
|
|
107
|
+
"argument" => "call_analytics_job.call_analytics_job_status",
|
|
108
|
+
"expected" => "FAILED"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
)
|
|
112
|
+
}.merge(options))
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# @option (see Client#get_call_analytics_job)
|
|
116
|
+
# @return (see Client#get_call_analytics_job)
|
|
117
|
+
def wait(params = {})
|
|
118
|
+
@waiter.wait(client: @client, params: params)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# @api private
|
|
122
|
+
attr_reader :waiter
|
|
123
|
+
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
class LanguageModelCompleted
|
|
127
|
+
|
|
128
|
+
# @param [Hash] options
|
|
129
|
+
# @option options [required, Client] :client
|
|
130
|
+
# @option options [Integer] :max_attempts (180)
|
|
131
|
+
# @option options [Integer] :delay (120)
|
|
132
|
+
# @option options [Proc] :before_attempt
|
|
133
|
+
# @option options [Proc] :before_wait
|
|
134
|
+
def initialize(options)
|
|
135
|
+
@client = options.fetch(:client)
|
|
136
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
137
|
+
max_attempts: 180,
|
|
138
|
+
delay: 120,
|
|
139
|
+
poller: Aws::Waiters::Poller.new(
|
|
140
|
+
operation_name: :describe_language_model,
|
|
141
|
+
acceptors: [
|
|
142
|
+
{
|
|
143
|
+
"state" => "success",
|
|
144
|
+
"matcher" => "path",
|
|
145
|
+
"argument" => "language_model.model_status",
|
|
146
|
+
"expected" => "COMPLETED"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"state" => "failure",
|
|
150
|
+
"matcher" => "path",
|
|
151
|
+
"argument" => "language_model.model_status",
|
|
152
|
+
"expected" => "FAILED"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
)
|
|
156
|
+
}.merge(options))
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# @option (see Client#describe_language_model)
|
|
160
|
+
# @return (see Client#describe_language_model)
|
|
161
|
+
def wait(params = {})
|
|
162
|
+
@waiter.wait(client: @client, params: params)
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# @api private
|
|
166
|
+
attr_reader :waiter
|
|
167
|
+
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
class MedicalScribeJobCompleted
|
|
171
|
+
|
|
172
|
+
# @param [Hash] options
|
|
173
|
+
# @option options [required, Client] :client
|
|
174
|
+
# @option options [Integer] :max_attempts (180)
|
|
175
|
+
# @option options [Integer] :delay (10)
|
|
176
|
+
# @option options [Proc] :before_attempt
|
|
177
|
+
# @option options [Proc] :before_wait
|
|
178
|
+
def initialize(options)
|
|
179
|
+
@client = options.fetch(:client)
|
|
180
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
181
|
+
max_attempts: 180,
|
|
182
|
+
delay: 10,
|
|
183
|
+
poller: Aws::Waiters::Poller.new(
|
|
184
|
+
operation_name: :get_medical_scribe_job,
|
|
185
|
+
acceptors: [
|
|
186
|
+
{
|
|
187
|
+
"state" => "success",
|
|
188
|
+
"matcher" => "path",
|
|
189
|
+
"argument" => "medical_scribe_job.medical_scribe_job_status",
|
|
190
|
+
"expected" => "COMPLETED"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"state" => "failure",
|
|
194
|
+
"matcher" => "path",
|
|
195
|
+
"argument" => "medical_scribe_job.medical_scribe_job_status",
|
|
196
|
+
"expected" => "FAILED"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
)
|
|
200
|
+
}.merge(options))
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# @option (see Client#get_medical_scribe_job)
|
|
204
|
+
# @return (see Client#get_medical_scribe_job)
|
|
205
|
+
def wait(params = {})
|
|
206
|
+
@waiter.wait(client: @client, params: params)
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# @api private
|
|
210
|
+
attr_reader :waiter
|
|
211
|
+
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
class MedicalTranscriptionJobCompleted
|
|
215
|
+
|
|
216
|
+
# @param [Hash] options
|
|
217
|
+
# @option options [required, Client] :client
|
|
218
|
+
# @option options [Integer] :max_attempts (180)
|
|
219
|
+
# @option options [Integer] :delay (10)
|
|
220
|
+
# @option options [Proc] :before_attempt
|
|
221
|
+
# @option options [Proc] :before_wait
|
|
222
|
+
def initialize(options)
|
|
223
|
+
@client = options.fetch(:client)
|
|
224
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
225
|
+
max_attempts: 180,
|
|
226
|
+
delay: 10,
|
|
227
|
+
poller: Aws::Waiters::Poller.new(
|
|
228
|
+
operation_name: :get_medical_transcription_job,
|
|
229
|
+
acceptors: [
|
|
230
|
+
{
|
|
231
|
+
"state" => "success",
|
|
232
|
+
"matcher" => "path",
|
|
233
|
+
"argument" => "medical_transcription_job.transcription_job_status",
|
|
234
|
+
"expected" => "COMPLETED"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"state" => "failure",
|
|
238
|
+
"matcher" => "path",
|
|
239
|
+
"argument" => "medical_transcription_job.transcription_job_status",
|
|
240
|
+
"expected" => "FAILED"
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
)
|
|
244
|
+
}.merge(options))
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# @option (see Client#get_medical_transcription_job)
|
|
248
|
+
# @return (see Client#get_medical_transcription_job)
|
|
249
|
+
def wait(params = {})
|
|
250
|
+
@waiter.wait(client: @client, params: params)
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# @api private
|
|
254
|
+
attr_reader :waiter
|
|
255
|
+
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
class MedicalVocabularyReady
|
|
259
|
+
|
|
260
|
+
# @param [Hash] options
|
|
261
|
+
# @option options [required, Client] :client
|
|
262
|
+
# @option options [Integer] :max_attempts (180)
|
|
263
|
+
# @option options [Integer] :delay (10)
|
|
264
|
+
# @option options [Proc] :before_attempt
|
|
265
|
+
# @option options [Proc] :before_wait
|
|
266
|
+
def initialize(options)
|
|
267
|
+
@client = options.fetch(:client)
|
|
268
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
269
|
+
max_attempts: 180,
|
|
270
|
+
delay: 10,
|
|
271
|
+
poller: Aws::Waiters::Poller.new(
|
|
272
|
+
operation_name: :get_medical_vocabulary,
|
|
273
|
+
acceptors: [
|
|
274
|
+
{
|
|
275
|
+
"state" => "success",
|
|
276
|
+
"matcher" => "path",
|
|
277
|
+
"argument" => "vocabulary_state",
|
|
278
|
+
"expected" => "READY"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"state" => "failure",
|
|
282
|
+
"matcher" => "path",
|
|
283
|
+
"argument" => "vocabulary_state",
|
|
284
|
+
"expected" => "FAILED"
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
)
|
|
288
|
+
}.merge(options))
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# @option (see Client#get_medical_vocabulary)
|
|
292
|
+
# @return (see Client#get_medical_vocabulary)
|
|
293
|
+
def wait(params = {})
|
|
294
|
+
@waiter.wait(client: @client, params: params)
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# @api private
|
|
298
|
+
attr_reader :waiter
|
|
299
|
+
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
class TranscriptionJobCompleted
|
|
303
|
+
|
|
304
|
+
# @param [Hash] options
|
|
305
|
+
# @option options [required, Client] :client
|
|
306
|
+
# @option options [Integer] :max_attempts (180)
|
|
307
|
+
# @option options [Integer] :delay (10)
|
|
308
|
+
# @option options [Proc] :before_attempt
|
|
309
|
+
# @option options [Proc] :before_wait
|
|
310
|
+
def initialize(options)
|
|
311
|
+
@client = options.fetch(:client)
|
|
312
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
313
|
+
max_attempts: 180,
|
|
314
|
+
delay: 10,
|
|
315
|
+
poller: Aws::Waiters::Poller.new(
|
|
316
|
+
operation_name: :get_transcription_job,
|
|
317
|
+
acceptors: [
|
|
318
|
+
{
|
|
319
|
+
"state" => "success",
|
|
320
|
+
"matcher" => "path",
|
|
321
|
+
"argument" => "transcription_job.transcription_job_status",
|
|
322
|
+
"expected" => "COMPLETED"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"state" => "failure",
|
|
326
|
+
"matcher" => "path",
|
|
327
|
+
"argument" => "transcription_job.transcription_job_status",
|
|
328
|
+
"expected" => "FAILED"
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
)
|
|
332
|
+
}.merge(options))
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# @option (see Client#get_transcription_job)
|
|
336
|
+
# @return (see Client#get_transcription_job)
|
|
337
|
+
def wait(params = {})
|
|
338
|
+
@waiter.wait(client: @client, params: params)
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# @api private
|
|
342
|
+
attr_reader :waiter
|
|
343
|
+
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
class VocabularyReady
|
|
347
|
+
|
|
348
|
+
# @param [Hash] options
|
|
349
|
+
# @option options [required, Client] :client
|
|
350
|
+
# @option options [Integer] :max_attempts (180)
|
|
351
|
+
# @option options [Integer] :delay (10)
|
|
352
|
+
# @option options [Proc] :before_attempt
|
|
353
|
+
# @option options [Proc] :before_wait
|
|
354
|
+
def initialize(options)
|
|
355
|
+
@client = options.fetch(:client)
|
|
356
|
+
@waiter = Aws::Waiters::Waiter.new({
|
|
357
|
+
max_attempts: 180,
|
|
358
|
+
delay: 10,
|
|
359
|
+
poller: Aws::Waiters::Poller.new(
|
|
360
|
+
operation_name: :get_vocabulary,
|
|
361
|
+
acceptors: [
|
|
362
|
+
{
|
|
363
|
+
"state" => "success",
|
|
364
|
+
"matcher" => "path",
|
|
365
|
+
"argument" => "vocabulary_state",
|
|
366
|
+
"expected" => "READY"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"state" => "failure",
|
|
370
|
+
"matcher" => "path",
|
|
371
|
+
"argument" => "vocabulary_state",
|
|
372
|
+
"expected" => "FAILED"
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
)
|
|
376
|
+
}.merge(options))
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# @option (see Client#get_vocabulary)
|
|
380
|
+
# @return (see Client#get_vocabulary)
|
|
381
|
+
def wait(params = {})
|
|
382
|
+
@waiter.wait(client: @client, params: params)
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# @api private
|
|
386
|
+
attr_reader :waiter
|
|
387
|
+
|
|
388
|
+
end
|
|
389
|
+
end
|
|
390
|
+
end
|
|
@@ -49,12 +49,13 @@ module Aws::TranscribeService
|
|
|
49
49
|
end
|
|
50
50
|
autoload :Client, 'aws-sdk-transcribeservice/client'
|
|
51
51
|
autoload :Errors, 'aws-sdk-transcribeservice/errors'
|
|
52
|
+
autoload :Waiters, 'aws-sdk-transcribeservice/waiters'
|
|
52
53
|
autoload :Resource, 'aws-sdk-transcribeservice/resource'
|
|
53
54
|
autoload :EndpointParameters, 'aws-sdk-transcribeservice/endpoint_parameters'
|
|
54
55
|
autoload :EndpointProvider, 'aws-sdk-transcribeservice/endpoint_provider'
|
|
55
56
|
autoload :Endpoints, 'aws-sdk-transcribeservice/endpoints'
|
|
56
57
|
|
|
57
|
-
GEM_VERSION = '1.
|
|
58
|
+
GEM_VERSION = '1.135.0'
|
|
58
59
|
|
|
59
60
|
end
|
|
60
61
|
|
data/sig/client.rbs
CHANGED
|
@@ -919,6 +919,36 @@ module Aws
|
|
|
919
919
|
?data_access_role_arn: ::String
|
|
920
920
|
) -> _UpdateVocabularyFilterResponseSuccess
|
|
921
921
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateVocabularyFilterResponseSuccess
|
|
922
|
+
|
|
923
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/TranscribeService/Client.html#wait_until-instance_method
|
|
924
|
+
def wait_until: (:call_analytics_job_completed waiter_name,
|
|
925
|
+
call_analytics_job_name: ::String
|
|
926
|
+
) -> Client::_GetCallAnalyticsJobResponseSuccess
|
|
927
|
+
| (:call_analytics_job_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetCallAnalyticsJobResponseSuccess
|
|
928
|
+
| (:language_model_completed waiter_name,
|
|
929
|
+
model_name: ::String
|
|
930
|
+
) -> Client::_DescribeLanguageModelResponseSuccess
|
|
931
|
+
| (:language_model_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeLanguageModelResponseSuccess
|
|
932
|
+
| (:medical_scribe_job_completed waiter_name,
|
|
933
|
+
medical_scribe_job_name: ::String
|
|
934
|
+
) -> Client::_GetMedicalScribeJobResponseSuccess
|
|
935
|
+
| (:medical_scribe_job_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetMedicalScribeJobResponseSuccess
|
|
936
|
+
| (:medical_transcription_job_completed waiter_name,
|
|
937
|
+
medical_transcription_job_name: ::String
|
|
938
|
+
) -> Client::_GetMedicalTranscriptionJobResponseSuccess
|
|
939
|
+
| (:medical_transcription_job_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetMedicalTranscriptionJobResponseSuccess
|
|
940
|
+
| (:medical_vocabulary_ready waiter_name,
|
|
941
|
+
vocabulary_name: ::String
|
|
942
|
+
) -> Client::_GetMedicalVocabularyResponseSuccess
|
|
943
|
+
| (:medical_vocabulary_ready waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetMedicalVocabularyResponseSuccess
|
|
944
|
+
| (:transcription_job_completed waiter_name,
|
|
945
|
+
transcription_job_name: ::String
|
|
946
|
+
) -> Client::_GetTranscriptionJobResponseSuccess
|
|
947
|
+
| (:transcription_job_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetTranscriptionJobResponseSuccess
|
|
948
|
+
| (:vocabulary_ready waiter_name,
|
|
949
|
+
vocabulary_name: ::String
|
|
950
|
+
) -> Client::_GetVocabularyResponseSuccess
|
|
951
|
+
| (:vocabulary_ready waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetVocabularyResponseSuccess
|
|
922
952
|
end
|
|
923
953
|
end
|
|
924
954
|
end
|
data/sig/waiters.rbs
CHANGED
|
@@ -8,6 +8,76 @@
|
|
|
8
8
|
module Aws
|
|
9
9
|
module TranscribeService
|
|
10
10
|
module Waiters
|
|
11
|
+
|
|
12
|
+
class CallAnalyticsJobCompleted
|
|
13
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
14
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
15
|
+
|
|
16
|
+
def wait: (
|
|
17
|
+
call_analytics_job_name: ::String
|
|
18
|
+
) -> Client::_GetCallAnalyticsJobResponseSuccess
|
|
19
|
+
| (Hash[Symbol, untyped]) -> Client::_GetCallAnalyticsJobResponseSuccess
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
class LanguageModelCompleted
|
|
23
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
24
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
25
|
+
|
|
26
|
+
def wait: (
|
|
27
|
+
model_name: ::String
|
|
28
|
+
) -> Client::_DescribeLanguageModelResponseSuccess
|
|
29
|
+
| (Hash[Symbol, untyped]) -> Client::_DescribeLanguageModelResponseSuccess
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
class MedicalScribeJobCompleted
|
|
33
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
34
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
35
|
+
|
|
36
|
+
def wait: (
|
|
37
|
+
medical_scribe_job_name: ::String
|
|
38
|
+
) -> Client::_GetMedicalScribeJobResponseSuccess
|
|
39
|
+
| (Hash[Symbol, untyped]) -> Client::_GetMedicalScribeJobResponseSuccess
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
class MedicalTranscriptionJobCompleted
|
|
43
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
44
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
45
|
+
|
|
46
|
+
def wait: (
|
|
47
|
+
medical_transcription_job_name: ::String
|
|
48
|
+
) -> Client::_GetMedicalTranscriptionJobResponseSuccess
|
|
49
|
+
| (Hash[Symbol, untyped]) -> Client::_GetMedicalTranscriptionJobResponseSuccess
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
class MedicalVocabularyReady
|
|
53
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
54
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
55
|
+
|
|
56
|
+
def wait: (
|
|
57
|
+
vocabulary_name: ::String
|
|
58
|
+
) -> Client::_GetMedicalVocabularyResponseSuccess
|
|
59
|
+
| (Hash[Symbol, untyped]) -> Client::_GetMedicalVocabularyResponseSuccess
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
class TranscriptionJobCompleted
|
|
63
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
64
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
65
|
+
|
|
66
|
+
def wait: (
|
|
67
|
+
transcription_job_name: ::String
|
|
68
|
+
) -> Client::_GetTranscriptionJobResponseSuccess
|
|
69
|
+
| (Hash[Symbol, untyped]) -> Client::_GetTranscriptionJobResponseSuccess
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
class VocabularyReady
|
|
73
|
+
def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
|
|
74
|
+
| (?Hash[Symbol, untyped]) -> void
|
|
75
|
+
|
|
76
|
+
def wait: (
|
|
77
|
+
vocabulary_name: ::String
|
|
78
|
+
) -> Client::_GetVocabularyResponseSuccess
|
|
79
|
+
| (Hash[Symbol, untyped]) -> Client::_GetVocabularyResponseSuccess
|
|
80
|
+
end
|
|
11
81
|
end
|
|
12
82
|
end
|
|
13
83
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-transcribeservice
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.135.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -65,6 +65,7 @@ files:
|
|
|
65
65
|
- lib/aws-sdk-transcribeservice/plugins/endpoints.rb
|
|
66
66
|
- lib/aws-sdk-transcribeservice/resource.rb
|
|
67
67
|
- lib/aws-sdk-transcribeservice/types.rb
|
|
68
|
+
- lib/aws-sdk-transcribeservice/waiters.rb
|
|
68
69
|
- sig/client.rbs
|
|
69
70
|
- sig/errors.rbs
|
|
70
71
|
- sig/resource.rbs
|