aws-sdk-transcribeservice 1.39.0 → 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7fb270fbadc5c7965205c077f31f1468557892ac
4
- data.tar.gz: cce5c28cad0ae3bb90cd110332f8cd4828e3555d
2
+ SHA256:
3
+ metadata.gz: 8c60c852fab044b491617be1044d1aef8be7b56a7adf6a50b9686d5a1e39b30d
4
+ data.tar.gz: 6a484254505d0dcc40ae372777cd470111017cdb866af7320984fb8ea3a7fb83
5
5
  SHA512:
6
- metadata.gz: 7cfa92e21685b586502d5c81b839bbbe06a184ebeec672004c15fb037d042d62b35872d84458602f6d00e2617d931d6ce75245bc6ed06051cd5ae822e72ca761
7
- data.tar.gz: cc55173599059e9b6b447ed2671fe26734b2e07aff195a40f82e782b52e6dc69aa183390acfcbd0821c6791d0fc2458096d2f6f298f29639e7b7e32b06f67eaa
6
+ metadata.gz: 0f27b5d12e4f39fc2b92a6f179862ba76f01025e6ee46107bf7ea620dfe56d5c7460e5d3cc9e935831b74818a09fd63ee1fb9d203e1546a3e5f2cae3e691c293
7
+ data.tar.gz: 686d1d678a630bcd58df4053f5ca07619898423ffefbde817b47f20111d3493cf73d385630c6cd332823fa5a244930fe08475d6d57dd908115bc11fa1feb9fbb
@@ -25,7 +25,7 @@ require_relative 'aws-sdk-transcribeservice/customizations'
25
25
  # structure.
26
26
  #
27
27
  # transcribe_service = Aws::TranscribeService::Client.new
28
- # resp = transcribe_service.create_vocabulary(params)
28
+ # resp = transcribe_service.create_medical_vocabulary(params)
29
29
  #
30
30
  # See {Client} for more information.
31
31
  #
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-transcribeservice/customizations'
45
45
  # @service
46
46
  module Aws::TranscribeService
47
47
 
48
- GEM_VERSION = '1.39.0'
48
+ GEM_VERSION = '1.40.0'
49
49
 
50
50
  end
@@ -318,12 +318,87 @@ module Aws::TranscribeService
318
318
 
319
319
  # @!group API Operations
320
320
 
321
+ # Creates a new custom vocabulary that you can use to change how Amazon
322
+ # Transcribe Medical transcribes your audio file.
323
+ #
324
+ # @option params [required, String] :vocabulary_name
325
+ # The name of the custom vocabulary. This case-sensitive name must be
326
+ # unique within an AWS account. If you try to create a vocabulary with
327
+ # the same name as a previous vocabulary you will receive a
328
+ # `ConflictException` error.
329
+ #
330
+ # @option params [required, String] :language_code
331
+ # The language code used for the entries within your custom vocabulary.
332
+ # The language code of your custom vocabulary must match the language
333
+ # code of your transcription job. US English (en-US) is the only
334
+ # language code available for Amazon Transcribe Medical.
335
+ #
336
+ # @option params [required, String] :vocabulary_file_uri
337
+ # The Amazon S3 location of the text file you use to define your custom
338
+ # vocabulary. The URI must be in the same AWS region as the API endpoint
339
+ # you're calling. Enter information about your `VocabularyFileUri` in
340
+ # the following format:
341
+ #
342
+ # `
343
+ # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
344
+ # `
345
+ #
346
+ # This is an example of a vocabulary file uri location in Amazon S3:
347
+ #
348
+ # `https://s3.us-east-1.amazonaws.com/examplebucket/vocab.txt`
349
+ #
350
+ # For more information about S3 object names, see [Object Keys][1] in
351
+ # the *Amazon S3 Developer Guide*.
352
+ #
353
+ # For more information about custom vocabularies, see [Medical Custom
354
+ # Vocabularies][2].
355
+ #
356
+ #
357
+ #
358
+ # [1]: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys
359
+ # [2]: http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary-med
360
+ #
361
+ # @return [Types::CreateMedicalVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
362
+ #
363
+ # * {Types::CreateMedicalVocabularyResponse#vocabulary_name #vocabulary_name} => String
364
+ # * {Types::CreateMedicalVocabularyResponse#language_code #language_code} => String
365
+ # * {Types::CreateMedicalVocabularyResponse#vocabulary_state #vocabulary_state} => String
366
+ # * {Types::CreateMedicalVocabularyResponse#last_modified_time #last_modified_time} => Time
367
+ # * {Types::CreateMedicalVocabularyResponse#failure_reason #failure_reason} => String
368
+ #
369
+ # @example Request syntax with placeholder values
370
+ #
371
+ # resp = client.create_medical_vocabulary({
372
+ # vocabulary_name: "VocabularyName", # required
373
+ # 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
374
+ # vocabulary_file_uri: "Uri", # required
375
+ # })
376
+ #
377
+ # @example Response structure
378
+ #
379
+ # resp.vocabulary_name #=> String
380
+ # resp.language_code #=> String, one of "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"
381
+ # resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
382
+ # resp.last_modified_time #=> Time
383
+ # resp.failure_reason #=> String
384
+ #
385
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateMedicalVocabulary AWS API Documentation
386
+ #
387
+ # @overload create_medical_vocabulary(params = {})
388
+ # @param [Hash] params ({})
389
+ def create_medical_vocabulary(params = {}, options = {})
390
+ req = build_request(:create_medical_vocabulary, params)
391
+ req.send_request(options)
392
+ end
393
+
321
394
  # Creates a new custom vocabulary that you can use to change the way
