aws-sdk-transcribeservice 1.39.0 → 1.44.1

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.
@@ -15,6 +15,8 @@ module Aws::TranscribeService
15
15
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
16
16
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
17
17
  ContentRedaction = Shapes::StructureShape.new(name: 'ContentRedaction')
18
+ CreateMedicalVocabularyRequest = Shapes::StructureShape.new(name: 'CreateMedicalVocabularyRequest')
19
+ CreateMedicalVocabularyResponse = Shapes::StructureShape.new(name: 'CreateMedicalVocabularyResponse')
18
20
  CreateVocabularyFilterRequest = Shapes::StructureShape.new(name: 'CreateVocabularyFilterRequest')
19
21
  CreateVocabularyFilterResponse = Shapes::StructureShape.new(name: 'CreateVocabularyFilterResponse')
20
22
  CreateVocabularyRequest = Shapes::StructureShape.new(name: 'CreateVocabularyRequest')
@@ -22,12 +24,15 @@ module Aws::TranscribeService
22
24
  DataAccessRoleArn = Shapes::StringShape.new(name: 'DataAccessRoleArn')
23
25
  DateTime = Shapes::TimestampShape.new(name: 'DateTime')
24
26
  DeleteMedicalTranscriptionJobRequest = Shapes::StructureShape.new(name: 'DeleteMedicalTranscriptionJobRequest')
27
+ DeleteMedicalVocabularyRequest = Shapes::StructureShape.new(name: 'DeleteMedicalVocabularyRequest')
25
28
  DeleteTranscriptionJobRequest = Shapes::StructureShape.new(name: 'DeleteTranscriptionJobRequest')
26
29
  DeleteVocabularyFilterRequest = Shapes::StructureShape.new(name: 'DeleteVocabularyFilterRequest')
27
30
  DeleteVocabularyRequest = Shapes::StructureShape.new(name: 'DeleteVocabularyRequest')
28
31
  FailureReason = Shapes::StringShape.new(name: 'FailureReason')
29
32
  GetMedicalTranscriptionJobRequest = Shapes::StructureShape.new(name: 'GetMedicalTranscriptionJobRequest')
30
33
  GetMedicalTranscriptionJobResponse = Shapes::StructureShape.new(name: 'GetMedicalTranscriptionJobResponse')
34
+ GetMedicalVocabularyRequest = Shapes::StructureShape.new(name: 'GetMedicalVocabularyRequest')
35
+ GetMedicalVocabularyResponse = Shapes::StructureShape.new(name: 'GetMedicalVocabularyResponse')
31
36
  GetTranscriptionJobRequest = Shapes::StructureShape.new(name: 'GetTranscriptionJobRequest')
32
37
  GetTranscriptionJobResponse = Shapes::StructureShape.new(name: 'GetTranscriptionJobResponse')
33
38
  GetVocabularyFilterRequest = Shapes::StructureShape.new(name: 'GetVocabularyFilterRequest')
@@ -41,6 +46,8 @@ module Aws::TranscribeService
41
46
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
42
47
  ListMedicalTranscriptionJobsRequest = Shapes::StructureShape.new(name: 'ListMedicalTranscriptionJobsRequest')
43
48
  ListMedicalTranscriptionJobsResponse = Shapes::StructureShape.new(name: 'ListMedicalTranscriptionJobsResponse')
49
+ ListMedicalVocabulariesRequest = Shapes::StructureShape.new(name: 'ListMedicalVocabulariesRequest')
50
+ ListMedicalVocabulariesResponse = Shapes::StructureShape.new(name: 'ListMedicalVocabulariesResponse')
44
51
  ListTranscriptionJobsRequest = Shapes::StructureShape.new(name: 'ListTranscriptionJobsRequest')
45
52
  ListTranscriptionJobsResponse = Shapes::StructureShape.new(name: 'ListTranscriptionJobsResponse')
46
53
  ListVocabulariesRequest = Shapes::StructureShape.new(name: 'ListVocabulariesRequest')
@@ -80,6 +87,8 @@ module Aws::TranscribeService
80
87
  TranscriptionJobSummaries = Shapes::ListShape.new(name: 'TranscriptionJobSummaries')
81
88
  TranscriptionJobSummary = Shapes::StructureShape.new(name: 'TranscriptionJobSummary')
82
89
  Type = Shapes::StringShape.new(name: 'Type')
90
+ UpdateMedicalVocabularyRequest = Shapes::StructureShape.new(name: 'UpdateMedicalVocabularyRequest')
91
+ UpdateMedicalVocabularyResponse = Shapes::StructureShape.new(name: 'UpdateMedicalVocabularyResponse')
83
92
  UpdateVocabularyFilterRequest = Shapes::StructureShape.new(name: 'UpdateVocabularyFilterRequest')
84
93
  UpdateVocabularyFilterResponse = Shapes::StructureShape.new(name: 'UpdateVocabularyFilterResponse')
85
94
  UpdateVocabularyRequest = Shapes::StructureShape.new(name: 'UpdateVocabularyRequest')
