aws-sdk-transcribeservice 1.45.0 → 1.46.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.
@@ -14,9 +14,13 @@ module Aws::TranscribeService
14
14
  include Seahorse::Model
15
15
 
16
16
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
17
+ BaseModelName = Shapes::StringShape.new(name: 'BaseModelName')
17
18
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
19
+ CLMLanguageCode = Shapes::StringShape.new(name: 'CLMLanguageCode')
18
20
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
19
21
  ContentRedaction = Shapes::StructureShape.new(name: 'ContentRedaction')
22
+ CreateLanguageModelRequest = Shapes::StructureShape.new(name: 'CreateLanguageModelRequest')
23
+ CreateLanguageModelResponse = Shapes::StructureShape.new(name: 'CreateLanguageModelResponse')
20
24
  CreateMedicalVocabularyRequest = Shapes::StructureShape.new(name: 'CreateMedicalVocabularyRequest')
21
25
  CreateMedicalVocabularyResponse = Shapes::StructureShape.new(name: 'CreateMedicalVocabularyResponse')
22
26
  CreateVocabularyFilterRequest = Shapes::StructureShape.new(name: 'CreateVocabularyFilterRequest')
@@ -25,11 +29,14 @@ module Aws::TranscribeService
25
29
  CreateVocabularyResponse = Shapes::StructureShape.new(name: 'CreateVocabularyResponse')
26
30
  DataAccessRoleArn = Shapes::StringShape.new(name: 'DataAccessRoleArn')
27
31
  DateTime = Shapes::TimestampShape.new(name: 'DateTime')
32
+ DeleteLanguageModelRequest = Shapes::StructureShape.new(name: 'DeleteLanguageModelRequest')
28
33
  DeleteMedicalTranscriptionJobRequest = Shapes::StructureShape.new(name: 'DeleteMedicalTranscriptionJobRequest')
29
34
  DeleteMedicalVocabularyRequest = Shapes::StructureShape.new(name: 'DeleteMedicalVocabularyRequest')
30
35
  DeleteTranscriptionJobRequest = Shapes::StructureShape.new(name: 'DeleteTranscriptionJobRequest')
31
36
  DeleteVocabularyFilterRequest = Shapes::StructureShape.new(name: 'DeleteVocabularyFilterRequest')
32
37
  DeleteVocabularyRequest = Shapes::StructureShape.new(name: 'DeleteVocabularyRequest')
38
+ DescribeLanguageModelRequest = Shapes::StructureShape.new(name: 'DescribeLanguageModelRequest')
39
+ DescribeLanguageModelResponse = Shapes::StructureShape.new(name: 'DescribeLanguageModelResponse')
33
40
  FailureReason = Shapes::StringShape.new(name: 'FailureReason')
34
41
  GetMedicalTranscriptionJobRequest = Shapes::StructureShape.new(name: 'GetMedicalTranscriptionJobRequest')
35
42
  GetMedicalTranscriptionJobResponse = Shapes::StructureShape.new(name: 'GetMedicalTranscriptionJobResponse')
@@ -41,11 +48,15 @@ module Aws::TranscribeService
41
48
  GetVocabularyFilterResponse = Shapes::StructureShape.new(name: 'GetVocabularyFilterResponse')
42
49
  GetVocabularyRequest = Shapes::StructureShape.new(name: 'GetVocabularyRequest')
43
50
  GetVocabularyResponse = Shapes::StructureShape.new(name: 'GetVocabularyResponse')
51
+ InputDataConfig = Shapes::StructureShape.new(name: 'InputDataConfig')
44
52
  InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
45
53
  JobExecutionSettings = Shapes::StructureShape.new(name: 'JobExecutionSettings')
46
54
  KMSKeyId = Shapes::StringShape.new(name: 'KMSKeyId')
47
55
  LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
56
+ LanguageModel = Shapes::StructureShape.new(name: 'LanguageModel')
48
57
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
58
+ ListLanguageModelsRequest = Shapes::StructureShape.new(name: 'ListLanguageModelsRequest')
59
+ ListLanguageModelsResponse = Shapes::StructureShape.new(name: 'ListLanguageModelsResponse')
49
60
  ListMedicalTranscriptionJobsRequest = Shapes::StructureShape.new(name: 'ListMedicalTranscriptionJobsRequest')
50
61
  ListMedicalTranscriptionJobsResponse = Shapes::StructureShape.new(name: 'ListMedicalTranscriptionJobsResponse')
51
62
  ListMedicalVocabulariesRequest = Shapes::StructureShape.new(name: 'ListMedicalVocabulariesRequest')
@@ -67,6 +78,10 @@ module Aws::TranscribeService
67
78
  MedicalTranscriptionJobSummaries = Shapes::ListShape.new(name: 'MedicalTranscriptionJobSummaries')
68
79
  MedicalTranscriptionJobSummary = Shapes::StructureShape.new(name: 'MedicalTranscriptionJobSummary')
69
80
  MedicalTranscriptionSetting = Shapes::StructureShape.new(name: 'MedicalTranscriptionSetting')
81
+ ModelName = Shapes::StringShape.new(name: 'ModelName')
82
+ ModelSettings = Shapes::StructureShape.new(name: 'ModelSettings')
83
+ ModelStatus = Shapes::StringShape.new(name: 'ModelStatus')
84
+ Models = Shapes::ListShape.new(name: 'Models')
70
85
  NextToken = Shapes::StringShape.new(name: 'NextToken')
71
86
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
72
87
  OutputBucketName = Shapes::StringShape.new(name: 'OutputBucketName')
@@ -117,6 +132,19 @@ module Aws::TranscribeService
117
132
  ContentRedaction.add_member(:redaction_output, Shapes::ShapeRef.new(shape: RedactionOutput, required: true, location_name: "RedactionOutput"))
118
133
  ContentRedaction.struct_class = Types::ContentRedaction
119
134
 
135
+ CreateLanguageModelRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: CLMLanguageCode, required: true, location_name: "LanguageCode"))
136
+ CreateLanguageModelRequest.add_member(:base_model_name, Shapes::ShapeRef.new(shape: BaseModelName, required: true, location_name: "BaseModelName"))
137
+ CreateLanguageModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "ModelName"))
138
+ CreateLanguageModelRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
139
+ CreateLanguageModelRequest.struct_class = Types::CreateLanguageModelRequest
140
+
141
+ CreateLanguageModelResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: CLMLanguageCode, location_name: "LanguageCode"))
142
+ CreateLanguageModelResponse.add_member(:base_model_name, Shapes::ShapeRef.new(shape: BaseModelName, location_name: "BaseModelName"))
143
+ CreateLanguageModelResponse.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, location_name: "ModelName"))
144
+ CreateLanguageModelResponse.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
145
+ CreateLanguageModelResponse.add_member(:model_status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "ModelStatus"))
146
+ CreateLanguageModelResponse.struct_class = Types::CreateLanguageModelResponse
147
+
120
148
  CreateMedicalVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
121
149
  CreateMedicalVocabularyRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
122
150
  CreateMedicalVocabularyRequest.add_member(:vocabulary_file_uri, Shapes::ShapeRef.new(shape: Uri, required: true, location_name: "VocabularyFileUri"))
@@ -153,6 +181,9 @@ module Aws::TranscribeService
153
181
  CreateVocabularyResponse.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason"))
154
182
  CreateVocabularyResponse.struct_class = Types::CreateVocabularyResponse
155
183
 