322
395
  # Amazon Transcribe handles transcription of an audio file.
323
396
  #
324
397
  # @option params [required, String] :vocabulary_name
325
398
  # The name of the vocabulary. The name must be unique within an AWS
326
- # account. The name is case-sensitive.
399
+ # account. The name is case-sensitive. If you try to create a vocabulary
400
+ # with the same name as a previous vocabulary you will receive a
401
+ # `ConflictException` error.
327
402
  #
328
403
  # @option params [required, String] :language_code
329
404
  # The language code of the vocabulary entries.
@@ -394,7 +469,9 @@ module Aws::TranscribeService
394
469
  #
395
470
  # @option params [required, String] :vocabulary_filter_name
396
471
  # The vocabulary filter name. The name must be unique within the account
397
- # that contains it.
472
+ # that contains it.If you try to create a vocabulary filter with the
473
+ # same name as a previous vocabulary filter you will receive a
474
+ # `ConflictException` error.
398
475
  #
399
476
  # @option params [required, String] :language_code
400
477
  # The language code of the words in the vocabulary filter. All words in
@@ -483,6 +560,28 @@ module Aws::TranscribeService
483
560
  req.send_request(options)
484
561
  end
485
562
 
563
+ # Deletes a vocabulary from Amazon Transcribe Medical.
564
+ #
565
+ # @option params [required, String] :vocabulary_name
566
+ # The name of the vocabulary you are choosing to delete.
567
+ #
568
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
569
+ #
570
+ # @example Request syntax with placeholder values
571
+ #
572
+ # resp = client.delete_medical_vocabulary({
573
+ # vocabulary_name: "VocabularyName", # required
574
+ # })
575
+ #
576
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalVocabulary AWS API Documentation
577
+ #
578
+ # @overload delete_medical_vocabulary(params = {})
579
+ # @param [Hash] params ({})
580
+ def delete_medical_vocabulary(params = {}, options = {})
581
+ req = build_request(:delete_medical_vocabulary, params)
582
+ req.send_request(options)
583
+ end
584
+
486
585
  # Deletes a previously submitted transcription job along with any other
487
586
  # generated results such as the transcription, models, and so on.
488
587
  #
@@ -587,6 +686,7 @@ module Aws::TranscribeService
587
686
  # resp.medical_transcription_job.settings.channel_identification #=> Boolean
588
687
  # resp.medical_transcription_job.settings.show_alternatives #=> Boolean
589
688
  # resp.medical_transcription_job.settings.max_alternatives #=> Integer
689
+ # resp.medical_transcription_job.settings.vocabulary_name #=> String
590
690
  # resp.medical_transcription_job.specialty #=> String, one of "PRIMARYCARE"
591
691
  # resp.medical_transcription_job.type #=> String, one of "CONVERSATION", "DICTATION"
592
692
  #
@@ -599,6 +699,45 @@ module Aws::TranscribeService
599
699
  req.send_request(options)
600
700
  end
601
701
 