@@ -106,6 +115,18 @@ module Aws::TranscribeService
106
115
  ContentRedaction.add_member(:redaction_output, Shapes::ShapeRef.new(shape: RedactionOutput, required: true, location_name: "RedactionOutput"))
107
116
  ContentRedaction.struct_class = Types::ContentRedaction
108
117
 
118
+ CreateMedicalVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
119
+ CreateMedicalVocabularyRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
120
+ CreateMedicalVocabularyRequest.add_member(:vocabulary_file_uri, Shapes::ShapeRef.new(shape: Uri, required: true, location_name: "VocabularyFileUri"))
121
+ CreateMedicalVocabularyRequest.struct_class = Types::CreateMedicalVocabularyRequest
122
+
123
+ CreateMedicalVocabularyResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
124
+ CreateMedicalVocabularyResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
125
+ CreateMedicalVocabularyResponse.add_member(:vocabulary_state, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "VocabularyState"))
126
+ CreateMedicalVocabularyResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
127
+ CreateMedicalVocabularyResponse.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason"))
128
+ CreateMedicalVocabularyResponse.struct_class = Types::CreateMedicalVocabularyResponse
129
+
109
130
  CreateVocabularyFilterRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, required: true, location_name: "VocabularyFilterName"))
110
131
  CreateVocabularyFilterRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
111
132
  CreateVocabularyFilterRequest.add_member(:words, Shapes::ShapeRef.new(shape: Words, location_name: "Words"))
@@ -133,6 +154,9 @@ module Aws::TranscribeService
133
154
  DeleteMedicalTranscriptionJobRequest.add_member(:medical_transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "MedicalTranscriptionJobName"))
134
155
  DeleteMedicalTranscriptionJobRequest.struct_class = Types::DeleteMedicalTranscriptionJobRequest
135
156
 
157
+ DeleteMedicalVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
158
+ DeleteMedicalVocabularyRequest.struct_class = Types::DeleteMedicalVocabularyRequest
159
+
136
160
  DeleteTranscriptionJobRequest.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "TranscriptionJobName"))
137
161
  DeleteTranscriptionJobRequest.struct_class = Types::DeleteTranscriptionJobRequest
138
162
 
@@ -148,6 +172,17 @@ module Aws::TranscribeService
148
172
  GetMedicalTranscriptionJobResponse.add_member(:medical_transcription_job, Shapes::ShapeRef.new(shape: MedicalTranscriptionJob, location_name: "MedicalTranscriptionJob"))
149
173
  GetMedicalTranscriptionJobResponse.struct_class = Types::GetMedicalTranscriptionJobResponse
150
174
 
175
+ GetMedicalVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
176
+ GetMedicalVocabularyRequest.struct_class = Types::GetMedicalVocabularyRequest
177
+
178
+ GetMedicalVocabularyResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
179
+ GetMedicalVocabularyResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
180
+ GetMedicalVocabularyResponse.add_member(:vocabulary_state, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "VocabularyState"))
181
+ GetMedicalVocabularyResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
182
+ GetMedicalVocabularyResponse.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason"))
183
+ GetMedicalVocabularyResponse.add_member(:download_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "DownloadUri"))
184
+ GetMedicalVocabularyResponse.struct_class = Types::GetMedicalVocabularyResponse
185
+
151
186
  GetTranscriptionJobRequest.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "TranscriptionJobName"))
152
187
  GetTranscriptionJobRequest.struct_class = Types::GetTranscriptionJobRequest
153
188
 
@@ -195,6 +230,17 @@ module Aws::TranscribeService
195
230
  ListMedicalTranscriptionJobsResponse.add_member(:medical_transcription_job_summaries, Shapes::ShapeRef.new(shape: MedicalTranscriptionJobSummaries, location_name: "MedicalTranscriptionJobSummaries"))
196
231
  ListMedicalTranscriptionJobsResponse.struct_class = Types::ListMedicalTranscriptionJobsResponse
197
232
 
233
+ ListMedicalVocabulariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
234
+ ListMedicalVocabulariesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
235
+ ListMedicalVocabulariesRequest.add_member(:state_equals, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "StateEquals"))
236
+ ListMedicalVocabulariesRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "NameContains"))
237
+ ListMedicalVocabulariesRequest.struct_class = Types::ListMedicalVocabulariesRequest
238
+
239
+ ListMedicalVocabulariesResponse.add_member(:status, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "Status"))
240
+ ListMedicalVocabulariesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
241
+ ListMedicalVocabulariesResponse.add_member(:vocabularies, Shapes::ShapeRef.new(shape: Vocabularies, location_name: "Vocabularies"))
242
+ ListMedicalVocabulariesResponse.struct_class = Types::ListMedicalVocabulariesResponse
243
+
198
244
  ListTranscriptionJobsRequest.add_member(:status, Shapes::ShapeRef.new(shape: TranscriptionJobStatus, location_name: "Status"))
199
245
  ListTranscriptionJobsRequest.add_member(:job_name_contains, Shapes::ShapeRef.new(shape: TranscriptionJobName, location_name: "JobNameContains"))