184
+ DeleteLanguageModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "ModelName"))
185
+ DeleteLanguageModelRequest.struct_class = Types::DeleteLanguageModelRequest
186
+
156
187
  DeleteMedicalTranscriptionJobRequest.add_member(:medical_transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "MedicalTranscriptionJobName"))
157
188
  DeleteMedicalTranscriptionJobRequest.struct_class = Types::DeleteMedicalTranscriptionJobRequest
158
189
 
@@ -168,6 +199,12 @@ module Aws::TranscribeService
168
199
  DeleteVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
169
200
  DeleteVocabularyRequest.struct_class = Types::DeleteVocabularyRequest
170
201
 
202
+ DescribeLanguageModelRequest.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, required: true, location_name: "ModelName"))
203
+ DescribeLanguageModelRequest.struct_class = Types::DescribeLanguageModelRequest
204
+
205
+ DescribeLanguageModelResponse.add_member(:language_model, Shapes::ShapeRef.new(shape: LanguageModel, location_name: "LanguageModel"))
206
+ DescribeLanguageModelResponse.struct_class = Types::DescribeLanguageModelResponse
207
+
171
208
  GetMedicalTranscriptionJobRequest.add_member(:medical_transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "MedicalTranscriptionJobName"))
172
209
  GetMedicalTranscriptionJobRequest.struct_class = Types::GetMedicalTranscriptionJobRequest
173
210
 
@@ -211,6 +248,11 @@ module Aws::TranscribeService
211
248
  GetVocabularyResponse.add_member(:download_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "DownloadUri"))
212
249
  GetVocabularyResponse.struct_class = Types::GetVocabularyResponse
213
250
 
251
+ InputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: Uri, required: true, location_name: "S3Uri"))
252
+ InputDataConfig.add_member(:tuning_data_s3_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "TuningDataS3Uri"))
253
+ InputDataConfig.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: DataAccessRoleArn, required: true, location_name: "DataAccessRoleArn"))
254
+ InputDataConfig.struct_class = Types::InputDataConfig
255
+
214
256
  InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
215
257
  InternalFailureException.struct_class = Types::InternalFailureException
216
258
 
@@ -218,9 +260,30 @@ module Aws::TranscribeService
218
260
  JobExecutionSettings.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: DataAccessRoleArn, location_name: "DataAccessRoleArn"))
219
261
  JobExecutionSettings.struct_class = Types::JobExecutionSettings
220
262
 
263
+ LanguageModel.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, location_name: "ModelName"))
264
+ LanguageModel.add_member(:create_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreateTime"))
265
+ LanguageModel.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime"))
266
+ LanguageModel.add_member(:language_code, Shapes::ShapeRef.new(shape: CLMLanguageCode, location_name: "LanguageCode"))
267
+ LanguageModel.add_member(:base_model_name, Shapes::ShapeRef.new(shape: BaseModelName, location_name: "BaseModelName"))
268
+ LanguageModel.add_member(:model_status, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "ModelStatus"))
269
+ LanguageModel.add_member(:upgrade_availability, Shapes::ShapeRef.new(shape: Boolean, location_name: "UpgradeAvailability"))
270
+ LanguageModel.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason"))
271
+ LanguageModel.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
272
+ LanguageModel.struct_class = Types::LanguageModel
273
+
221
274
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
222
275
  LimitExceededException.struct_class = Types::LimitExceededException
223
276
 
277
+ ListLanguageModelsRequest.add_member(:status_equals, Shapes::ShapeRef.new(shape: ModelStatus, location_name: "StatusEquals"))
278
+ ListLanguageModelsRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: ModelName, location_name: "NameContains"))
279
+ ListLanguageModelsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
280
+ ListLanguageModelsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
281
+ ListLanguageModelsRequest.struct_class = Types::ListLanguageModelsRequest
282
+
283
+ ListLanguageModelsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
284
+ ListLanguageModelsResponse.add_member(:models, Shapes::ShapeRef.new(shape: Models, location_name: "Models"))
285
+ ListLanguageModelsResponse.struct_class = Types::ListLanguageModelsResponse
286
+
224
287
  ListMedicalTranscriptionJobsRequest.add_member(:status, Shapes::ShapeRef.new(shape: TranscriptionJobStatus, location_name: "Status"))
225
288
  ListMedicalTranscriptionJobsRequest.add_member(:job_name_contains, Shapes::ShapeRef.new(shape: TranscriptionJobName, location_name: "JobNameContains"))
226
289
  ListMedicalTranscriptionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
@@ -318,6 +381,11 @@ module Aws::TranscribeService
318
381
  MedicalTranscriptionSetting.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
319
382
  MedicalTranscriptionSetting.struct_class = Types::MedicalTranscriptionSetting
320
383
 
384
+ ModelSettings.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location_name: "LanguageModelName"))
385
+ ModelSettings.struct_class = Types::ModelSettings
386
+
387
+ Models.member = Shapes::ShapeRef.new(shape: LanguageModel)
388
+
321
389
  NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
322
390
  NotFoundException.struct_class = Types::NotFoundException
323
391
 
@@ -356,6 +424,7 @@ module Aws::TranscribeService
356
424
  StartTranscriptionJobRequest.add_member(:output_bucket_name, Shapes::ShapeRef.new(shape: OutputBucketName, location_name: "OutputBucketName"))
357
425
  StartTranscriptionJobRequest.add_member(:output_encryption_kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, location_name: "OutputEncryptionKMSKeyId"))
358
426
  StartTranscriptionJobRequest.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, location_name: "Settings"))
427
+ StartTranscriptionJobRequest.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
359
428
  StartTranscriptionJobRequest.add_member(:job_execution_settings, Shapes::ShapeRef.new(shape: JobExecutionSettings, location_name: "JobExecutionSettings"))
360
429
  StartTranscriptionJobRequest.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
361
430
  StartTranscriptionJobRequest.struct_class = Types::StartTranscriptionJobRequest
@@ -379,6 +448,7 @@ module Aws::TranscribeService
379
448
  TranscriptionJob.add_member(:completion_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CompletionTime"))
380
449
  TranscriptionJob.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason"))
381
450
  TranscriptionJob.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, location_name: "Settings"))
451
+ TranscriptionJob.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
382
452
  TranscriptionJob.add_member(:job_execution_settings, Shapes::ShapeRef.new(shape: JobExecutionSettings, location_name: "JobExecutionSettings"))
383
453
  TranscriptionJob.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
384
454
  TranscriptionJob.struct_class = Types::TranscriptionJob
@@ -394,6 +464,7 @@ module Aws::TranscribeService
394
464
  TranscriptionJobSummary.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason"))
395
465
  TranscriptionJobSummary.add_member(:output_location_type, Shapes::ShapeRef.new(shape: OutputLocationType, location_name: "OutputLocationType"))
396
466
  TranscriptionJobSummary.add_member(:content_redaction, Shapes::ShapeRef.new(shape: ContentRedaction, location_name: "ContentRedaction"))
467
+ TranscriptionJobSummary.add_member(:model_settings, Shapes::ShapeRef.new(shape: ModelSettings, location_name: "ModelSettings"))
397
468
  TranscriptionJobSummary.struct_class = Types::TranscriptionJobSummary
398
469
 
399
470
  UpdateMedicalVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName"))
@@ -465,6 +536,18 @@ module Aws::TranscribeService
465
536
  "uid" => "transcribe-2017-10-26",
466
537
  }
467
538
 