702
+ # Retrieve information about a medical vocabulary.
703
+ #
704
+ # @option params [required, String] :vocabulary_name
705
+ # The name of the vocabulary you are trying to get information about.
706
+ # The value you enter for this request is case-sensitive.
707
+ #
708
+ # @return [Types::GetMedicalVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
709
+ #
710
+ # * {Types::GetMedicalVocabularyResponse#vocabulary_name #vocabulary_name} => String
711
+ # * {Types::GetMedicalVocabularyResponse#language_code #language_code} => String
712
+ # * {Types::GetMedicalVocabularyResponse#vocabulary_state #vocabulary_state} => String
713
+ # * {Types::GetMedicalVocabularyResponse#last_modified_time #last_modified_time} => Time
714
+ # * {Types::GetMedicalVocabularyResponse#failure_reason #failure_reason} => String
715
+ # * {Types::GetMedicalVocabularyResponse#download_uri #download_uri} => String
716
+ #
717
+ # @example Request syntax with placeholder values
718
+ #
719
+ # resp = client.get_medical_vocabulary({
720
+ # vocabulary_name: "VocabularyName", # required
721
+ # })
722
+ #
723
+ # @example Response structure
724
+ #
725
+ # resp.vocabulary_name #=> String
726
+ # resp.language_code #=> String, one of "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"
727
+ # resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
728
+ # resp.last_modified_time #=> Time
729
+ # resp.failure_reason #=> String
730
+ # resp.download_uri #=> String
731
+ #
732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabulary AWS API Documentation
733
+ #
734
+ # @overload get_medical_vocabulary(params = {})
735
+ # @param [Hash] params ({})
736
+ def get_medical_vocabulary(params = {}, options = {})
737
+ req = build_request(:get_medical_vocabulary, params)
738
+ req.send_request(options)
739
+ end
740
+
602
741
  # Returns information about a transcription job. To see the status of
603
742
  # the job, check the `TranscriptionJobStatus` field. If the status is
604
743
  # `COMPLETED`, the job is finished and you can find the results at the
@@ -793,6 +932,63 @@ module Aws::TranscribeService
793
932
  req.send_request(options)
794
933
  end
795
934
 
935
+ # Returns a list of vocabularies that match the specified criteria. You
936
+ # get the entire list of vocabularies if you don't enter a value in any
937
+ # of the request parameters.
938
+ #
939
+ # @option params [String] :next_token
940
+ # If the result of your previous request to `ListMedicalVocabularies`
941
+ # was truncated, include the `NextToken` to fetch the next set of jobs.
942
+ #
943
+ # @option params [Integer] :max_results
944
+ # The maximum number of vocabularies to return in the response.
945
+ #
946
+ # @option params [String] :state_equals
947
+ # When specified, only returns vocabularies with the `VocabularyState`
948
+ # equal to the specified vocabulary state.
949
+ #
950
+ # @option params [String] :name_contains
951
+ # Returns vocabularies in the list whose name contains the specified
952
+ # string. The search is case-insensitive, `ListMedicalVocabularies`
953
+ # returns both "vocabularyname" and "VocabularyName" in the response
954
+ # list.
955
+ #
956
+ # @return [Types::ListMedicalVocabulariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
957
+ #
958
+ # * {Types::ListMedicalVocabulariesResponse#status #status} => String
959
+ # * {Types::ListMedicalVocabulariesResponse#next_token #next_token} => String
960
+ # * {Types::ListMedicalVocabulariesResponse#vocabularies #vocabularies} => Array&lt;Types::VocabularyInfo&gt;
961
+ #
962
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
963
+ #
964
+ # @example Request syntax with placeholder values
965
+ #
966
+ # resp = client.list_medical_vocabularies({
967
+ # next_token: "NextToken",
968
+ # max_results: 1,
969
+ # state_equals: "PENDING", # accepts PENDING, READY, FAILED
970
+ # name_contains: "VocabularyName",
971
+ # })
972
+ #
973
+ # @example Response structure
974
+ #
975
+ # resp.status #=> String, one of "PENDING", "READY", "FAILED"
976
+ # resp.next_token #=> String
977
+ # resp.vocabularies #=> Array
978
+ # resp.vocabularies[0].vocabulary_name #=> String
979
+ # resp.vocabularies[0].language_code #=> String, one of "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"
980
+ # resp.vocabularies[0].last_modified_time #=> Time
981
+ # resp.vocabularies[0].vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
982
+ #
983
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabularies AWS API Documentation
984
+ #
985
+ # @overload list_medical_vocabularies(params = {})
986
+ # @param [Hash] params ({})
987
+ def list_medical_vocabularies(params = {}, options = {})
988
+ req = build_request(:list_medical_vocabularies, params)
989
+ req.send_request(options)
990
+ end
991
+
796
992
  # Lists transcription jobs with the specified status.
797
993
  #
798
994
  # @option params [String] :status
@@ -897,7 +1093,7 @@ module Aws::TranscribeService
897
1093
  #
898
1094
  # @example Response structure
899
1095
  #
900
- # resp.status #=> String, one of "QUEUED", "IN_PROGRESS", "FAILED", "COMPLETED"
1096
+ # resp.status #=> String, one of "PENDING", "READY", "FAILED"
901
1097
  # resp.next_token #=> String
902
1098
  # resp.vocabularies #=> Array
903
1099
  # resp.vocabularies[0].vocabulary_name #=> String
@@ -967,7 +1163,9 @@ module Aws::TranscribeService
967
1163
  # @option params [required, String] :medical_transcription_job_name