200
246
  ListTranscriptionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
@@ -212,7 +258,7 @@ module Aws::TranscribeService
212
258
  ListVocabulariesRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "NameContains"))
213
259
  ListVocabulariesRequest.struct_class = Types::ListVocabulariesRequest
214
260
 
215
- ListVocabulariesResponse.add_member(:status, Shapes::ShapeRef.new(shape: TranscriptionJobStatus, location_name: "Status"))
261
+ ListVocabulariesResponse.add_member(:status, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "Status"))
216
262
  ListVocabulariesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
217
263
  ListVocabulariesResponse.add_member(:vocabularies, Shapes::ShapeRef.new(shape: Vocabularies, location_name: "Vocabularies"))
218
264
  ListVocabulariesResponse.struct_class = Types::ListVocabulariesResponse
@@ -267,6 +313,7 @@ module Aws::TranscribeService
267
313
  MedicalTranscriptionSetting.add_member(:channel_identification, Shapes::ShapeRef.new(shape: Boolean, location_name: "ChannelIdentification"))
268
314
  MedicalTranscriptionSetting.add_member(:show_alternatives, Shapes::ShapeRef.new(shape: Boolean, location_name: "ShowAlternatives"))
269
315
  MedicalTranscriptionSetting.add_member(:max_alternatives, Shapes::ShapeRef.new(shape: MaxAlternatives, location_name: "MaxAlternatives"))
316
+ MedicalTranscriptionSetting.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
270
317
  MedicalTranscriptionSetting.struct_class = Types::MedicalTranscriptionSetting
271
318
 
272
319
  NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
@@ -347,6 +394,17 @@ module Aws::TranscribeService
347
394
  TranscriptionJobSummary.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
348
395
  TranscriptionJobSummary.struct_class = Types::TranscriptionJobSummary
349
396
 
397
+ UpdateMedicalVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
398
+ UpdateMedicalVocabularyRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
399
+ UpdateMedicalVocabularyRequest.add_member(:vocabulary_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "VocabularyFileUri"))
400
+ UpdateMedicalVocabularyRequest.struct_class = Types::UpdateMedicalVocabularyRequest
401
+
402
+ UpdateMedicalVocabularyResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
403
+ UpdateMedicalVocabularyResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
404
+ UpdateMedicalVocabularyResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
405
+ UpdateMedicalVocabularyResponse.add_member(:vocabulary_state, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "VocabularyState"))
406
+ UpdateMedicalVocabularyResponse.struct_class = Types::UpdateMedicalVocabularyResponse
407
+
350
408
  UpdateVocabularyFilterRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, required: true, location_name: "VocabularyFilterName"))
351
409
  UpdateVocabularyFilterRequest.add_member(:words, Shapes::ShapeRef.new(shape: Words, location_name: "Words"))
352
410
  UpdateVocabularyFilterRequest.add_member(:vocabulary_filter_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "VocabularyFilterFileUri"))
@@ -405,6 +463,18 @@ module Aws::TranscribeService
405
463
  "uid" => "transcribe-2017-10-26",
406
464
  }
407
465
 
466
+ api.add_operation(:create_medical_vocabulary, Seahorse::Model::Operation.new.tap do |o|
467
+ o.name = "CreateMedicalVocabulary"
468
+ o.http_method = "POST"
469
+ o.http_request_uri = "/"
470
+ o.input = Shapes::ShapeRef.new(shape: CreateMedicalVocabularyRequest)
471
+ o.output = Shapes::ShapeRef.new(shape: CreateMedicalVocabularyResponse)
472
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
473
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
474
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
475
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
476
+ end)
477
+
408
478
  api.add_operation(:create_vocabulary, Seahorse::Model::Operation.new.tap do |o|
409
479
  o.name = "CreateVocabulary"
410
480
  o.http_method = "POST"
@@ -440,6 +510,18 @@ module Aws::TranscribeService
440
510
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
441
511
  end)
442
512
 
513
+ api.add_operation(:delete_medical_vocabulary, Seahorse::Model::Operation.new.tap do |o|
514
+ o.name = "DeleteMedicalVocabulary"
515
+ o.http_method = "POST"
516
+ o.http_request_uri = "/"
517
+ o.input = Shapes::ShapeRef.new(shape: DeleteMedicalVocabularyRequest)
518
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
519
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
520
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
521
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
522
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
523
+ end)
524
+
443
525
  api.add_operation(:delete_transcription_job, Seahorse::Model::Operation.new.tap do |o|
444
526
  o.name = "DeleteTranscriptionJob"
445
527
  o.http_method = "POST"
@@ -487,6 +569,18 @@ module Aws::TranscribeService
487
569
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
488
570
  end)
489
571
 