539
+ api.add_operation(:create_language_model, Seahorse::Model::Operation.new.tap do |o|
540
+ o.name = "CreateLanguageModel"
541
+ o.http_method = "POST"
542
+ o.http_request_uri = "/"
543
+ o.input = Shapes::ShapeRef.new(shape: CreateLanguageModelRequest)
544
+ o.output = Shapes::ShapeRef.new(shape: CreateLanguageModelResponse)
545
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
546
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
547
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
548
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
549
+ end)
550
+
468
551
  api.add_operation(:create_medical_vocabulary, Seahorse::Model::Operation.new.tap do |o|
469
552
  o.name = "CreateMedicalVocabulary"
470
553
  o.http_method = "POST"
@@ -501,6 +584,17 @@ module Aws::TranscribeService
501
584
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
502
585
  end)
503
586
 
587
+ api.add_operation(:delete_language_model, Seahorse::Model::Operation.new.tap do |o|
588
+ o.name = "DeleteLanguageModel"
589
+ o.http_method = "POST"
590
+ o.http_request_uri = "/"
591
+ o.input = Shapes::ShapeRef.new(shape: DeleteLanguageModelRequest)
592
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
593
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
594
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
595
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
596
+ end)
597
+
504
598
  api.add_operation(:delete_medical_transcription_job, Seahorse::Model::Operation.new.tap do |o|
505
599
  o.name = "DeleteMedicalTranscriptionJob"
506
600
  o.http_method = "POST"
@@ -559,6 +653,18 @@ module Aws::TranscribeService
559
653
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
560
654
  end)
561
655
 
656
+ api.add_operation(:describe_language_model, Seahorse::Model::Operation.new.tap do |o|
657
+ o.name = "DescribeLanguageModel"
658
+ o.http_method = "POST"
659
+ o.http_request_uri = "/"
660
+ o.input = Shapes::ShapeRef.new(shape: DescribeLanguageModelRequest)
661
+ o.output = Shapes::ShapeRef.new(shape: DescribeLanguageModelResponse)
662
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
663
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
664
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
665
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
666
+ end)
667
+
562
668
  api.add_operation(:get_medical_transcription_job, Seahorse::Model::Operation.new.tap do |o|
563
669
  o.name = "GetMedicalTranscriptionJob"
564
670
  o.http_method = "POST"
@@ -619,6 +725,23 @@ module Aws::TranscribeService
619
725
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
620
726
  end)
621
727
 