968
1164
  # The name of the medical transcription job. You can't use the strings
969
1165
  # "." or ".." by themselves as the job name. The name must also be
970
- # unique within an AWS account.
1166
+ # unique within an AWS account. If you try to create a medical
1167
+ # transcription job with the same name as a previous medical
1168
+ # transcription job you will receive a `ConflictException` error.
971
1169
  #
972
1170
  # @option params [required, String] :language_code
973
1171
  # The language code for the language spoken in the input media file. US
@@ -1048,9 +1246,10 @@ module Aws::TranscribeService
1048
1246
  # The medical specialty of any clinician speaking in the input media.
1049
1247
  #
1050
1248
  # @option params [required, String] :type
1051
- # The speech of clinician in the input audio. `CONVERSATION` refers to
1052
- # conversations clinicians have with patients. `DICTATION` refers to
1053
- # medical professionals dictating their notes about a patient encounter.
1249
+ # The type of speech in the input audio. `CONVERSATION` refers to
1250
+ # conversations between two or more speakers, e.g., a conversations
1251
+ # between doctors and patients. `DICTATION` refers to single-speaker
1252
+ # dictated speech, e.g., for clinical notes.
1054
1253
  #
1055
1254
  # @return [Types::StartMedicalTranscriptionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1056
1255
  #
@@ -1074,6 +1273,7 @@ module Aws::TranscribeService
1074
1273
  # channel_identification: false,
1075
1274
  # show_alternatives: false,
1076
1275
  # max_alternatives: 1,
1276
+ # vocabulary_name: "VocabularyName",
1077
1277
  # },
1078
1278
  # specialty: "PRIMARYCARE", # required, accepts PRIMARYCARE
1079
1279
  # type: "CONVERSATION", # required, accepts CONVERSATION, DICTATION
@@ -1097,6 +1297,7 @@ module Aws::TranscribeService
1097
1297
  # resp.medical_transcription_job.settings.channel_identification #=> Boolean
1098
1298
  # resp.medical_transcription_job.settings.show_alternatives #=> Boolean
1099
1299
  # resp.medical_transcription_job.settings.max_alternatives #=> Integer
1300
+ # resp.medical_transcription_job.settings.vocabulary_name #=> String
1100
1301
  # resp.medical_transcription_job.specialty #=> String, one of "PRIMARYCARE"
1101
1302
  # resp.medical_transcription_job.type #=> String, one of "CONVERSATION", "DICTATION"
1102
1303
  #
@@ -1114,7 +1315,9 @@ module Aws::TranscribeService
1114
1315
  # @option params [required, String] :transcription_job_name
1115
1316
  # The name of the job. Note that you can't use the strings "." or
1116
1317
  # ".." by themselves as the job name. The name must also be unique
1117
- # within an AWS account.
1318
+ # within an AWS account. If you try to create a transcription job with
1319
+ # the same name as a previous transcription job you will receive a
1320
+ # `ConflictException` error.
1118
1321
  #
1119
1322
  # @option params [required, String] :language_code
1120
1323
  # The language code for the language used in the input media file.
@@ -1278,12 +1481,83 @@ module Aws::TranscribeService
1278
1481
  req.send_request(options)
1279
1482
  end
1280
1483
 