572
+ api.add_operation(:get_medical_vocabulary, Seahorse::Model::Operation.new.tap do |o|
573
+ o.name = "GetMedicalVocabulary"
574
+ o.http_method = "POST"
575
+ o.http_request_uri = "/"
576
+ o.input = Shapes::ShapeRef.new(shape: GetMedicalVocabularyRequest)
577
+ o.output = Shapes::ShapeRef.new(shape: GetMedicalVocabularyResponse)
578
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
579
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
580
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
581
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
582
+ end)
583
+
490
584
  api.add_operation(:get_transcription_job, Seahorse::Model::Operation.new.tap do |o|
491
585
  o.name = "GetTranscriptionJob"
492
586
  o.http_method = "POST"
@@ -540,6 +634,23 @@ module Aws::TranscribeService
540
634
  )
541
635
  end)
542
636
 
637
+ api.add_operation(:list_medical_vocabularies, Seahorse::Model::Operation.new.tap do |o|
638
+ o.name = "ListMedicalVocabularies"
639
+ o.http_method = "POST"
640
+ o.http_request_uri = "/"
641
+ o.input = Shapes::ShapeRef.new(shape: ListMedicalVocabulariesRequest)
642
+ o.output = Shapes::ShapeRef.new(shape: ListMedicalVocabulariesResponse)
643
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
644
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
645
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
646
+ o[:pager] = Aws::Pager.new(
647
+ limit_key: "max_results",
648
+ tokens: {
649
+ "next_token" => "next_token"
650
+ }
651
+ )
652
+ end)
653
+
543
654
  api.add_operation(:list_transcription_jobs, Seahorse::Model::Operation.new.tap do |o|
544
655
  o.name = "ListTranscriptionJobs"
545
656
  o.http_method = "POST"
@@ -615,6 +726,19 @@ module Aws::TranscribeService
615
726
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
616
727
  end)
617
728
 