728
+ api.add_operation(:list_language_models, Seahorse::Model::Operation.new.tap do |o|
729
+ o.name = "ListLanguageModels"
730
+ o.http_method = "POST"
731
+ o.http_request_uri = "/"
732
+ o.input = Shapes::ShapeRef.new(shape: ListLanguageModelsRequest)
733
+ o.output = Shapes::ShapeRef.new(shape: ListLanguageModelsResponse)
734
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
735
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
736
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
737
+ o[:pager] = Aws::Pager.new(
738
+ limit_key: "max_results",
739
+ tokens: {
740
+ "next_token" => "next_token"
741
+ }
742
+ )
743
+ end)
744
+
622
745
  api.add_operation(:list_medical_transcription_jobs, Seahorse::Model::Operation.new.tap do |o|
623
746
  o.name = "ListMedicalTranscriptionJobs"
624
747
  o.http_method = "POST"
@@ -11,9 +11,9 @@ module Aws::TranscribeService
11
11
  module Types
12
12
 
13
13
  # Your request didn't pass one or more validation tests. For example,
14
- # if the transcription you're trying to delete doesn't exist or if it
15
- # is in a non-terminal state (for example, it's "in progress"). See
16
- # the exception `Message` field for more information.
14
+ # if the entity that you're trying to delete doesn't exist or if it is
15
+ # in a non-terminal state (for example, it's "in progress"). See the
16
+ # exception `Message` field for more information.
17
17
  #
18
18
  # @!attribute [rw] message
19
19
  # @return [String]
@@ -26,7 +26,7 @@ module Aws::TranscribeService
26
26
  include Aws::Structure
27
27
  end
28
28
 
29
- # The resource name already exists.
29
+ # There is already a resource with that name.
30
30
  #
31
31
  # @!attribute [rw] message
32
32
  # @return [String]
@@ -74,45 +74,134 @@ module Aws::TranscribeService
74
74
  include Aws::Structure
75
75
  end
76
76
 
77
+ # @note When making an API call, you may pass CreateLanguageModelRequest
78
+ # data as a hash:
79
+ #
80
+ # {
81
+ # language_code: "en-US", # required, accepts en-US
82
+ # base_model_name: "NarrowBand", # required, accepts NarrowBand, WideBand
83
+ # model_name: "ModelName", # required
84
+ # input_data_config: { # required
85
+ # s3_uri: "Uri", # required
86
+ # tuning_data_s3_uri: "Uri",
87
+ # data_access_role_arn: "DataAccessRoleArn", # required
88
+ # },
89
+ # }
90
+ #
91
+ # @!attribute [rw] language_code
92
+ # The language of the input text you're using to train your custom
93
+ # language model.
94
+ # @return [String]
95
+ #
96
+ # @!attribute [rw] base_model_name
97
+ # The Amazon Transcribe standard language model, or base model used to
98
+ # create your custom language model.
99
+ #
100
+ # If you want to use your custom language model to transcribe audio
101
+ # with a sample rate of 16 kHz or greater, choose `Wideband`.
102
+ #
103
+ # If you want to use your custom language model to transcribe audio
104
+ # with a sample rate that is less than 16 kHz, choose `Narrowband`.
105
+ # @return [String]
106
+ #
107
+ # @!attribute [rw] model_name
108
+ # The name you choose for your custom language model when you create
109
+ # it.
110
+ # @return [String]
111
+ #
112
+ # @!attribute [rw] input_data_config
113
+ # Contains the data access role and the Amazon S3 prefixes to read the
114
+ # required input files to create a custom language model.
115
+ # @return [Types::InputDataConfig]
116
+ #
117
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateLanguageModelRequest AWS API Documentation
118
+ #
119
+ class CreateLanguageModelRequest < Struct.new(
120
+ :language_code,
121
+ :base_model_name,
122
+ :model_name,
123
+ :input_data_config)
124
+ SENSITIVE = []
125
+ include Aws::Structure
126
+ end
127
+
128
+ # @!attribute [rw] language_code
129
+ # The language code of the text you've used to create a custom
130
+ # language model.
131
+ # @return [String]
132
+ #
133
+ # @!attribute [rw] base_model_name
134
+ # The Amazon Transcribe standard language model, or base model you've
135
+ # used to create a custom language model.
136
+ # @return [String]
137
+ #
138
+ # @!attribute [rw] model_name
139
+ # The name you've chosen for your custom language model.
140
+ # @return [String]
141
+ #
142
+ # @!attribute [rw] input_data_config
143
+ # The data access role and Amazon S3 prefixes you've chosen to create
144
+ # your custom language model.
145
+ # @return [Types::InputDataConfig]
146
+ #
147
+ # @!attribute [rw] model_status
148
+ # The status of the custom language model. When the status is
149
+ # `COMPLETED` the model is ready to use.
150
+ # @return [String]
151
+ #
152
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateLanguageModelResponse AWS API Documentation
153
+ #
154
+ class CreateLanguageModelResponse < Struct.new(
155
+ :language_code,
156
+ :base_model_name,
157
+ :model_name,
158
+ :input_data_config,
159
+ :model_status)
160
+ SENSITIVE = []
161
+ include Aws::Structure
162
+ end
163
+
77
164
  # @note When making an API call, you may pass CreateMedicalVocabularyRequest
78
165
  # data as a hash:
79
166
  #
80
167
  # {
81
168
  # vocabulary_name: "VocabularyName", # required
82
- # 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
169
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
83
170
  # vocabulary_file_uri: "Uri", # required
84
171
  # }
85
172
  #
86
173
  # @!attribute [rw] vocabulary_name
87
174
  # The name of the custom vocabulary. This case-sensitive name must be
88
175
  # unique within an AWS account. If you try to create a vocabulary with
89
- # the same name as a previous vocabulary you will receive a
176
+ # the same name as a previous vocabulary, you get a
90
177
  # `ConflictException` error.
91
178
  # @return [String]
92
179
  #
93
180
  # @!attribute [rw] language_code
94
- # The language code used for the entries within your custom
95
- # vocabulary. The language code of your custom vocabulary must match
96
- # the language code of your transcription job. US English (en-US) is
97
- # the only language code available for Amazon Transcribe Medical.
181
+ # The language code for the language used for the entries in your
182
+ # custom vocabulary. The language code of your custom vocabulary must
183
+ # match the language code of your transcription job. US English
184
+ # (en-US) is the only language code available for Amazon Transcribe
185
+ # Medical.
98
186
  # @return [String]
99
187
  #
100
188
  # @!attribute [rw] vocabulary_file_uri
101
- # The Amazon S3 location of the text file you use to define your
102
- # custom vocabulary. The URI must be in the same AWS region as the API
103
- # endpoint you're calling. Enter information about your
189
+ # The location in Amazon S3 of the text file you use to define your
190
+ # custom vocabulary. The URI must be in the same AWS Region as the
191
+ # resource that you're calling. Enter information about your
104
192
  # `VocabularyFileUri` in the following format:
105
193
  #
106
194
  # `
107
195
  # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
108
196
  # `
109
197
  #
110
- # This is an example of a vocabulary file uri location in Amazon S3:
198
+ # The following is an example URI for a vocabulary file that is stored
199
+ # in Amazon S3:
111
200
  #
112
201
  # `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
113
202
  #
114
- # For more information about S3 object names, see [Object Keys][1] in
115
- # the *Amazon S3 Developer Guide*.
203
+ # For more information about Amazon S3 object names, see [Object
204
+ # Keys][1] in the *Amazon S3 Developer Guide*.
116
205
  #
117
206
  # For more information about custom vocabularies, see [Medical Custom
118
207
  # Vocabularies][2].
@@ -135,23 +224,23 @@ module Aws::TranscribeService
135
224
 
136
225
  # @!attribute [rw] vocabulary_name
137
226
  # The name of the vocabulary. The name must be unique within an AWS
138
- # account. It is also case-sensitive.
227
+ # account and is case sensitive.
139
228
  # @return [String]
140
229
  #
141
230
  # @!attribute [rw] language_code
142
- # The language code you chose to describe the entries in your custom
143
- # vocabulary. US English (en-US) is the only valid language code for
144
- # Amazon Transcribe Medical.
231
+ # The language code for the entries in your custom vocabulary. US
232
+ # English (en-US) is the only valid language code for Amazon
233
+ # Transcribe Medical.
145
234
  # @return [String]
146
235
  #
147
236
  # @!attribute [rw] vocabulary_state
148
237
  # The processing state of your custom vocabulary in Amazon Transcribe
149
- # Medical. If the state is `READY` you can use the vocabulary in a
238
+ # Medical. If the state is `READY`, you can use the vocabulary in a
150
239
  # `StartMedicalTranscriptionJob` request.
151
240
  # @return [String]
152
241
  #
153
242
  # @!attribute [rw] last_modified_time
154
- # The date and time you created the vocabulary.
243
+ # The date and time that you created the vocabulary.
155
244
  # @return [Time]
156
245
  #
157
246
  # @!attribute [rw] failure_reason
@@ -176,16 +265,16 @@ module Aws::TranscribeService
176
265
  #
177
266
  # {
178
267
  # vocabulary_filter_name: "VocabularyFilterName", # required
179
- # 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
268
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
180
269
  # words: ["Word"],
181
270
  # vocabulary_filter_file_uri: "Uri",
182
271
  # }
183
272
  #
184
273
  # @!attribute [rw] vocabulary_filter_name
185
274
  # The vocabulary filter name. The name must be unique within the
186
- # account that contains it.If you try to create a vocabulary filter
187
- # with the same name as a previous vocabulary filter you will receive
188
- # a `ConflictException` error.
275
+ # account that contains it. If you try to create a vocabulary filter
276
+ # with the same name as another vocabulary filter, you get a
277
+ # `ConflictException` error.
189
278
  # @return [String]
190
279
  #
191
280
  # @!attribute [rw] language_code
@@ -262,14 +351,14 @@ module Aws::TranscribeService
262
351
  #
263
352
  # {
264
353
  # vocabulary_name: "VocabularyName", # required
265
- # 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
354
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
266
355
  # phrases: ["Phrase"],
267
356
  # vocabulary_file_uri: "Uri",
268
357
  # }
269
358
  #
270
359
  # @!attribute [rw] vocabulary_name
271
360
  # The name of the vocabulary. The name must be unique within an AWS
272
- # account. The name is case-sensitive. If you try to create a
361
+ # account. The name is case sensitive. If you try to create a
273
362
  # vocabulary with the same name as a previous vocabulary you will
274
363
  # receive a `ConflictException` error.
275
364
  # @return [String]
@@ -345,6 +434,25 @@ module Aws::TranscribeService
345
434
  include Aws::Structure
346
435
  end
347
436
 
437
+ # @note When making an API call, you may pass DeleteLanguageModelRequest
438
+ # data as a hash:
439
+ #
440
+ # {
441
+ # model_name: "ModelName", # required
442
+ # }
443
+ #
444
+ # @!attribute [rw] model_name
445
+ # The name of the model you're choosing to delete.
446
+ # @return [String]
447
+ #
448
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteLanguageModelRequest AWS API Documentation
449
+ #
450
+ class DeleteLanguageModelRequest < Struct.new(
451
+ :model_name)
452
+ SENSITIVE = []
453
+ include Aws::Structure
454
+ end
455
+
348
456
  # @note When making an API call, you may pass DeleteMedicalTranscriptionJobRequest
349
457
  # data as a hash:
350
458
  #
@@ -373,7 +481,7 @@ module Aws::TranscribeService
373
481
  # }
374
482
  #
375
483
  # @!attribute [rw] vocabulary_name
376
- # The name of the vocabulary you are choosing to delete.
484
+ # The name of the vocabulary that you want to delete.
377
485
  # @return [String]
378
486
  #
379
487
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalVocabularyRequest AWS API Documentation
@@ -441,6 +549,39 @@ module Aws::TranscribeService
441
549
  include Aws::Structure
442
550
  end
443
551
 
552
+ # @note When making an API call, you may pass DescribeLanguageModelRequest
553
+ # data as a hash:
554
+ #
555
+ # {
556
+ # model_name: "ModelName", # required
557
+ # }
558
+ #
559
+ # @!attribute [rw] model_name
560
+ # The name of the custom language model you submit to get more
561
+ # information.
562
+ # @return [String]
563
+ #
564
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModelRequest AWS API Documentation
565
+ #
566
+ class DescribeLanguageModelRequest < Struct.new(
567
+ :model_name)
568
+ SENSITIVE = []
569
+ include Aws::Structure
570
+ end
571
+
572
+ # @!attribute [rw] language_model
573
+ # The name of the custom language model you requested more information
574
+ # about.
575
+ # @return [Types::LanguageModel]
576
+ #
577
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DescribeLanguageModelResponse AWS API Documentation
578
+ #
579
+ class DescribeLanguageModelResponse < Struct.new(
580
+ :language_model)
581
+ SENSITIVE = []
582
+ include Aws::Structure
583
+ end
584
+
444
585
  # @note When making an API call, you may pass GetMedicalTranscriptionJobRequest
445
586
  # data as a hash:
446
587
  #
@@ -481,8 +622,8 @@ module Aws::TranscribeService
481
622
  # }
482
623
  #
483
624
  # @!attribute [rw] vocabulary_name
484
- # The name of the vocabulary you are trying to get information about.
485
- # The value you enter for this request is case-sensitive.
625
+ # The name of the vocabulary that you want information about. The
626
+ # value is case sensitive.
486
627
  # @return [String]
487
628
  #
488
629
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabularyRequest AWS API Documentation
@@ -494,20 +635,22 @@ module Aws::TranscribeService
494
635
  end
495
636
 
496
637
  # @!attribute [rw] vocabulary_name
497
- # The valid name that Amazon Transcribe Medical returns.
638
+ # The name of the vocabulary returned by Amazon Transcribe Medical.
498
639
  # @return [String]
499
640
  #
500
641
  # @!attribute [rw] language_code
501
- # The valid language code returned for your vocabulary entries.
642
+ # The valid language code for your vocabulary entries.
502
643
  # @return [String]
503
644
  #
504
645
  # @!attribute [rw] vocabulary_state
505
- # The processing state of the vocabulary.
646
+ # The processing state of the vocabulary. If the `VocabularyState` is
647
+ # `READY` then you can use it in the `StartMedicalTranscriptionJob`
648
+ # operation.
506
649
  # @return [String]
507
650
  #
508
651
  # @!attribute [rw] last_modified_time
509
- # The date and time the vocabulary was last modified with a text file
510
- # different from what was previously used.
652
+ # The date and time that the vocabulary was last modified with a text
653
+ # file different from the one that was previously used.
511
654
  # @return [Time]
512
655
  #
513
656
  # @!attribute [rw] failure_reason
@@ -516,8 +659,8 @@ module Aws::TranscribeService
516
659
  # @return [String]
517
660
  #
518
661
  # @!attribute [rw] download_uri
519
- # The Amazon S3 location where the vocabulary is stored. Use this URI
520
- # to get the contents of the vocabulary. You can download your
662
+ # The location in Amazon S3 where the vocabulary is stored. Use this
663
+ # URI to get the contents of the vocabulary. You can download your
521
664
  # vocabulary from the URI for a limited time.
522
665
  # @return [String]
523
666
  #
@@ -622,7 +765,7 @@ module Aws::TranscribeService
622
765
  #
623
766
  # @!attribute [rw] vocabulary_name
624
767
  # The name of the vocabulary to return information about. The name is
625
- # case-sensitive.
768
+ # case sensitive.
626
769
  # @return [String]
627
770
  #
628
771
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabularyRequest AWS API Documentation
@@ -673,6 +816,44 @@ module Aws::TranscribeService
673
816
  include Aws::Structure
674
817
  end
675
818
 
819
+ # The object that contains the Amazon S3 object location and access role
820
+ # required to train and tune your custom language model.
821
+ #
822
+ # @note When making an API call, you may pass InputDataConfig
823
+ # data as a hash:
824
+ #
825
+ # {
826
+ # s3_uri: "Uri", # required
827
+ # tuning_data_s3_uri: "Uri",
828
+ # data_access_role_arn: "DataAccessRoleArn", # required
829
+ # }
830
+ #
831
+ # @!attribute [rw] s3_uri
832
+ # The Amazon S3 prefix you specify to access the plain text files that
833
+ # you use to train your custom language model.
834
+ # @return [String]
835
+ #
836
+ # @!attribute [rw] tuning_data_s3_uri
837
+ # The Amazon S3 prefix you specify to access the plain text files that
838
+ # you use to tune your custom language model.
839
+ # @return [String]
840
+ #
841
+ # @!attribute [rw] data_access_role_arn
842
+ # The Amazon Resource Name (ARN) that uniquely identifies the
843
+ # permissions you've given Amazon Transcribe to access your Amazon S3
844
+ # buckets containing your media files or text data.
845
+ # @return [String]
846
+ #
847
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/InputDataConfig AWS API Documentation
848
+ #
849
+ class InputDataConfig < Struct.new(
850
+ :s3_uri,
851
+ :tuning_data_s3_uri,
852
+ :data_access_role_arn)
853
+ SENSITIVE = []
854
+ include Aws::Structure
855
+ end
856
+
676
857
  # There was an internal error. Check the error message and try your
677
858
  # request again.
678
859
  #
@@ -730,6 +911,65 @@ module Aws::TranscribeService
730
911
  include Aws::Structure
731
912
  end
732
913
 
914
+ # The structure used to describe a custom language model.
915
+ #
916
+ # @!attribute [rw] model_name
917
+ # The name of the custom language model.
918
+ # @return [String]
919
+ #
920
+ # @!attribute [rw] create_time
921
+ # The time the custom language model was created.
922
+ # @return [Time]
923
+ #
924
+ # @!attribute [rw] last_modified_time
925
+ # The most recent time the custom language model was modified.
926
+ # @return [Time]
927
+ #
928
+ # @!attribute [rw] language_code
929
+ # The language code you used to create your custom language model.
930
+ # @return [String]
931
+ #
932
+ # @!attribute [rw] base_model_name
933
+ # The Amazon Transcribe standard language model, or base model used to
934
+ # create the custom language model.
935
+ # @return [String]
936
+ #
937
+ # @!attribute [rw] model_status
938
+ # The creation status of a custom language model. When the status is
939
+ # `COMPLETED` the model is ready for use.
940
+ # @return [String]
941
+ #
942
+ # @!attribute [rw] upgrade_availability
943
+ # Whether the base model used for the custom language model is up to
944
+ # date. If this field is `true` then you are running the most
945
+ # up-to-date version of the base model in your custom language model.
946
+ # @return [Boolean]
947
+ #
948
+ # @!attribute [rw] failure_reason
949
+ # The reason why the custom language model couldn't be created.
950
+ # @return [String]
951
+ #
952
+ # @!attribute [rw] input_data_config
953
+ # The data access role and Amazon S3 prefixes for the input files used
954
+ # to train the custom language model.
955
+ # @return [Types::InputDataConfig]
956
+ #
957
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/LanguageModel AWS API Documentation
958
+ #
959
+ class LanguageModel < Struct.new(
960
+ :model_name,
961
+ :create_time,
962
+ :last_modified_time,
963
+ :language_code,
964
+ :base_model_name,
965
+ :model_status,
966
+ :upgrade_availability,
967
+ :failure_reason,
968
+ :input_data_config)
969
+ SENSITIVE = []
970
+ include Aws::Structure
971
+ end
972
+
733
973
  # Either you have sent too many requests or your input file is too long.
734
974
  # Wait before you resend your request, or use a smaller file and resend
735
975
  # the request.
@@ -745,6 +985,72 @@ module Aws::TranscribeService
745
985
  include Aws::Structure
746
986
  end
747
987
 
988
+ # @note When making an API call, you may pass ListLanguageModelsRequest
989
+ # data as a hash:
990
+ #
991
+ # {
992
+ # status_equals: "IN_PROGRESS", # accepts IN_PROGRESS, FAILED, COMPLETED
993
+ # name_contains: "ModelName",
994
+ # next_token: "NextToken",
995
+ # max_results: 1,
996
+ # }
997
+ #
998
+ # @!attribute [rw] status_equals
999
+ # When specified, returns only custom language models with the
1000
+ # specified status. Language models are ordered by creation date, with
1001
+ # the newest models first. If you don't specify a status, Amazon
1002
+ # Transcribe returns all custom language models ordered by date.
1003
+ # @return [String]
1004
+ #
1005
+ # @!attribute [rw] name_contains
1006
+ # When specified, the custom language model names returned contain the
1007
+ # substring you've specified.
1008
+ # @return [String]
1009
+ #
1010
+ # @!attribute [rw] next_token
1011
+ # When included, fetches the next set of jobs if the result of the
1012
+ # previous request was truncated.
1013
+ # @return [String]
1014
+ #
1015
+ # @!attribute [rw] max_results
1016
+ # The maximum number of language models to return in the response. If
1017
+ # there are fewer results in the list, the response contains only the
1018
+ # actual results.
1019
+ # @return [Integer]
1020
+ #
1021
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListLanguageModelsRequest AWS API Documentation
1022
+ #
1023
+ class ListLanguageModelsRequest < Struct.new(
1024
+ :status_equals,
1025
+ :name_contains,
1026
+ :next_token,
1027
+ :max_results)
1028
+ SENSITIVE = []
1029
+ include Aws::Structure
1030
+ end
1031
+
1032
+ # @!attribute [rw] next_token
1033
+ # The operation returns a page of jobs at a time. The maximum size of
1034
+ # the list is set by the MaxResults parameter. If there are more
1035
+ # language models in the list than the page size, Amazon Transcribe
1036
+ # returns the `NextPage` token. Include the token in the next request
1037
+ # to the operation to return the next page of language models.
1038
+ # @return [String]
1039
+ #
1040
+ # @!attribute [rw] models
1041
+ # A list of objects containing information about custom language
1042
+ # models.
1043
+ # @return [Array<Types::LanguageModel>]
1044
+ #
1045
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListLanguageModelsResponse AWS API Documentation
1046
+ #
1047
+ class ListLanguageModelsResponse < Struct.new(
1048
+ :next_token,
1049
+ :models)
1050
+ SENSITIVE = []
1051
+ include Aws::Structure
1052
+ end
1053
+
748
1054
  # @note When making an API call, you may pass ListMedicalTranscriptionJobsRequest
749
1055
  # data as a hash:
750
1056
  #
@@ -832,7 +1138,7 @@ module Aws::TranscribeService
832
1138
  # @!attribute [rw] next_token
833
1139
  # If the result of your previous request to `ListMedicalVocabularies`
834
1140
  # was truncated, include the `NextToken` to fetch the next set of
835
- # jobs.
1141
+ # vocabularies.
836
1142
  # @return [String]
837
1143
  #
838
1144
  # @!attribute [rw] max_results
@@ -840,15 +1146,15 @@ module Aws::TranscribeService
840
1146
  # @return [Integer]
841
1147
  #
842
1148
  # @!attribute [rw] state_equals
843
- # When specified, only returns vocabularies with the `VocabularyState`
844
- # equal to the specified vocabulary state.
1149
+ # When specified, returns only vocabularies with the `VocabularyState`
1150
+ # equal to the specified vocabulary state. Use this field to see which
1151
+ # vocabularies are ready for your medical transcription jobs.
845
1152
  # @return [String]
846
1153
  #
847
1154
  # @!attribute [rw] name_contains
848
- # Returns vocabularies in the list whose name contains the specified
849
- # string. The search is case-insensitive, `ListMedicalVocabularies`
850
- # returns both "vocabularyname" and "VocabularyName" in the
851
- # response list.
1155
+ # Returns vocabularies whose names contain the specified string. The
1156
+ # search is not case sensitive. `ListMedicalVocabularies` returns both
1157
+ # "`vocabularyname`" and "`VocabularyName`".
852
1158
  # @return [String]
853
1159
  #
854
1160
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabulariesRequest AWS API Documentation
@@ -868,16 +1174,17 @@ module Aws::TranscribeService
868
1174
  #
869
1175
  # @!attribute [rw] next_token
870
1176
  # The `ListMedicalVocabularies` operation returns a page of
871
- # vocabularies at a time. The maximum size of the page is set by the
872
- # `MaxResults` parameter. If there are more jobs in the list than the
873
- # page size, Amazon Transcribe Medical returns the `NextPage` token.
874
- # Include the token in the next request to the
875
- # `ListMedicalVocabularies` operation to return the next page of jobs.
1177
+ # vocabularies at a time. You set the maximum number of vocabularies
1178
+ # to return on a page with the `MaxResults` parameter. If there are
1179
+ # more jobs in the list will fit on a page, Amazon Transcribe Medical
1180
+ # returns the `NextPage` token. To return the next page of
1181
+ # vocabularies, include the token in the next request to the
1182
+ # `ListMedicalVocabularies` operation .
876
1183
  # @return [String]
877
1184
  #
878
1185
  # @!attribute [rw] vocabularies
879
- # A list of objects that describe the vocabularies that match the
880
- # search criteria in the request.
1186
+ # A list of objects that describe the vocabularies that match your
1187
+ # search criteria.
881
1188
  # @return [Array<Types::VocabularyInfo>]
882
1189
  #
883
1190
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabulariesResponse AWS API Documentation
@@ -991,8 +1298,8 @@ module Aws::TranscribeService
991
1298
  # @!attribute [rw] name_contains
992
1299
  # When specified, the vocabularies returned in the list are limited to
993
1300
  # vocabularies whose name contains the specified string. The search is
994
- # case-insensitive, `ListVocabularies` returns both "vocabularyname"
995
- # and "VocabularyName" in the response list.
1301
+ # not case sensitive, `ListVocabularies` returns both
1302
+ # "vocabularyname" and "VocabularyName" in the response list.
996
1303
  # @return [String]
997
1304
  #
998
1305
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListVocabulariesRequest AWS API Documentation
@@ -1012,11 +1319,11 @@ module Aws::TranscribeService
1012
1319
  #
1013
1320
  # @!attribute [rw] next_token
1014
1321
  # The `ListVocabularies` operation returns a page of vocabularies at a
1015
- # time. The maximum size of the page is set by the `MaxResults`
1016
- # parameter. If there are more jobs in the list than the page size,
1017
- # Amazon Transcribe returns the `NextPage` token. Include the token in
1018
- # the next request to the `ListVocabularies` operation to return in
1019
- # the next page of jobs.
1322
+ # time. The maximum size of the page is set in the `MaxResults`
1323
+ # parameter. If there are more jobs in the list than will fit on the
1324
+ # page, Amazon Transcribe returns the `NextPage` token. To return in
1325
+ # the next page of jobs, include the token in the next request to the
1326
+ # `ListVocabularies` operation.
1020
1327
  # @return [String]
1021
1328
  #
1022
1329
  # @!attribute [rw] vocabularies
@@ -1145,7 +1452,7 @@ module Aws::TranscribeService
1145
1452
  include Aws::Structure
1146
1453
  end
1147
1454
 
1148
- # The data structure that containts the information for a medical
1455
+ # The data structure that contains the information for a medical
1149
1456
  # transcription job.
1150
1457
  #
1151
1458
  # @!attribute [rw] medical_transcription_job_name
@@ -1227,8 +1534,8 @@ module Aws::TranscribeService
1227
1534
  #
1228
1535
  # * `Invalid file size: file size too large`- The size of your audio
1229
1536
  # file is larger than what Amazon Transcribe Medical can process.
1230
- # For more information, see [Guidlines and Quotas][1] in the *Amazon
1231
- # Transcribe Medical Guide*
1537
+ # For more information, see [Guidelines and Quotas][1] in the
1538
+ # *Amazon Transcribe Medical Guide*
1232
1539
  #
1233
1540
  # * `Invalid number of channels: number of channels too large`- Your
1234
1541
  # audio contains more channels than Amazon Transcribe Medical is
@@ -1366,7 +1673,7 @@ module Aws::TranscribeService
1366
1673
  #
1367
1674
  # @!attribute [rw] show_speaker_labels
1368
1675
  # Determines whether the transcription job uses speaker recognition to
1369
- # identify different speakers in the input audio. Speaker recongition
1676
+ # identify different speakers in the input audio. Speaker recognition
1370
1677
  # labels individual speakers in the audio file. If you set the
1371
1678
  # `ShowSpeakerLabels` field to true, you must also set the maximum
1372
1679
  # number of speaker labels in the `MaxSpeakerLabels` field.
@@ -1431,6 +1738,28 @@ module Aws::TranscribeService
1431
1738
  include Aws::Structure
1432
1739
  end
1433
1740
 
1741
+ # The object used to call your custom language model to your
1742
+ # transcription job.
1743
+ #
1744
+ # @note When making an API call, you may pass ModelSettings
1745
+ # data as a hash:
1746
+ #
1747
+ # {
1748
+ # language_model_name: "ModelName",
1749
+ # }
1750
+ #
1751
+ # @!attribute [rw] language_model_name
1752
+ # The name of your custom language model.
1753
+ # @return [String]
1754
+ #
1755
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ModelSettings AWS API Documentation
1756
+ #
1757
+ class ModelSettings < Struct.new(
1758
+ :language_model_name)
1759
+ SENSITIVE = []
1760
+ include Aws::Structure
1761
+ end
1762
+
1434
1763
  # We can't find the requested resource. Check the name and try your
1435
1764
  # request again.
1436
1765
  #
@@ -1547,7 +1876,7 @@ module Aws::TranscribeService
1547
1876
  #
1548
1877
  # {
1549
1878
  # medical_transcription_job_name: "TranscriptionJobName", # required
1550
- # 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
1879
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
1551
1880
  # media_sample_rate_hertz: 1,
1552
1881
  # media_format: "mp3", # accepts mp3, mp4, wav, flac
1553
1882
  # media: { # required
@@ -1569,10 +1898,10 @@ module Aws::TranscribeService
1569
1898
  #
1570
1899
  # @!attribute [rw] medical_transcription_job_name
1571
1900
  # The name of the medical transcription job. You can't use the
1572
- # strings "." or ".." by themselves as the job name. The name must
1573
- # also be unique within an AWS account. If you try to create a medical
1574
- # transcription job with the same name as a previous medical
1575
- # transcription job you will receive a `ConflictException` error.
1901
+ # strings "`.`" or "`..`" by themselves as the job name. The name
1902
+ # must also be unique within an AWS account. If you try to create a
1903
+ # medical transcription job with the same name as a previous medical
1904
+ # transcription job, you get a `ConflictException` error.
1576
1905
  # @return [String]
1577
1906
  #
1578
1907
  # @!attribute [rw] language_code
@@ -1704,7 +2033,7 @@ module Aws::TranscribeService
1704
2033
  #
1705
2034
  # {
1706
2035
  # transcription_job_name: "TranscriptionJobName", # required
1707
- # 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
2036
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
1708
2037
  # media_sample_rate_hertz: 1,
1709
2038
  # media_format: "mp3", # accepts mp3, mp4, wav, flac
1710
2039
  # media: { # required
@@ -1722,6 +2051,9 @@ module Aws::TranscribeService
1722
2051
  # vocabulary_filter_name: "VocabularyFilterName",
1723
2052
  # vocabulary_filter_method: "remove", # accepts remove, mask
1724
2053
  # },
2054
+ # model_settings: {
2055
+ # language_model_name: "ModelName",
2056
+ # },
1725
2057
  # job_execution_settings: {
1726
2058
  # allow_deferred_execution: false,
1727
2059
  # data_access_role_arn: "DataAccessRoleArn",
@@ -1733,10 +2065,10 @@ module Aws::TranscribeService
1733
2065
  # }
1734
2066
  #
1735
2067
  # @!attribute [rw] transcription_job_name
1736
- # The name of the job. Note that you can't use the strings "." or
1737
- # ".." by themselves as the job name. The name must also be unique
1738
- # within an AWS account. If you try to create a transcription job with
1739
- # the same name as a previous transcription job you will receive a
2068
+ # The name of the job. You can't use the strings "`.`" or "`..`"
2069
+ # by themselves as the job name. The name must also be unique within
2070
+ # an AWS account. If you try to create a transcription job with the
2071
+ # same name as a previous transcription job, you get a
1740
2072
  # `ConflictException` error.
1741
2073
  # @return [String]
1742
2074
  #
@@ -1831,6 +2163,11 @@ module Aws::TranscribeService
1831
2163
  # transcription job.
1832
2164
  # @return [Types::Settings]
1833
2165
  #
2166
+ # @!attribute [rw] model_settings
2167
+ # Choose the custom language model you use for your transcription job
2168
+ # in this parameter.
2169
+ # @return [Types::ModelSettings]
2170
+ #
1834
2171
  # @!attribute [rw] job_execution_settings
1835
2172
  # Provides information about how a transcription job is executed. Use
1836
2173
  # this field to indicate that the job can be queued for deferred
@@ -1854,6 +2191,7 @@ module Aws::TranscribeService
1854
2191
  :output_bucket_name,
1855
2192
  :output_encryption_kms_key_id,
1856
2193
  :settings,
2194
+ :model_settings,
1857
2195
  :job_execution_settings,
1858
2196
  :content_redaction)