1484
+ # Updates an existing vocabulary with new values in a different text
1485
+ # file. The `UpdateMedicalVocabulary` operation overwrites all of the
1486
+ # existing information with the values that you provide in the request.
1487
+ #
1488
+ # @option params [required, String] :vocabulary_name
1489
+ # The name of the vocabulary to update. The name is case-sensitive. If
1490
+ # you try to update a vocabulary with the same name as a previous
1491
+ # vocabulary you will receive a `ConflictException` error.
1492
+ #
1493
+ # @option params [required, String] :language_code
1494
+ # The language code of the entries in the updated vocabulary. US English
1495
+ # (en-US) is the only valid language code in Amazon Transcribe Medical.
1496
+ #
1497
+ # @option params [String] :vocabulary_file_uri
1498
+ # The Amazon S3 location of the text file containing the definition of
1499
+ # the custom vocabulary. The URI must be in the same AWS region as the
1500
+ # API endpoint you are calling. You can see the fields you need to enter
1501
+ # for you Amazon S3 location in the example URI here:
1502
+ #
1503
+ # `
1504
+ # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
1505
+ # `
1506
+ #
1507
+ # For example:
1508
+ #
1509
+ # `https://s3.us-east-1.amazonaws.com/examplebucket/vocab.txt`
1510
+ #
1511
+ # For more information about S3 object names, see [Object Keys][1] in
1512
+ # the *Amazon S3 Developer Guide*.
1513
+ #
1514
+ # For more information about custom vocabularies in Amazon Transcribe
1515
+ # Medical, see [Medical Custom Vocabularies][2].
1516
+ #
1517
+ #
1518
+ #
1519
+ # [1]: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys
1520
+ # [2]: http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary
1521
+ #
1522
+ # @return [Types::UpdateMedicalVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1523
+ #
1524
+ # * {Types::UpdateMedicalVocabularyResponse#vocabulary_name #vocabulary_name} => String
1525
+ # * {Types::UpdateMedicalVocabularyResponse#language_code #language_code} => String
1526
+ # * {Types::UpdateMedicalVocabularyResponse#last_modified_time #last_modified_time} => Time
1527
+ # * {Types::UpdateMedicalVocabularyResponse#vocabulary_state #vocabulary_state} => String
1528
+ #
1529
+ # @example Request syntax with placeholder values
1530
+ #
1531
+ # resp = client.update_medical_vocabulary({
1532
+ # vocabulary_name: "VocabularyName", # required
1533
+ # 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
1534
+ # vocabulary_file_uri: "Uri",
1535
+ # })
1536
+ #
1537
+ # @example Response structure
1538
+ #
1539
+ # resp.vocabulary_name #=> String
1540
+ # resp.language_code #=> String, one of "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"
1541
+ # resp.last_modified_time #=> Time
1542
+ # resp.vocabulary_state #=> String, one of "PENDING", "READY", "FAILED"
1543
+ #
1544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateMedicalVocabulary AWS API Documentation
1545
+ #
1546
+ # @overload update_medical_vocabulary(params = {})
1547
+ # @param [Hash] params ({})
1548
+ def update_medical_vocabulary(params = {}, options = {})
1549
+ req = build_request(:update_medical_vocabulary, params)
1550
+ req.send_request(options)
1551
+ end
1552
+
1281
1553
  # Updates an existing vocabulary with new values. The `UpdateVocabulary`
1282
1554
  # operation overwrites all of the existing information with the values
1283
1555
  # that you provide in the request.
1284
1556
  #
1285
1557
  # @option params [required, String] :vocabulary_name
1286
- # The name of the vocabulary to update. The name is case-sensitive.
1558
+ # The name of the vocabulary to update. The name is case-sensitive. If
1559
+ # you try to update a vocabulary with the same name as a previous
1560
+ # vocabulary you will receive a `ConflictException` error.
1287
1561
  #
1288
1562
  # @option params [required, String] :language_code
1289
1563
  # The language code of the vocabulary entries.
@@ -1350,7 +1624,9 @@ module Aws::TranscribeService
1350
1624
  # Updates a vocabulary filter with a new list of filtered words.
1351
1625
  #
1352
1626
  # @option params [required, String] :vocabulary_filter_name
1353
- # The name of the vocabulary filter to update.
1627
+ # The name of the vocabulary filter to update. If you try to update a
1628
+ # vocabulary filter with the same name as a previous vocabulary filter
1629
+ # you will receive a `ConflictException` error.
1354
1630
  #
1355
1631
  # @option params [Array<String>] :words
1356
1632
  # The words to use in the vocabulary filter. Only use characters from
@@ -1422,7 +1698,7 @@ module Aws::TranscribeService
1422
1698
  params: params,
1423
1699
  config: config)
1424
1700
  context[:gem_name] = 'aws-sdk-transcribeservice'
1425
- context[:gem_version] = '1.39.0'
1701
+ context[:gem_version] = '1.40.0'
1426
1702
  Seahorse::Client::Request.new(handlers, context)
1427
1703
  end
1428
1704
 
@@ -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/examplebucket/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
@@ -267,6 +361,24 @@ module Aws::TranscribeService
267
361
  include Aws::Structure
268
362
  end
269
363
 
364
+ # @note When making an API call, you may pass DeleteMedicalVocabularyRequest
365
+ # data as a hash:
366
+ #
367
+ # {
368
+ # vocabulary_name: "VocabularyName", # required
369
+ # }
370
+ #
371
+ # @!attribute [rw] vocabulary_name
372
+ # The name of the vocabulary you are choosing to delete.
373
+ # @return [String]
374
+ #
375
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteMedicalVocabularyRequest AWS API Documentation
376
+ #
377
+ class DeleteMedicalVocabularyRequest < Struct.new(
378
+ :vocabulary_name)
379
+ include Aws::Structure
380
+ end
381
+
270
382
  # @note When making an API call, you may pass DeleteTranscriptionJobRequest
271
383
  # data as a hash:
272
384
  #
@@ -351,6 +463,65 @@ module Aws::TranscribeService
351
463
  include Aws::Structure
352
464
  end
353
465
 