729
+ api.add_operation(:update_medical_vocabulary, Seahorse::Model::Operation.new.tap do |o|
730
+ o.name = "UpdateMedicalVocabulary"
731
+ o.http_method = "POST"
732
+ o.http_request_uri = "/"
733
+ o.input = Shapes::ShapeRef.new(shape: UpdateMedicalVocabularyRequest)
734
+ o.output = Shapes::ShapeRef.new(shape: UpdateMedicalVocabularyResponse)
735
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
736
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
737
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
738
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
739
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
740
+ end)
741
+
618
742
  api.add_operation(:update_vocabulary, Seahorse::Model::Operation.new.tap do |o|
619
743
  o.name = "UpdateVocabulary"
620
744
  o.http_method = "POST"
@@ -23,12 +23,7 @@ module Aws::TranscribeService
23
23
  include Aws::Structure
24
24
  end
25
25
 
26
- # When you are using the `CreateVocabulary` operation, the `JobName`
27
- # field is a duplicate of a previously entered job name. Resend your
28
- # request with a different name.
29
- #
30
- # When you are using the `UpdateVocabulary` operation, there are two
31
- # jobs running at the same time. Resend the second request later.
26
+ # The resource name already exists.
32
27
  #
33
28
  # @!attribute [rw] message
34
29
  # @return [String]
@@ -74,6 +69,101 @@ module Aws::TranscribeService
74
69
  include Aws::Structure
75
70
  end
76
71
 
72
+ # @note When making an API call, you may pass CreateMedicalVocabularyRequest
73
+ # data as a hash:
74
+ #
75
+ # {
76
+ # vocabulary_name: "VocabularyName", # required
77
+ # language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
78
+ # vocabulary_file_uri: "Uri", # required
79
+ # }
80
+ #
81
+ # @!attribute [rw] vocabulary_name
82
+ # The name of the custom vocabulary. This case-sensitive name must be
83
+ # unique within an AWS account. If you try to create a vocabulary with
84
+ # the same name as a previous vocabulary you will receive a
85
+ # `ConflictException` error.
86
+ # @return [String]
87
+ #
88
+ # @!attribute [rw] language_code
89
+ # The language code used for the entries within your custom
90
+ # vocabulary. The language code of your custom vocabulary must match
91
+ # the language code of your transcription job. US English (en-US) is
92
+ # the only language code available for Amazon Transcribe Medical.
93
+ # @return [String]
94
+ #
95
+ # @!attribute [rw] vocabulary_file_uri
96
+ # The Amazon S3 location of the text file you use to define your
97
+ # custom vocabulary. The URI must be in the same AWS region as the API
98
+ # endpoint you're calling. Enter information about your
99
+ # `VocabularyFileUri` in the following format:
100
+ #
101
+ # `
102
+ # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
103
+ # `
104
+ #
105
+ # This is an example of a vocabulary file uri location in Amazon S3:
106
+ #
107
+ # `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
108
+ #
109
+ # For more information about S3 object names, see [Object Keys][1] in
110
+ # the *Amazon S3 Developer Guide*.
111
+ #
112
+ # For more information about custom vocabularies, see [Medical Custom
113
+ # Vocabularies][2].
114
+ #
115
+ #
116
+ #
117
+ # [1]: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys
118
+ # [2]: http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary-med
119
+ # @return [String]
120
+ #
121
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateMedicalVocabularyRequest AWS API Documentation
122
+ #
123
+ class CreateMedicalVocabularyRequest < Struct.new(
124
+ :vocabulary_name,
125
+ :language_code,
126
+ :vocabulary_file_uri)
127
+ include Aws::Structure
128
+ end
129
+
130
+ # @!attribute [rw] vocabulary_name
131
+ # The name of the vocabulary. The name must be unique within an AWS
132
+ # account. It is also case-sensitive.
133
+ # @return [String]
134
+ #
135
+ # @!attribute [rw] language_code
136
+ # The language code you chose to describe the entries in your custom
137
+ # vocabulary. US English (en-US) is the only valid language code for
138
+ # Amazon Transcribe Medical.
139
+ # @return [String]
140
+ #
141
+ # @!attribute [rw] vocabulary_state
142
+ # The processing state of your custom vocabulary in Amazon Transcribe
143
+ # Medical. If the state is `READY` you can use the vocabulary in a
144
+ # `StartMedicalTranscriptionJob` request.
145
+ # @return [String]
146
+ #
147
+ # @!attribute [rw] last_modified_time
148
+ # The date and time you created the vocabulary.
149
+ # @return [Time]
150
+ #
151
+ # @!attribute [rw] failure_reason
152
+ # If the `VocabularyState` field is `FAILED`, this field contains
153
+ # information about why the job failed.
154
+ # @return [String]
155
+ #
156
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateMedicalVocabularyResponse AWS API Documentation
157
+ #
158
+ class CreateMedicalVocabularyResponse < Struct.new(
159
+ :vocabulary_name,
160
+ :language_code,
161
+ :vocabulary_state,
162
+ :last_modified_time,
163
+ :failure_reason)
164
+ include Aws::Structure
165
+ end
166
+
77
167
  # @note When making an API call, you may pass CreateVocabularyFilterRequest
78
168
  # data as a hash:
79
169
  #
@@ -86,7 +176,9 @@ module Aws::TranscribeService
86
176
  #
87
177
  # @!attribute [rw] vocabulary_filter_name
88
178
  # The vocabulary filter name. The name must be unique within the
89
- # account that contains it.
179
+ # account that contains it.If you try to create a vocabulary filter
180
+ # with the same name as a previous vocabulary filter you will receive
181
+ # a `ConflictException` error.
90
182
  # @return [String]
91
183
  #
92
184
  # @!attribute [rw] language_code
@@ -168,7 +260,9 @@ module Aws::TranscribeService
168
260
  #
169
261
  # @!attribute [rw] vocabulary_name
170
262
  # The name of the vocabulary. The name must be unique within an AWS
171
- # account. The name is case-sensitive.
263
+ # account. The name is case-sensitive. If you try to create a
264
+ # vocabulary with the same name as a previous vocabulary you will
265
+ # receive a `ConflictException` error.
172
266
  # @return [String]
173
267
  #
174
268
  # @!attribute [rw] language_code
@@ -184,14 +278,6 @@ module Aws::TranscribeService
184
278
  # custom vocabulary. The URI must be in the same region as the API
185
279
  # endpoint that you are calling. The general form is
186
280
  #
187
- # `
188
- # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
189
- # `
190
- #
191
- # For example:
192
- #
193
- # `https://s3.us-east-1.amazonaws.com/examplebucket/vocab.txt`
194
- #
195
281
  # For more information about S3 object names, see [Object Keys][1] in
196
282
  # the *Amazon S3 Developer Guide*.
197
283
  #
@@ -267,6 +353,24 @@ module Aws::TranscribeService
267
353
  include Aws::Structure
268
354
  end
269
355
 
356
+ # @note When making an API call, you may pass DeleteMedicalVocabularyRequest
357
+ # data as a hash:
358
+ #
359
+ # {
360
+ # vocabulary_name: "VocabularyName", # required
361
+ # }
362
+ #
363
+ # @!attribute [rw] vocabulary_name
364
+ # The name of the vocabulary you are choosing to delete.
365
+ # @return [String]
366
+ #
367
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalVocabularyRequest AWS API Documentation
368
+ #
369
+ class DeleteMedicalVocabularyRequest < Struct.new(
370
+ :vocabulary_name)
371
+ include Aws::Structure
372
+ end
373
+
270
374
  # @note When making an API call, you may pass DeleteTranscriptionJobRequest
271
375
  # data as a hash:
272
376
  #
@@ -351,6 +455,65 @@ module Aws::TranscribeService
351
455
  include Aws::Structure
352
456
  end
353
457
 
458
+ # @note When making an API call, you may pass GetMedicalVocabularyRequest
459
+ # data as a hash:
460
+ #
461
+ # {
462
+ # vocabulary_name: "VocabularyName", # required
463
+ # }
464
+ #
465
+ # @!attribute [rw] vocabulary_name
466
+ # The name of the vocabulary you are trying to get information about.
467
+ # The value you enter for this request is case-sensitive.
468
+ # @return [String]
469
+ #
470
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabularyRequest AWS API Documentation
471
+ #
472
+ class GetMedicalVocabularyRequest < Struct.new(
473
+ :vocabulary_name)
474
+ include Aws::Structure
475
+ end
476
+
477
+ # @!attribute [rw] vocabulary_name
478
+ # The valid name that Amazon Transcribe Medical returns.
479
+ # @return [String]
480
+ #
481
+ # @!attribute [rw] language_code
482
+ # The valid language code returned for your vocabulary entries.
483
+ # @return [String]
484
+ #
485
+ # @!attribute [rw] vocabulary_state
486
+ # The processing state of the vocabulary.
487
+ # @return [String]
488
+ #
489
+ # @!attribute [rw] last_modified_time
490
+ # The date and time the vocabulary was last modified with a text file
491
+ # different from what was previously used.
492
+ # @return [Time]
493
+ #
494
+ # @!attribute [rw] failure_reason
495
+ # If the `VocabularyState` is `FAILED`, this field contains
496
+ # information about why the job failed.
497
+ # @return [String]
498
+ #
499
+ # @!attribute [rw] download_uri
500
+ # The Amazon S3 location where the vocabulary is stored. Use this URI
501
+ # to get the contents of the vocabulary. You can download your
502
+ # vocabulary from the URI for a limited time.
503
+ # @return [String]
504
+ #
505
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabularyResponse AWS API Documentation
506
+ #
507
+ class GetMedicalVocabularyResponse < Struct.new(
508
+ :vocabulary_name,
509
+ :language_code,
510
+ :vocabulary_state,
511
+ :last_modified_time,
512
+ :failure_reason,
513
+ :download_uri)
514
+ include Aws::Structure
515
+ end
516
+
354
517
  # @note When making an API call, you may pass GetTranscriptionJobRequest
355
518
  # data as a hash:
356
519
  #
@@ -625,6 +788,75 @@ module Aws::TranscribeService
625
788
  include Aws::Structure
626
789
  end
627
790
 
791
+ # @note When making an API call, you may pass ListMedicalVocabulariesRequest
792
+ # data as a hash:
793
+ #
794
+ # {
795
+ # next_token: "NextToken",
796
+ # max_results: 1,
797
+ # state_equals: "PENDING", # accepts PENDING, READY, FAILED
798
+ # name_contains: "VocabularyName",
799
+ # }
800
+ #
801
+ # @!attribute [rw] next_token
802
+ # If the result of your previous request to `ListMedicalVocabularies`
803
+ # was truncated, include the `NextToken` to fetch the next set of
804
+ # jobs.
805
+ # @return [String]
806
+ #
807
+ # @!attribute [rw] max_results
808
+ # The maximum number of vocabularies to return in the response.
809
+ # @return [Integer]
810
+ #
811
+ # @!attribute [rw] state_equals
812
+ # When specified, only returns vocabularies with the `VocabularyState`
813
+ # equal to the specified vocabulary state.
814
+ # @return [String]
815
+ #
816
+ # @!attribute [rw] name_contains
817
+ # Returns vocabularies in the list whose name contains the specified
818
+ # string. The search is case-insensitive, `ListMedicalVocabularies`
819
+ # returns both "vocabularyname" and "VocabularyName" in the
820
+ # response list.
821
+ # @return [String]
822
+ #
823
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabulariesRequest AWS API Documentation
824
+ #
825
+ class ListMedicalVocabulariesRequest < Struct.new(
826
+ :next_token,
827
+ :max_results,
828
+ :state_equals,
829
+ :name_contains)
830
+ include Aws::Structure
831
+ end
832
+
833
+ # @!attribute [rw] status
834
+ # The requested vocabulary state.
835
+ # @return [String]
836
+ #
837
+ # @!attribute [rw] next_token
838
+ # The `ListMedicalVocabularies` operation returns a page of
839
+ # vocabularies at a time. The maximum size of the page is set by the
840
+ # `MaxResults` parameter. If there are more jobs in the list than the
841
+ # page size, Amazon Transcribe Medical returns the `NextPage` token.
842
+ # Include the token in the next request to the
843
+ # `ListMedicalVocabularies` operation to return the next page of jobs.
844
+ # @return [String]
845
+ #
846
+ # @!attribute [rw] vocabularies
847
+ # A list of objects that describe the vocabularies that match the
848
+ # search criteria in the request.
849
+ # @return [Array<Types::VocabularyInfo>]
850
+ #
851
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabulariesResponse AWS API Documentation
852
+ #
853
+ class ListMedicalVocabulariesResponse < Struct.new(
854
+ :status,
855
+ :next_token,
856
+ :vocabularies)
857
+ include Aws::Structure
858
+ end
859
+
628
860
  # @note When making an API call, you may pass ListTranscriptionJobsRequest
629
861
  # data as a hash:
630
862
  #
@@ -839,14 +1071,8 @@ module Aws::TranscribeService
839
1071
  # the same region as the API endpoint that you are calling. The
840
1072
  # general form is:
841
1073
  #
842
- # ` s3://<bucket-name>/<keyprefix>/<objectkey> `
843
- #
844
1074
  # For example:
845
1075
  #
846
- # `s3://examplebucket/example.mp4`
847
- #
848
- # `s3://examplebucket/mediadocs/example.mp4`
849
- #
850
1076
  # For more information about S3 object names, see [Object Keys][1] in
851
1077
  # the *Amazon S3 Developer Guide*.
852
1078
  #
@@ -1092,6 +1318,7 @@ module Aws::TranscribeService
1092
1318
  # channel_identification: false,
1093
1319
  # show_alternatives: false,
1094
1320
  # max_alternatives: 1,
1321
+ # vocabulary_name: "VocabularyName",
1095
1322
  # }
1096
1323
  #
1097
1324
  # @!attribute [rw] show_speaker_labels
@@ -1143,6 +1370,11 @@ module Aws::TranscribeService
1143
1370
  # `ShowAlternatives` field to true.
1144
1371
  # @return [Integer]
1145
1372
  #
1373
+ # @!attribute [rw] vocabulary_name
1374
+ # The name of the vocabulary to use when processing a medical
1375
+ # transcription job.
1376
+ # @return [String]
1377
+ #
1146
1378
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/MedicalTranscriptionSetting AWS API Documentation
1147
1379
  #
1148
1380
  class MedicalTranscriptionSetting < Struct.new(
@@ -1150,7 +1382,8 @@ module Aws::TranscribeService
1150
1382
  :max_speaker_labels,
1151
1383
  :channel_identification,
1152
1384
  :show_alternatives,
1153
- :max_alternatives)
1385
+ :max_alternatives,
1386
+ :vocabulary_name)
1154
1387
  include Aws::Structure