1859
2197
  SENSITIVE = []
@@ -1875,7 +2213,7 @@ module Aws::TranscribeService
1875
2213
  # Identifies the location of a transcription.
1876
2214
  #
1877
2215
  # @!attribute [rw] transcript_file_uri
1878
- # The S3 object location of the the transcript.
2216
+ # The S3 object location of the transcript.
1879
2217
  #
1880
2218
  # Use this URI to access the transcript. If you specified an S3 bucket
1881
2219
  # in the `OutputBucketName` field when you created the job, this is
@@ -1887,7 +2225,7 @@ module Aws::TranscribeService
1887
2225
  # @!attribute [rw] redacted_transcript_file_uri
1888
2226
  # The S3 object location of the redacted transcript.
1889
2227
  #
1890
- # Use this URI to access the redacated transcript. If you specified an
2228
+ # Use this URI to access the redacted transcript. If you specified an
1891
2229
  # S3 bucket in the `OutputBucketName` field when you created the job,
1892
2230
  # this is the URI of that bucket. If you chose to store the transcript
1893
2231
  # in Amazon Transcribe, this is a shareable URL that provides secure
@@ -1996,6 +2334,10 @@ module Aws::TranscribeService
1996
2334
  # when processing the transcription job.
1997
2335
  # @return [Types::Settings]