466
+ # @note When making an API call, you may pass GetMedicalVocabularyRequest
467
+ # data as a hash:
468
+ #
469
+ # {
470
+ # vocabulary_name: "VocabularyName", # required
471
+ # }
472
+ #
473
+ # @!attribute [rw] vocabulary_name
474
+ # The name of the vocabulary you are trying to get information about.
475
+ # The value you enter for this request is case-sensitive.
476
+ # @return [String]
477
+ #
478
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabularyRequest AWS API Documentation
479
+ #
480
+ class GetMedicalVocabularyRequest < Struct.new(
481
+ :vocabulary_name)
482
+ include Aws::Structure
483
+ end
484
+
485
+ # @!attribute [rw] vocabulary_name
486
+ # The valid name that Amazon Transcribe Medical returns.
487
+ # @return [String]
488
+ #
489
+ # @!attribute [rw] language_code
490
+ # The valid language code returned for your vocabulary entries.
491
+ # @return [String]
492
+ #
493
+ # @!attribute [rw] vocabulary_state
494
+ # The processing state of the vocabulary.
495
+ # @return [String]
496
+ #
497
+ # @!attribute [rw] last_modified_time
498
+ # The date and time the vocabulary was last modified with a text file
499
+ # different from what was previously used.
500
+ # @return [Time]
501
+ #
502
+ # @!attribute [rw] failure_reason
503
+ # If the `VocabularyState` is `FAILED`, this field contains
504
+ # information about why the job failed.
505
+ # @return [String]
506
+ #
507
+ # @!attribute [rw] download_uri
508
+ # The Amazon S3 location where the vocabulary is stored. Use this URI
509
+ # to get the contents of the vocabulary. You can download your
510
+ # vocabulary from the URI for a limited time.
511
+ # @return [String]
512
+ #
513
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetMedicalVocabularyResponse AWS API Documentation
514
+ #
515
+ class GetMedicalVocabularyResponse < Struct.new(
516
+ :vocabulary_name,
517
+ :language_code,
518
+ :vocabulary_state,
519
+ :last_modified_time,
520
+ :failure_reason,
521
+ :download_uri)
522
+ include Aws::Structure
523
+ end
524
+
354
525
  # @note When making an API call, you may pass GetTranscriptionJobRequest
355
526
  # data as a hash:
356
527
  #
@@ -625,6 +796,75 @@ module Aws::TranscribeService
625
796
  include Aws::Structure
626
797
  end
627
798
 
799
+ # @note When making an API call, you may pass ListMedicalVocabulariesRequest
800
+ # data as a hash:
801
+ #
802
+ # {
803
+ # next_token: "NextToken",
804
+ # max_results: 1,
805
+ # state_equals: "PENDING", # accepts PENDING, READY, FAILED
806
+ # name_contains: "VocabularyName",
807
+ # }
808
+ #
809
+ # @!attribute [rw] next_token
810
+ # If the result of your previous request to `ListMedicalVocabularies`
811
+ # was truncated, include the `NextToken` to fetch the next set of
812
+ # jobs.
813
+ # @return [String]
814
+ #
815
+ # @!attribute [rw] max_results
816
+ # The maximum number of vocabularies to return in the response.
817
+ # @return [Integer]
818
+ #
819
+ # @!attribute [rw] state_equals
820
+ # When specified, only returns vocabularies with the `VocabularyState`
821
+ # equal to the specified vocabulary state.
822
+ # @return [String]
823
+ #
824
+ # @!attribute [rw] name_contains
825
+ # Returns vocabularies in the list whose name contains the specified
826
+ # string. The search is case-insensitive, `ListMedicalVocabularies`
827
+ # returns both "vocabularyname" and "VocabularyName" in the
828
+ # response list.
829
+ # @return [String]
830
+ #
831
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabulariesRequest AWS API Documentation
832
+ #
833
+ class ListMedicalVocabulariesRequest < Struct.new(
834
+ :next_token,
835
+ :max_results,
836
+ :state_equals,
837
+ :name_contains)
838
+ include Aws::Structure
839
+ end
840
+
841
+ # @!attribute [rw] status
842
+ # The requested vocabulary state.
843
+ # @return [String]
844
+ #
845
+ # @!attribute [rw] next_token
846
+ # The `ListMedicalVocabularies` operation returns a page of
847
+ # vocabularies at a time. The maximum size of the page is set by the
848
+ # `MaxResults` parameter. If there are more jobs in the list than the
849
+ # page size, Amazon Transcribe Medical returns the `NextPage` token.
850
+ # Include the token in the next request to the
851
+ # `ListMedicalVocabularies` operation to return the next page of jobs.
852
+ # @return [String]
853
+ #
854
+ # @!attribute [rw] vocabularies
855
+ # A list of objects that describe the vocabularies that match the
856
+ # search criteria in the request.
857
+ # @return [Array<Types::VocabularyInfo>]
858
+ #
859
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListMedicalVocabulariesResponse AWS API Documentation
860
+ #
861
+ class ListMedicalVocabulariesResponse < Struct.new(
862
+ :status,
863
+ :next_token,
864
+ :vocabularies)
865
+ include Aws::Structure
866
+ end
867
+
628
868
  # @note When making an API call, you may pass ListTranscriptionJobsRequest