1155
1388
  end
1156
1389
 
@@ -1282,6 +1515,7 @@ module Aws::TranscribeService
1282
1515
  # channel_identification: false,
1283
1516
  # show_alternatives: false,
1284
1517
  # max_alternatives: 1,
1518
+ # vocabulary_name: "VocabularyName",
1285
1519
  # },
1286
1520
  # specialty: "PRIMARYCARE", # required, accepts PRIMARYCARE
1287
1521
  # type: "CONVERSATION", # required, accepts CONVERSATION, DICTATION
@@ -1290,7 +1524,9 @@ module Aws::TranscribeService
1290
1524
  # @!attribute [rw] medical_transcription_job_name
1291
1525
  # The name of the medical transcription job. You can't use the
1292
1526
  # strings "." or ".." by themselves as the job name. The name must
1293
- # also be unique within an AWS account.
1527
+ # also be unique within an AWS account. If you try to create a medical
1528
+ # transcription job with the same name as a previous medical
1529
+ # transcription job you will receive a `ConflictException` error.
1294
1530
  # @return [String]
1295
1531
  #
1296
1532
  # @!attribute [rw] language_code
@@ -1382,10 +1618,10 @@ module Aws::TranscribeService
1382
1618
  # @return [String]
1383
1619
  #
1384
1620
  # @!attribute [rw] type