1998
2336
  #
2337
+ # @!attribute [rw] model_settings
2338
+ # An object containing the details of your custom language model.
2339
+ # @return [Types::ModelSettings]
2340
+ #
1999
2341
  # @!attribute [rw] job_execution_settings
2000
2342
  # Provides information about how a transcription job is executed.
2001
2343
  # @return [Types::JobExecutionSettings]
@@ -2020,6 +2362,7 @@ module Aws::TranscribeService
2020
2362
  :completion_time,
2021
2363
  :failure_reason,
2022
2364
  :settings,
2365
+ :model_settings,
2023
2366
  :job_execution_settings,
2024
2367
  :content_redaction)
2025
2368
  SENSITIVE = []
@@ -2075,6 +2418,11 @@ module Aws::TranscribeService
2075
2418
  # The content redaction settings of the transcription job.
2076
2419
  # @return [Types::ContentRedaction]
2077
2420
  #
2421
+ # @!attribute [rw] model_settings
2422
+ # The object used to call your custom language model to your
2423
+ # transcription job.
2424
+ # @return [Types::ModelSettings]
2425
+ #
2078
2426
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/TranscriptionJobSummary AWS API Documentation
2079
2427
  #
2080
2428
  class TranscriptionJobSummary < Struct.new(
@@ -2086,7 +2434,8 @@ module Aws::TranscribeService
2086
2434
  :transcription_job_status,
2087
2435
  :failure_reason,
2088
2436
  :output_location_type,
2089
- :content_redaction)
2437
+ :content_redaction,
2438
+ :model_settings)
2090
2439
  SENSITIVE = []