629
869
  # data as a hash:
630
870
  #
@@ -1092,6 +1332,7 @@ module Aws::TranscribeService
1092
1332
  # channel_identification: false,
1093
1333
  # show_alternatives: false,
1094
1334
  # max_alternatives: 1,
1335
+ # vocabulary_name: "VocabularyName",
1095
1336
  # }
1096
1337
  #
1097
1338
  # @!attribute [rw] show_speaker_labels
@@ -1143,6 +1384,11 @@ module Aws::TranscribeService
1143
1384
  # `ShowAlternatives` field to true.
1144
1385
  # @return [Integer]
1145
1386
  #
1387
+ # @!attribute [rw] vocabulary_name
1388
+ # The name of the vocabulary to use when processing a medical
1389
+ # transcription job.
1390
+ # @return [String]
1391
+ #
1146
1392
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/MedicalTranscriptionSetting AWS API Documentation
1147
1393
  #
1148
1394
  class MedicalTranscriptionSetting < Struct.new(
@@ -1150,7 +1396,8 @@ module Aws::TranscribeService
1150
1396
  :max_speaker_labels,
1151
1397
  :channel_identification,
1152
1398
  :show_alternatives,
1153
- :max_alternatives)
1399
+ :max_alternatives,
1400
+ :vocabulary_name)
1154
1401
  include Aws::Structure
1155
1402
  end
1156
1403
 
@@ -1282,6 +1529,7 @@ module Aws::TranscribeService
1282
1529
  # channel_identification: false,
1283
1530
  # show_alternatives: false,
1284
1531
  # max_alternatives: 1,
1532
+ # vocabulary_name: "VocabularyName",
1285
1533
  # },
1286
1534
  # specialty: "PRIMARYCARE", # required, accepts PRIMARYCARE
1287
1535
  # type: "CONVERSATION", # required, accepts CONVERSATION, DICTATION
@@ -1290,7 +1538,9 @@ module Aws::TranscribeService
1290
1538
  # @!attribute [rw] medical_transcription_job_name
1291
1539
  # The name of the medical transcription job. You can't use the
1292
1540
  # strings "." or ".." by themselves as the job name. The name must
1293
- # also be unique within an AWS account.
1541
+ # also be unique within an AWS account. If you try to create a medical
1542
+ # transcription job with the same name as a previous medical
1543
+ # transcription job you will receive a `ConflictException` error.
1294
1544
  # @return [String]
1295
1545
  #
1296
1546
  # @!attribute [rw] language_code
@@ -1382,10 +1632,10 @@ module Aws::TranscribeService
1382
1632
  # @return [String]
1383
1633
  #
1384
1634
  # @!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.
1635
+ # The type of speech in the input audio. `CONVERSATION` refers to
1636
+ # conversations between two or more speakers, e.g., a conversations
1637
+ # between doctors and patients. `DICTATION` refers to single-speaker
1638
+ # dictated speech, e.g., for clinical notes.
1389
1639
  # @return [String]
1390
1640
  #
1391
1641
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartMedicalTranscriptionJobRequest AWS API Documentation
@@ -1451,7 +1701,9 @@ module Aws::TranscribeService
1451
1701
  # @!attribute [rw] transcription_job_name
1452
1702
  # The name of the job. Note that you can't use the strings "." or
1453
1703
  # ".." by themselves as the job name. The name must also be unique
1454
- # within an AWS account.
1704
+ # within an AWS account. If you try to create a transcription job with
1705
+ # the same name as a previous transcription job you will receive a
1706
+ # `ConflictException` error.
1455
1707
  # @return [String]
1456
1708
  #
1457
1709
  # @!attribute [rw] language_code
@@ -1800,6 +2052,92 @@ module Aws::TranscribeService
1800
2052
  include Aws::Structure
1801
2053
  end
1802
2054
 