1385
- # The speech of clinician in the input audio. `CONVERSATION` refers to
1386
- # conversations clinicians have with patients. `DICTATION` refers to
1387
- # medical professionals dictating their notes about a patient
1388
- # encounter.
1621
+ # The type of speech in the input audio. `CONVERSATION` refers to
1622
+ # conversations between two or more speakers, e.g., a conversations
1623
+ # between doctors and patients. `DICTATION` refers to single-speaker
1624
+ # dictated speech, e.g., for clinical notes.
1389
1625
  # @return [String]
1390
1626
  #
1391
1627
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartMedicalTranscriptionJobRequest AWS API Documentation
@@ -1451,7 +1687,9 @@ module Aws::TranscribeService
1451
1687
  # @!attribute [rw] transcription_job_name
1452
1688
  # The name of the job. Note that you can't use the strings "." or
1453
1689
  # ".." by themselves as the job name. The name must also be unique
1454
- # within an AWS account.
1690
+ # within an AWS account. If you try to create a transcription job with
1691
+ # the same name as a previous transcription job you will receive a
1692
+ # `ConflictException` error.
1455
1693
  # @return [String]
1456
1694
  #
1457
1695
  # @!attribute [rw] language_code
@@ -1800,6 +2038,92 @@ module Aws::TranscribeService
1800
2038
  include Aws::Structure
1801
2039
  end
1802
2040
 