2091
2440
  include Aws::Structure
2092
2441
  end
@@ -2096,27 +2445,27 @@ module Aws::TranscribeService
2096
2445
  #
2097
2446
  # {
2098
2447
  # vocabulary_name: "VocabularyName", # required
2099
- # 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
2448
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
2100
2449
  # vocabulary_file_uri: "Uri",
2101
2450
  # }
2102
2451
  #
2103
2452
  # @!attribute [rw] vocabulary_name
2104
- # The name of the vocabulary to update. The name is case-sensitive. If
2105
- # you try to update a vocabulary with the same name as a previous
2106
- # vocabulary you will receive a `ConflictException` error.
2453
+ # The name of the vocabulary to update. The name is case sensitive. If
2454
+ # you try to update a vocabulary with the same name as a vocabulary
2455
+ # you've already made, you get a `ConflictException` error.
2107
2456
  # @return [String]
2108
2457
  #
2109
2458
  # @!attribute [rw] language_code
2110
- # The language code of the entries in the updated vocabulary. US
2111
- # English (en-US) is the only valid language code in Amazon Transcribe
2112
- # Medical.
2459
+ # The language code of the language used for the entries in the
2460
+ # updated vocabulary. US English (en-US) is the only valid language
2461
+ # code in Amazon Transcribe Medical.
2113
2462
  # @return [String]