2055
+ # @note When making an API call, you may pass UpdateMedicalVocabularyRequest
2056
+ # data as a hash:
2057
+ #
2058
+ # {
2059
+ # vocabulary_name: "VocabularyName", # required
2060
+ # 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
2061
+ # vocabulary_file_uri: "Uri",
2062
+ # }
2063
+ #
2064
+ # @!attribute [rw] vocabulary_name
2065
+ # The name of the vocabulary to update. The name is case-sensitive. If
2066
+ # you try to update a vocabulary with the same name as a previous
2067
+ # vocabulary you will receive a `ConflictException` error.
2068
+ # @return [String]
2069
+ #
2070
+ # @!attribute [rw] language_code
2071
+ # The language code of the entries in the updated vocabulary. US
2072
+ # English (en-US) is the only valid language code in Amazon Transcribe
2073
+ # Medical.
2074
+ # @return [String]
2075
+ #
2076
+ # @!attribute [rw] vocabulary_file_uri
2077
+ # The Amazon S3 location of the text file containing the definition of
2078
+ # the custom vocabulary. The URI must be in the same AWS region as the
2079
+ # API endpoint you are calling. You can see the fields you need to
2080
+ # enter for you Amazon S3 location in the example URI here:
2081
+ #
2082
+ # `
2083
+ # https://s3.<aws-region>.amazonaws.com/<bucket-name>/<keyprefix>/<objectkey>
2084
+ # `
2085
+ #
2086
+ # For example:
2087
+ #
2088
+ # `https://s3.us-east-1.amazonaws.com/examplebucket/vocab.txt`
2089
+ #
2090
+ # For more information about S3 object names, see [Object Keys][1] in
2091
+ # the *Amazon S3 Developer Guide*.
2092
+ #
2093
+ # For more information about custom vocabularies in Amazon Transcribe
2094
+ # Medical, see [Medical Custom Vocabularies][2].
2095
+ #
2096
+ #
2097
+ #
2098
+ # [1]: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys
2099
+ # [2]: http://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html#how-vocabulary
2100
+ # @return [String]
2101
+ #
2102
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateMedicalVocabularyRequest AWS API Documentation
2103
+ #
2104
+ class UpdateMedicalVocabularyRequest < Struct.new(
2105
+ :vocabulary_name,
2106
+ :language_code,
2107
+ :vocabulary_file_uri)
2108
+ include Aws::Structure
2109
+ end
2110
+
2111
+ # @!attribute [rw] vocabulary_name
2112
+ # The name of the updated vocabulary.
2113
+ # @return [String]
2114
+ #
2115
+ # @!attribute [rw] language_code
2116
+ # The language code for the text file used to update the custom
2117
+ # vocabulary. US English (en-US) is the only language supported in
2118
+ # Amazon Transcribe Medical.
2119
+ # @return [String]
2120
+ #
2121
+ # @!attribute [rw] last_modified_time
2122
+ # The date and time the vocabulary was updated.
2123
+ # @return [Time]
2124
+ #
2125
+ # @!attribute [rw] vocabulary_state
2126
+ # The processing state of the update to the vocabulary. When the
2127
+ # `VocabularyState` field is `READY` the vocabulary is ready to be
2128
+ # used in a `StartMedicalTranscriptionJob` request.
2129
+ # @return [String]
2130
+ #
2131
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateMedicalVocabularyResponse AWS API Documentation
2132
+ #
2133
+ class UpdateMedicalVocabularyResponse < Struct.new(
2134
+ :vocabulary_name,
2135
+ :language_code,
2136
+ :last_modified_time,
2137
+ :vocabulary_state)
2138
+ include Aws::Structure
2139
+ end
2140
+
1803
2141
  # @note When making an API call, you may pass UpdateVocabularyFilterRequest
1804
2142
  # data as a hash:
1805
2143
  #
@@ -1810,7 +2148,9 @@ module Aws::TranscribeService
1810
2148
  # }
1811
2149
  #
1812
2150
  # @!attribute [rw] vocabulary_filter_name
1813
- # The name of the vocabulary filter to update.
2151
+ # The name of the vocabulary filter to update. If you try to update a
2152
+ # vocabulary filter with the same name as a previous vocabulary filter
2153
+ # you will receive a `ConflictException` error.
1814
2154
  # @return [String]
1815
2155
  #
1816
2156
  # @!attribute [rw] words
@@ -1884,7 +2224,9 @@ module Aws::TranscribeService
1884
2224
  # }
1885
2225
  #
1886
2226
  # @!attribute [rw] vocabulary_name
1887
- # The name of the vocabulary to update. The name is case-sensitive.
2227
+ # The name of the vocabulary to update. The name is case-sensitive. If
2228
+ # you try to update a vocabulary with the same name as a previous
2229
+ # vocabulary you will receive a `ConflictException` error.
1888
2230
  # @return [String]
1889
2231
  #
1890
2232
  # @!attribute [rw] language_code
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-transcribeservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.39.0
4
+ version: 1.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-06 00:00:00.000000000 Z
11
+ date: 2020-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - Amazon Transcribe Service