2041
+ # @note When making an API call, you may pass UpdateMedicalVocabularyRequest
2042
+ # data as a hash:
2043
+ #
2044
+ # {
2045
+ # vocabulary_name: "VocabularyName", # required
2046
+ # language_code: "en-US", # required, accepts en-US, es-US, en-AU, fr-CA, en-GB, de-DE, pt-BR, fr-FR, it-IT, ko-KR, es-ES, en-IN, hi-IN, ar-SA, ru-RU, zh-CN, nl-NL, id-ID, ta-IN, fa-IR, en-IE, en-AB, en-WL, pt-PT, te-IN, tr-TR, de-CH, he-IL, ms-MY, ja-JP, ar-AE
2047
+ # vocabulary_file_uri: "Uri",
2048
+ # }
2049
+ #
2050
+ # @!attribute [rw] vocabulary_name
2051
+ # The name of the vocabulary to update. The name is case-sensitive. If
2052
+ # you try to update a vocabulary with the same name as a previous
2053
+ # vocabulary you will receive a `ConflictException` error.
2054
+ # @return [String]
2055
+ #
2056
+ # @!attribute [rw] language_code
2057
+ # The language code of the entries in the updated vocabulary. US
2058
+ # English (en-US) is the only valid language code in Amazon Transcribe
2059
+ # Medical.
2060
+ # @return [String]
2061
+ #
2062
+ # @!attribute [rw] vocabulary_file_uri
2063
+ # The Amazon S3 location of the text file containing the definition of
2064
+ # the custom vocabulary. The URI must be in the same AWS region as the
2065
+ # API endpoint you are calling. You can see the fields you need to
2066
+ # enter for you Amazon S3 location in the example URI here:
2067
+ #
2068
+ # `
2069
+ # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
2070
+ # `
2071
+ #
2072
+ # For example:
2073
+ #
2074
+ # `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
2075
+ #
2076
+ # For more information about S3 object names, see [Object Keys][1] in
2077
+ # the *Amazon S3 Developer Guide*.
2078
+ #
2079
+ # For more information about custom vocabularies in Amazon Transcribe
2080
+ # Medical, see [Medical Custom Vocabularies][2].
2081
+ #
2082
+ #
2083
+ #
2084
+ # [1]: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys
2085
+ # [2]: http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary
2086
+ # @return [String]
2087
+ #
2088
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateMedicalVocabularyRequest AWS API Documentation
2089
+ #
2090
+ class UpdateMedicalVocabularyRequest < Struct.new(
2091
+ :vocabulary_name,
2092
+ :language_code,
2093
+ :vocabulary_file_uri)
2094
+ include Aws::Structure
2095
+ end
2096
+
2097
+ # @!attribute [rw] vocabulary_name
2098
+ # The name of the updated vocabulary.
2099
+ # @return [String]
2100
+ #
2101
+ # @!attribute [rw] language_code
2102
+ # The language code for the text file used to update the custom
2103
+ # vocabulary. US English (en-US) is the only language supported in
2104
+ # Amazon Transcribe Medical.
2105
+ # @return [String]
2106
+ #
2107
+ # @!attribute [rw] last_modified_time
2108
+ # The date and time the vocabulary was updated.
2109
+ # @return [Time]
2110
+ #
2111
+ # @!attribute [rw] vocabulary_state
2112
+ # The processing state of the update to the vocabulary. When the
2113
+ # `VocabularyState` field is `READY` the vocabulary is ready to be
2114
+ # used in a `StartMedicalTranscriptionJob` request.
2115
+ # @return [String]
2116
+ #
2117
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateMedicalVocabularyResponse AWS API Documentation
2118
+ #
2119
+ class UpdateMedicalVocabularyResponse < Struct.new(
2120
+ :vocabulary_name,
2121
+ :language_code,
2122
+ :last_modified_time,
2123
+ :vocabulary_state)
2124
+ include Aws::Structure
2125
+ end
2126
+
1803
2127
  # @note When making an API call, you may pass UpdateVocabularyFilterRequest
1804
2128
  # data as a hash:
1805
2129
  #
@@ -1810,7 +2134,9 @@ module Aws::TranscribeService
1810
2134
  # }
1811
2135
  #
1812
2136
  # @!attribute [rw] vocabulary_filter_name
1813
- # The name of the vocabulary filter to update.
2137
+ # The name of the vocabulary filter to update. If you try to update a
2138
+ # vocabulary filter with the same name as a previous vocabulary filter
2139
+ # you will receive a `ConflictException` error.
1814
2140
  # @return [String]
1815
2141
  #
1816
2142
  # @!attribute [rw] words
@@ -1884,7 +2210,9 @@ module Aws::TranscribeService
1884
2210
  # }
1885
2211
  #
1886
2212
  # @!attribute [rw] vocabulary_name
1887
- # The name of the vocabulary to update. The name is case-sensitive.
2213
+ # The name of the vocabulary to update. The name is case-sensitive. If
2214
+ # you try to update a vocabulary with the same name as a previous
2215
+ # vocabulary you will receive a `ConflictException` error.
1888
2216
  # @return [String]
1889
2217
  #
1890
2218
  # @!attribute [rw] language_code
@@ -1900,14 +2228,8 @@ module Aws::TranscribeService
1900
2228
  # custom vocabulary. The URI must be in the same region as the API
1901
2229
  # endpoint that you are calling. The general form is
1902
2230
  #
1903
- # `
1904
- # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
1905
- # `
1906
- #
1907
2231
  # For example:
1908
2232
  #
1909
- # `https://s3.us-east-1.amazonaws.com/examplebucket/vocab.txt`
1910
- #
1911
2233
  # For more information about S3 object names, see [Object Keys][1] in
1912
2234
  # the *Amazon S3 Developer Guide*.
1913
2235
  #