2114
2463
  #
2115
2464
  # @!attribute [rw] vocabulary_file_uri
2116
- # The Amazon S3 location of the text file containing the definition of
2117
- # the custom vocabulary. The URI must be in the same AWS region as the
2118
- # API endpoint you are calling. You can see the fields you need to
2119
- # enter for you Amazon S3 location in the example URI here:
2465
+ # The location in Amazon S3 of the text file that contains the you use
2466
+ # for your custom vocabulary. The URI must be in the same AWS Region
2467
+ # as the resource that you are calling. The following is the format
2468
+ # for a URI:
2120
2469
  #
2121
2470
  # `
2122
2471
  # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
@@ -2126,8 +2475,8 @@ module Aws::TranscribeService
2126
2475
  #
2127
2476
  # `https://s3.us-east-1.amazonaws.com/AWSDOC-EXAMPLE-BUCKET/vocab.txt`
2128
2477
  #
2129
- # For more information about S3 object names, see [Object Keys][1] in
2130
- # the *Amazon S3 Developer Guide*.
2478
+ # For more information about Amazon S3 object names, see [Object
2479
+ # Keys][1] in the *Amazon S3 Developer Guide*.
2131
2480
  #
2132
2481
  # For more information about custom vocabularies in Amazon Transcribe
2133
2482
  # Medical, see [Medical Custom Vocabularies][2].
@@ -2153,18 +2502,18 @@ module Aws::TranscribeService
2153
2502
  # @return [String]
2154
2503
  #
2155
2504
  # @!attribute [rw] language_code
2156
- # The language code for the text file used to update the custom
2157
- # vocabulary. US English (en-US) is the only language supported in
2158
- # Amazon Transcribe Medical.
2505
+ # The language code for the language of the text file used to update
2506
+ # the custom vocabulary. US English (en-US) is the only language
2507
+ # supported in Amazon Transcribe Medical.
2159
2508
  # @return [String]
2160
2509
  #
2161
2510
  # @!attribute [rw] last_modified_time
2162
- # The date and time the vocabulary was updated.
2511
+ # The date and time that the vocabulary was updated.
2163
2512
  # @return [Time]
2164
2513
  #
2165
2514
  # @!attribute [rw] vocabulary_state
2166
2515
  # The processing state of the update to the vocabulary. When the
2167
- # `VocabularyState` field is `READY` the vocabulary is ready to be
2516
+ # `VocabularyState` field is `READY`, the vocabulary is ready to be
2168
2517
  # used in a `StartMedicalTranscriptionJob` request.
2169
2518
  # @return [String]
2170
2519
  #
@@ -2190,8 +2539,8 @@ module Aws::TranscribeService
2190
2539
  #
2191
2540
  # @!attribute [rw] vocabulary_filter_name
2192
2541
  # The name of the vocabulary filter to update. If you try to update a
2193
- # vocabulary filter with the same name as a previous vocabulary filter
2194
- # you will receive a `ConflictException` error.
2542
+ # vocabulary filter with the same name as another vocabulary filter,
2543
+ # you get a `ConflictException` error.
2195
2544
  # @return [String]
2196
2545
  #
2197
2546
  # @!attribute [rw] words
@@ -2261,13 +2610,13 @@ module Aws::TranscribeService
2261
2610
  #
2262
2611
  # {
2263
2612
  # vocabulary_name: "VocabularyName", # required
2264
- # 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
2613
+ # language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, cy-GB, da-DK, de-CH, de-DE, en-AB, en-AU, en-GB, en-IE, en-IN, en-US, en-WL, es-ES, es-US, fa-IR, fr-CA, fr-FR, ga-IE, gd-GB, he-IL, hi-IN, id-ID, it-IT, ja-JP, ko-KR, ms-MY, nl-NL, pt-BR, pt-PT, ru-RU, ta-IN, te-IN, tr-TR, zh-CN
2265
2614
  # phrases: ["Phrase"],
2266
2615
  # vocabulary_file_uri: "Uri",
2267
2616
  # }
2268
2617
  #
2269
2618
  # @!attribute [rw] vocabulary_name
2270
- # The name of the vocabulary to update. The name is case-sensitive. If
2619
+ # The name of the vocabulary to update. The name is case sensitive. If
2271
2620
  # you try to update a vocabulary with the same name as a previous
2272
2621
  # vocabulary you will receive a `ConflictException` error.
2273
2622
  # @return [String]