aws-sdk-transcribeservice 1.81.0 → 1.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-transcribeservice/client.rb +105 -30
- data/lib/aws-sdk-transcribeservice/client_api.rb +4 -0
- data/lib/aws-sdk-transcribeservice/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-transcribeservice/endpoint_provider.rb +37 -34
- data/lib/aws-sdk-transcribeservice/types.rb +116 -30
- data/lib/aws-sdk-transcribeservice.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 112ca41c3082ed2909fe18eaf8603d7030b55ebc7f8fd03b84d9e4e624e82436
|
4
|
+
data.tar.gz: 900d91161fa78bc355e11ea9b9ebf674cf6bb46e378abb0ce00decec2cd2dcd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af37c94ea0e8efeb6ea7e9f4a1444b7bec295b754e563457da995e0f98aad632148da2d5364b177ad79d9f2d66ad997e2c0f52b66f8d03709b272be21cc8e98a
|
7
|
+
data.tar.gz: ff3a0a44560e2bf92dbe851207e87a3a3c7b03d2f7ed1b7fe8cf385e94ac6055d56d8863836e0a131afcbede253c589ca3f2aa5dcd79532032d01952f71fba38
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.82.0 (2023-03-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon Transcribe now supports role access for these API operations: CreateVocabulary, UpdateVocabulary, CreateVocabularyFilter, and UpdateVocabularyFilter.
|
8
|
+
|
4
9
|
1.81.0 (2023-01-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.82.0
|
@@ -386,11 +386,11 @@ module Aws::TranscribeService
|
|
386
386
|
# transcription request, as categories cannot be applied retroactively.
|
387
387
|
#
|
388
388
|
# When creating a new category, you can use the `InputType` parameter to
|
389
|
-
# label the category as a
|
390
|
-
#
|
391
|
-
#
|
392
|
-
#
|
393
|
-
#
|
389
|
+
# label the category as a `POST_CALL` or a `REAL_TIME` category.
|
390
|
+
# `POST_CALL` categories can only be applied to post-call transcriptions
|
391
|
+
# and `REAL_TIME` categories can only be applied to real-time
|
392
|
+
# transcriptions. If you do not include `InputType`, your category is
|
393
|
+
# created as a `POST_CALL` category by default.
|
394
394
|
#
|
395
395
|
# Call Analytics categories are composed of rules. For each category,
|
396
396
|
# you must create between 1 and 20 rules. Rules can include these
|
@@ -399,8 +399,8 @@ module Aws::TranscribeService
|
|
399
399
|
# To update an existing category, see .
|
400
400
|
#
|
401
401
|
# To learn more about Call Analytics categories, see [Creating
|
402
|
-
# categories for
|
403
|
-
#
|
402
|
+
# categories for post-call transcriptions][1] and [Creating categories
|
403
|
+
# for real-time transcriptions][2].
|
404
404
|
#
|
405
405
|
#
|
406
406
|
#
|
@@ -425,19 +425,19 @@ module Aws::TranscribeService
|
|
425
425
|
# call.
|
426
426
|
#
|
427
427
|
# @option params [String] :input_type
|
428
|
-
# Choose whether you want to create a
|
429
|
-
# your Call Analytics transcription.
|
428
|
+
# Choose whether you want to create a real-time or a post-call category
|
429
|
+
# for your Call Analytics transcription.
|
430
430
|
#
|
431
|
-
# Specifying `POST_CALL` assigns your category to
|
432
|
-
# categories with this input type cannot be applied to
|
433
|
-
# (real-time) transcriptions.
|
431
|
+
# Specifying `POST_CALL` assigns your category to post-call
|
432
|
+
# transcriptions; categories with this input type cannot be applied to
|
433
|
+
# streaming (real-time) transcriptions.
|
434
434
|
#
|
435
435
|
# Specifying `REAL_TIME` assigns your category to streaming
|
436
436
|
# transcriptions; categories with this input type cannot be applied to
|
437
|
-
#
|
437
|
+
# post-call transcriptions.
|
438
438
|
#
|
439
|
-
# If you do not include `InputType`, your category is created as a
|
440
|
-
# category by default.
|
439
|
+
# If you do not include `InputType`, your category is created as a
|
440
|
+
# post-call category by default.
|
441
441
|
#
|
442
442
|
# @return [Types::CreateCallAnalyticsCategoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
443
443
|
#
|
@@ -710,10 +710,11 @@ module Aws::TranscribeService
|
|
710
710
|
# Creates a new custom medical vocabulary.
|
711
711
|
#
|
712
712
|
# Before creating a new custom medical vocabulary, you must first upload
|
713
|
-
# a text file that contains your
|
714
|
-
#
|
715
|
-
#
|
716
|
-
# `CreateMedicalVocabulary` does not support the `Phrases` flag
|
713
|
+
# a text file that contains your vocabulary table into an Amazon S3
|
714
|
+
# bucket. Note that this differs from , where you can include a list of
|
715
|
+
# terms within your request using the `Phrases` flag;
|
716
|
+
# `CreateMedicalVocabulary` does not support the `Phrases` flag and only
|
717
|
+
# accepts vocabularies in table format.
|
717
718
|
#
|
718
719
|
# Each language has a character set that contains all allowed characters
|
719
720
|
# for that specific language. If you use unsupported characters, your
|
@@ -886,6 +887,23 @@ module Aws::TranscribeService
|
|
886
887
|
#
|
887
888
|
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html
|
888
889
|
#
|
890
|
+
# @option params [String] :data_access_role_arn
|
891
|
+
# The Amazon Resource Name (ARN) of an IAM role that has permissions to
|
892
|
+
# access the Amazon S3 bucket that contains your input files (in this
|
893
|
+
# case, your custom vocabulary). If the role that you specify doesn’t
|
894
|
+
# have the appropriate permissions to access the specified Amazon S3
|
895
|
+
# location, your request fails.
|
896
|
+
#
|
897
|
+
# IAM role ARNs have the format
|
898
|
+
# `arn:partition:iam::account:role/role-name-with-path`. For example:
|
899
|
+
# `arn:aws:iam::111122223333:role/Admin`.
|
900
|
+
#
|
901
|
+
# For more information, see [IAM ARNs][1].
|
902
|
+
#
|
903
|
+
#
|
904
|
+
#
|
905
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns
|
906
|
+
#
|
889
907
|
# @return [Types::CreateVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
890
908
|
#
|
891
909
|
# * {Types::CreateVocabularyResponse#vocabulary_name #vocabulary_name} => String
|
@@ -907,6 +925,7 @@ module Aws::TranscribeService
|
|
907
925
|
# value: "TagValue", # required
|
908
926
|
# },
|
909
927
|
# ],
|
928
|
+
# data_access_role_arn: "DataAccessRoleArn",
|
910
929
|
# })
|
911
930
|
#
|
912
931
|
# @example Response structure
|
@@ -1012,6 +1031,23 @@ module Aws::TranscribeService
|
|
1012
1031
|
#
|
1013
1032
|
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html
|
1014
1033
|
#
|
1034
|
+
# @option params [String] :data_access_role_arn
|
1035
|
+
# The Amazon Resource Name (ARN) of an IAM role that has permissions to
|
1036
|
+
# access the Amazon S3 bucket that contains your input files (in this
|
1037
|
+
# case, your custom vocabulary filter). If the role that you specify
|
1038
|
+
# doesn’t have the appropriate permissions to access the specified
|
1039
|
+
# Amazon S3 location, your request fails.
|
1040
|
+
#
|
1041
|
+
# IAM role ARNs have the format
|
1042
|
+
# `arn:partition:iam::account:role/role-name-with-path`. For example:
|
1043
|
+
# `arn:aws:iam::111122223333:role/Admin`.
|
1044
|
+
#
|
1045
|
+
# For more information, see [IAM ARNs][1].
|
1046
|
+
#
|
1047
|
+
#
|
1048
|
+
#
|
1049
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns
|
1050
|
+
#
|
1015
1051
|
# @return [Types::CreateVocabularyFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1016
1052
|
#
|
1017
1053
|
# * {Types::CreateVocabularyFilterResponse#vocabulary_filter_name #vocabulary_filter_name} => String
|
@@ -1031,6 +1067,7 @@ module Aws::TranscribeService
|
|
1031
1067
|
# value: "TagValue", # required
|
1032
1068
|
# },
|
1033
1069
|
# ],
|
1070
|
+
# data_access_role_arn: "DataAccessRoleArn",
|
1034
1071
|
# })
|
1035
1072
|
#
|
1036
1073
|
# @example Response structure
|
@@ -2370,13 +2407,15 @@ module Aws::TranscribeService
|
|
2370
2407
|
# create them before submitting your job request. Categories cannot be
|
2371
2408
|
# retroactively applied to a job. To create a new category, use the
|
2372
2409
|
# operation. To learn more about Call Analytics categories, see
|
2373
|
-
# [Creating categories for
|
2374
|
-
# categories for
|
2410
|
+
# [Creating categories for post-call transcriptions][2] and [Creating
|
2411
|
+
# categories for real-time transcriptions][3].
|
2375
2412
|
#
|
2376
2413
|
# To make a `StartCallAnalyticsJob` request, you must first upload your
|
2377
2414
|
# media file into an Amazon S3 bucket; you can then specify the Amazon
|
2378
2415
|
# S3 location of the file using the `Media` parameter.
|
2379
2416
|
#
|
2417
|
+
# Note that job queuing is enabled by default for Call Analytics jobs.
|
2418
|
+
#
|
2380
2419
|
# You must include the following parameters in your
|
2381
2420
|
# `StartCallAnalyticsJob` request:
|
2382
2421
|
#
|
@@ -2482,7 +2521,7 @@ module Aws::TranscribeService
|
|
2482
2521
|
# If you specify a KMS key to encrypt your output, you must also specify
|
2483
2522
|
# an output location using the `OutputLocation` parameter.
|
2484
2523
|
#
|
2485
|
-
# Note that the
|
2524
|
+
# Note that the role making the request must have permission to use the
|
2486
2525
|
# specified KMS key.
|
2487
2526
|
#
|
2488
2527
|
# @option params [String] :data_access_role_arn
|
@@ -2782,7 +2821,7 @@ module Aws::TranscribeService
|
|
2782
2821
|
# If you specify a KMS key to encrypt your output, you must also specify
|
2783
2822
|
# an output location using the `OutputLocation` parameter.
|
2784
2823
|
#
|
2785
|
-
# Note that the
|
2824
|
+
# Note that the role making the request must have permission to use the
|
2786
2825
|
# specified KMS key.
|
2787
2826
|
#
|
2788
2827
|
# @option params [Hash<String,String>] :kms_encryption_context
|
@@ -3097,7 +3136,7 @@ module Aws::TranscribeService
|
|
3097
3136
|
# If you specify a KMS key to encrypt your output, you must also specify
|
3098
3137
|
# an output location using the `OutputLocation` parameter.
|
3099
3138
|
#
|
3100
|
-
# Note that the
|
3139
|
+
# Note that the role making the request must have permission to use the
|
3101
3140
|
# specified KMS key.
|
3102
3141
|
#
|
3103
3142
|
# @option params [Hash<String,String>] :kms_encryption_context
|
@@ -3504,11 +3543,11 @@ module Aws::TranscribeService
|
|
3504
3543
|
# in the specified category.
|
3505
3544
|
#
|
3506
3545
|
# @option params [String] :input_type
|
3507
|
-
# Choose whether you want to update a
|
3508
|
-
#
|
3509
|
-
#
|
3510
|
-
#
|
3511
|
-
#
|
3546
|
+
# Choose whether you want to update a real-time or a post-call category.
|
3547
|
+
# The input type you specify must match the input type specified when
|
3548
|
+
# the category was created. For example, if you created a category with
|
3549
|
+
# the `POST_CALL` input type, you must use `POST_CALL` as the input type
|
3550
|
+
# when updating this category.
|
3512
3551
|
#
|
3513
3552
|
# @return [Types::UpdateCallAnalyticsCategoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3514
3553
|
#
|
@@ -3764,6 +3803,23 @@ module Aws::TranscribeService
|
|
3764
3803
|
# Note that if you include `VocabularyFileUri` in your request, you
|
3765
3804
|
# cannot use the `Phrases` flag; you must choose one or the other.
|
3766
3805
|
#
|
3806
|
+
# @option params [String] :data_access_role_arn
|
3807
|
+
# The Amazon Resource Name (ARN) of an IAM role that has permissions to
|
3808
|
+
# access the Amazon S3 bucket that contains your input files (in this
|
3809
|
+
# case, your custom vocabulary). If the role that you specify doesn’t
|
3810
|
+
# have the appropriate permissions to access the specified Amazon S3
|
3811
|
+
# location, your request fails.
|
3812
|
+
#
|
3813
|
+
# IAM role ARNs have the format
|
3814
|
+
# `arn:partition:iam::account:role/role-name-with-path`. For example:
|
3815
|
+
# `arn:aws:iam::111122223333:role/Admin`.
|
3816
|
+
#
|
3817
|
+
# For more information, see [IAM ARNs][1].
|
3818
|
+
#
|
3819
|
+
#
|
3820
|
+
#
|
3821
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns
|
3822
|
+
#
|
3767
3823
|
# @return [Types::UpdateVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3768
3824
|
#
|
3769
3825
|
# * {Types::UpdateVocabularyResponse#vocabulary_name #vocabulary_name} => String
|
@@ -3778,6 +3834,7 @@ module Aws::TranscribeService
|
|
3778
3834
|
# language_code: "af-ZA", # required, accepts af-ZA, ar-AE, ar-SA, 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, 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, zh-TW, th-TH, en-ZA, en-NZ, vi-VN, sv-SE
|
3779
3835
|
# phrases: ["Phrase"],
|
3780
3836
|
# vocabulary_file_uri: "Uri",
|
3837
|
+
# data_access_role_arn: "DataAccessRoleArn",
|
3781
3838
|
# })
|
3782
3839
|
#
|
3783
3840
|
# @example Response structure
|
@@ -3835,6 +3892,23 @@ module Aws::TranscribeService
|
|
3835
3892
|
# Note that if you include `VocabularyFilterFileUri` in your request,
|
3836
3893
|
# you cannot use `Words`; you must choose one or the other.
|
3837
3894
|
#
|
3895
|
+
# @option params [String] :data_access_role_arn
|
3896
|
+
# The Amazon Resource Name (ARN) of an IAM role that has permissions to
|
3897
|
+
# access the Amazon S3 bucket that contains your input files (in this
|
3898
|
+
# case, your custom vocabulary filter). If the role that you specify
|
3899
|
+
# doesn’t have the appropriate permissions to access the specified
|
3900
|
+
# Amazon S3 location, your request fails.
|
3901
|
+
#
|
3902
|
+
# IAM role ARNs have the format
|
3903
|
+
# `arn:partition:iam::account:role/role-name-with-path`. For example:
|
3904
|
+
# `arn:aws:iam::111122223333:role/Admin`.
|
3905
|
+
#
|
3906
|
+
# For more information, see [IAM ARNs][1].
|
3907
|
+
#
|
3908
|
+
#
|
3909
|
+
#
|
3910
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns
|
3911
|
+
#
|
3838
3912
|
# @return [Types::UpdateVocabularyFilterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3839
3913
|
#
|
3840
3914
|
# * {Types::UpdateVocabularyFilterResponse#vocabulary_filter_name #vocabulary_filter_name} => String
|
@@ -3847,6 +3921,7 @@ module Aws::TranscribeService
|
|
3847
3921
|
# vocabulary_filter_name: "VocabularyFilterName", # required
|
3848
3922
|
# words: ["Word"],
|
3849
3923
|
# vocabulary_filter_file_uri: "Uri",
|
3924
|
+
# data_access_role_arn: "DataAccessRoleArn",
|
3850
3925
|
# })
|
3851
3926
|
#
|
3852
3927
|
# @example Response structure
|
@@ -3877,7 +3952,7 @@ module Aws::TranscribeService
|
|
3877
3952
|
params: params,
|
3878
3953
|
config: config)
|
3879
3954
|
context[:gem_name] = 'aws-sdk-transcribeservice'
|
3880
|
-
context[:gem_version] = '1.
|
3955
|
+
context[:gem_version] = '1.82.0'
|
3881
3956
|
Seahorse::Client::Request.new(handlers, context)
|
3882
3957
|
end
|
3883
3958
|
|
@@ -309,6 +309,7 @@ module Aws::TranscribeService
|
|
309
309
|
CreateVocabularyFilterRequest.add_member(:words, Shapes::ShapeRef.new(shape: Words, location_name: "Words"))
|
310
310
|
CreateVocabularyFilterRequest.add_member(:vocabulary_filter_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "VocabularyFilterFileUri"))
|
311
311
|
CreateVocabularyFilterRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
312
|
+
CreateVocabularyFilterRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: DataAccessRoleArn, location_name: "DataAccessRoleArn"))
|
312
313
|
CreateVocabularyFilterRequest.struct_class = Types::CreateVocabularyFilterRequest
|
313
314
|
|
314
315
|
CreateVocabularyFilterResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
@@ -321,6 +322,7 @@ module Aws::TranscribeService
|
|
321
322
|
CreateVocabularyRequest.add_member(:phrases, Shapes::ShapeRef.new(shape: Phrases, location_name: "Phrases"))
|
322
323
|
CreateVocabularyRequest.add_member(:vocabulary_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "VocabularyFileUri"))
|
323
324
|
CreateVocabularyRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
325
|
+
CreateVocabularyRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: DataAccessRoleArn, location_name: "DataAccessRoleArn"))
|
324
326
|
CreateVocabularyRequest.struct_class = Types::CreateVocabularyRequest
|
325
327
|
|
326
328
|
CreateVocabularyResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
|
@@ -832,6 +834,7 @@ module Aws::TranscribeService
|
|
832
834
|
UpdateVocabularyFilterRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, required: true, location_name: "VocabularyFilterName"))
|
833
835
|
UpdateVocabularyFilterRequest.add_member(:words, Shapes::ShapeRef.new(shape: Words, location_name: "Words"))
|
834
836
|
UpdateVocabularyFilterRequest.add_member(:vocabulary_filter_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "VocabularyFilterFileUri"))
|
837
|
+
UpdateVocabularyFilterRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: DataAccessRoleArn, location_name: "DataAccessRoleArn"))
|
835
838
|
UpdateVocabularyFilterRequest.struct_class = Types::UpdateVocabularyFilterRequest
|
836
839
|
|
837
840
|
UpdateVocabularyFilterResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
@@ -843,6 +846,7 @@ module Aws::TranscribeService
|
|
843
846
|
UpdateVocabularyRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
|
844
847
|
UpdateVocabularyRequest.add_member(:phrases, Shapes::ShapeRef.new(shape: Phrases, location_name: "Phrases"))
|
845
848
|
UpdateVocabularyRequest.add_member(:vocabulary_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "VocabularyFileUri"))
|
849
|
+
UpdateVocabularyRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: DataAccessRoleArn, location_name: "DataAccessRoleArn"))
|
846
850
|
UpdateVocabularyRequest.struct_class = Types::UpdateVocabularyRequest
|
847
851
|
|
848
852
|
UpdateVocabularyResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
|
@@ -50,9 +50,6 @@ module Aws::TranscribeService
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,48 +14,51 @@ module Aws::TranscribeService
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
26
20
|
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
28
|
-
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://transcribe-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
32
23
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://transcribe-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
37
31
|
end
|
38
|
-
|
39
|
-
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://fips.transcribe.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
40
|
+
return Aws::Endpoints::Endpoint.new(url: "https://fips.transcribe.#{region}.amazonaws.com", headers: {}, properties: {})
|
41
|
+
end
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://transcribe-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
43
|
end
|
41
|
-
|
44
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
45
|
end
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
47
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://transcribe.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
49
|
+
end
|
50
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
48
51
|
end
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
return Aws::Endpoints::Endpoint.new(url: "https://
|
52
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "cn-north-1")
|
53
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cn.transcribe.cn-north-1.amazonaws.com.cn", headers: {}, properties: {})
|
54
|
+
end
|
55
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "cn-northwest-1")
|
56
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cn.transcribe.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {})
|
57
|
+
end
|
58
|
+
return Aws::Endpoints::Endpoint.new(url: "https://transcribe.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
56
59
|
end
|
57
|
-
return Aws::Endpoints::Endpoint.new(url: "https://transcribe.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
58
60
|
end
|
61
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
59
62
|
raise ArgumentError, 'No endpoint could be resolved'
|
60
63
|
|
61
64
|
end
|
@@ -601,19 +601,19 @@ module Aws::TranscribeService
|
|
601
601
|
# @return [Array<Types::Rule>]
|
602
602
|
#
|
603
603
|
# @!attribute [rw] input_type
|
604
|
-
# Choose whether you want to create a
|
605
|
-
# for your Call Analytics transcription.
|
604
|
+
# Choose whether you want to create a real-time or a post-call
|
605
|
+
# category for your Call Analytics transcription.
|
606
606
|
#
|
607
|
-
# Specifying `POST_CALL` assigns your category to
|
607
|
+
# Specifying `POST_CALL` assigns your category to post-call
|
608
608
|
# transcriptions; categories with this input type cannot be applied to
|
609
609
|
# streaming (real-time) transcriptions.
|
610
610
|
#
|
611
611
|
# Specifying `REAL_TIME` assigns your category to streaming
|
612
612
|
# transcriptions; categories with this input type cannot be applied to
|
613
|
-
#
|
613
|
+
# post-call transcriptions.
|
614
614
|
#
|
615
615
|
# If you do not include `InputType`, your category is created as a
|
616
|
-
#
|
616
|
+
# post-call category by default.
|
617
617
|
# @return [String]
|
618
618
|
#
|
619
619
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateCallAnalyticsCategoryRequest AWS API Documentation
|
@@ -924,6 +924,24 @@ module Aws::TranscribeService
|
|
924
924
|
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html
|
925
925
|
# @return [Array<Types::Tag>]
|
926
926
|
#
|
927
|
+
# @!attribute [rw] data_access_role_arn
|
928
|
+
# The Amazon Resource Name (ARN) of an IAM role that has permissions
|
929
|
+
# to access the Amazon S3 bucket that contains your input files (in
|
930
|
+
# this case, your custom vocabulary filter). If the role that you
|
931
|
+
# specify doesn’t have the appropriate permissions to access the
|
932
|
+
# specified Amazon S3 location, your request fails.
|
933
|
+
#
|
934
|
+
# IAM role ARNs have the format
|
935
|
+
# `arn:partition:iam::account:role/role-name-with-path`. For example:
|
936
|
+
# `arn:aws:iam::111122223333:role/Admin`.
|
937
|
+
#
|
938
|
+
# For more information, see [IAM ARNs][1].
|
939
|
+
#
|
940
|
+
#
|
941
|
+
#
|
942
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns
|
943
|
+
# @return [String]
|
944
|
+
#
|
927
945
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyFilterRequest AWS API Documentation
|
928
946
|
#
|
929
947
|
class CreateVocabularyFilterRequest < Struct.new(
|
@@ -931,7 +949,8 @@ module Aws::TranscribeService
|
|
931
949
|
:language_code,
|
932
950
|
:words,
|
933
951
|
:vocabulary_filter_file_uri,
|
934
|
-
:tags
|
952
|
+
:tags,
|
953
|
+
:data_access_role_arn)
|
935
954
|
SENSITIVE = []
|
936
955
|
include Aws::Structure
|
937
956
|
end
|
@@ -1036,6 +1055,24 @@ module Aws::TranscribeService
|
|
1036
1055
|
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html
|
1037
1056
|
# @return [Array<Types::Tag>]
|
1038
1057
|
#
|
1058
|
+
# @!attribute [rw] data_access_role_arn
|
1059
|
+
# The Amazon Resource Name (ARN) of an IAM role that has permissions
|
1060
|
+
# to access the Amazon S3 bucket that contains your input files (in
|
1061
|
+
# this case, your custom vocabulary). If the role that you specify
|
1062
|
+
# doesn’t have the appropriate permissions to access the specified
|
1063
|
+
# Amazon S3 location, your request fails.
|
1064
|
+
#
|
1065
|
+
# IAM role ARNs have the format
|
1066
|
+
# `arn:partition:iam::account:role/role-name-with-path`. For example:
|
1067
|
+
# `arn:aws:iam::111122223333:role/Admin`.
|
1068
|
+
#
|
1069
|
+
# For more information, see [IAM ARNs][1].
|
1070
|
+
#
|
1071
|
+
#
|
1072
|
+
#
|
1073
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns
|
1074
|
+
# @return [String]
|
1075
|
+
#
|
1039
1076
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateVocabularyRequest AWS API Documentation
|
1040
1077
|
#
|
1041
1078
|
class CreateVocabularyRequest < Struct.new(
|
@@ -1043,7 +1080,8 @@ module Aws::TranscribeService
|
|
1043
1080
|
:language_code,
|
1044
1081
|
:phrases,
|
1045
1082
|
:vocabulary_file_uri,
|
1046
|
-
:tags
|
1083
|
+
:tags,
|
1084
|
+
:data_access_role_arn)
|
1047
1085
|
SENSITIVE = []
|
1048
1086
|
include Aws::Structure
|
1049
1087
|
end
|
@@ -1598,7 +1636,7 @@ module Aws::TranscribeService
|
|
1598
1636
|
#
|
1599
1637
|
# * A lack of interruptions
|
1600
1638
|
#
|
1601
|
-
# See [Rule criteria for
|
1639
|
+
# See [Rule criteria for post-call categories][1] for usage examples.
|
1602
1640
|
#
|
1603
1641
|
#
|
1604
1642
|
#
|
@@ -1662,8 +1700,6 @@ module Aws::TranscribeService
|
|
1662
1700
|
# transcription job requests exceed the concurrent request limit, you
|
1663
1701
|
# get a `LimitExceededException` error.
|
1664
1702
|
#
|
1665
|
-
# Note that job queuing is enabled by default for Call Analytics jobs.
|
1666
|
-
#
|
1667
1703
|
# If you include `AllowDeferredExecution` in your request, you must
|
1668
1704
|
# also include `DataAccessRoleArn`.
|
1669
1705
|
# @return [Boolean]
|
@@ -1798,11 +1834,23 @@ module Aws::TranscribeService
|
|
1798
1834
|
include Aws::Structure
|
1799
1835
|
end
|
1800
1836
|
|
1801
|
-
# Provides information about a custom language model, including
|
1802
|
-
#
|
1803
|
-
#
|
1804
|
-
#
|
1805
|
-
#
|
1837
|
+
# Provides information about a custom language model, including:
|
1838
|
+
#
|
1839
|
+
# * The base model name
|
1840
|
+
#
|
1841
|
+
# * When the model was created
|
1842
|
+
#
|
1843
|
+
# * The location of the files used to train the model
|
1844
|
+
#
|
1845
|
+
# * When the model was last modified
|
1846
|
+
#
|
1847
|
+
# * The name you chose for the model
|
1848
|
+
#
|
1849
|
+
# * The model's language
|
1850
|
+
#
|
1851
|
+
# * The model's processing state
|
1852
|
+
#
|
1853
|
+
# * Any available upgrades for the base model
|
1806
1854
|
#
|
1807
1855
|
# @!attribute [rw] model_name
|
1808
1856
|
# A unique name, chosen by you, for your custom language model.
|
@@ -2969,7 +3017,7 @@ module Aws::TranscribeService
|
|
2969
3017
|
#
|
2970
3018
|
# * The presence of speech at specified periods throughout the call
|
2971
3019
|
#
|
2972
|
-
# See [Rule criteria for
|
3020
|
+
# See [Rule criteria for post-call categories][1] for usage examples.
|
2973
3021
|
#
|
2974
3022
|
#
|
2975
3023
|
#
|
@@ -3082,8 +3130,8 @@ module Aws::TranscribeService
|
|
3082
3130
|
# Rules can include these parameters: , , , and .
|
3083
3131
|
#
|
3084
3132
|
# To learn more about Call Analytics rules and categories, see [Creating
|
3085
|
-
# categories for
|
3086
|
-
#
|
3133
|
+
# categories for post-call transcriptions][1] and [Creating categories
|
3134
|
+
# for real-time transcriptions][2].
|
3087
3135
|
#
|
3088
3136
|
# To learn more about Call Analytics, see [Analyzing call center audio
|
3089
3137
|
# with Call Analytics][3].
|
@@ -3154,7 +3202,7 @@ module Aws::TranscribeService
|
|
3154
3202
|
# * The presence or absence of a mixed sentiment felt by the customer,
|
3155
3203
|
# the agent, or both at specified points in the call
|
3156
3204
|
#
|
3157
|
-
# See [Rule criteria for
|
3205
|
+
# See [Rule criteria for post-call categories][1] for usage examples.
|
3158
3206
|
#
|
3159
3207
|
#
|
3160
3208
|
#
|
@@ -3406,7 +3454,7 @@ module Aws::TranscribeService
|
|
3406
3454
|
# If you specify a KMS key to encrypt your output, you must also
|
3407
3455
|
# specify an output location using the `OutputLocation` parameter.
|
3408
3456
|
#
|
3409
|
-
# Note that the
|
3457
|
+
# Note that the role making the request must have permission to use
|
3410
3458
|
# the specified KMS key.
|
3411
3459
|
# @return [String]
|
3412
3460
|
#
|
@@ -3615,7 +3663,7 @@ module Aws::TranscribeService
|
|
3615
3663
|
# If you specify a KMS key to encrypt your output, you must also
|
3616
3664
|
# specify an output location using the `OutputLocation` parameter.
|
3617
3665
|
#
|
3618
|
-
# Note that the
|
3666
|
+
# Note that the role making the request must have permission to use
|
3619
3667
|
# the specified KMS key.
|
3620
3668
|
# @return [String]
|
3621
3669
|
#
|
@@ -3871,7 +3919,7 @@ module Aws::TranscribeService
|
|
3871
3919
|
# If you specify a KMS key to encrypt your output, you must also
|
3872
3920
|
# specify an output location using the `OutputLocation` parameter.
|
3873
3921
|
#
|
3874
|
-
# Note that the
|
3922
|
+
# Note that the role making the request must have permission to use
|
3875
3923
|
# the specified KMS key.
|
3876
3924
|
# @return [String]
|
3877
3925
|
#
|
@@ -4322,7 +4370,7 @@ module Aws::TranscribeService
|
|
4322
4370
|
#
|
4323
4371
|
# * Custom words or phrases that occur at a specific time frame
|
4324
4372
|
#
|
4325
|
-
# See [Rule criteria for
|
4373
|
+
# See [Rule criteria for post-call categories][1] and [Rule criteria for
|
4326
4374
|
# streaming categories][2] for usage examples.
|
4327
4375
|
#
|
4328
4376
|
#
|
@@ -4783,11 +4831,11 @@ module Aws::TranscribeService
|
|
4783
4831
|
# @return [Array<Types::Rule>]
|
4784
4832
|
#
|
4785
4833
|
# @!attribute [rw] input_type
|
4786
|
-
# Choose whether you want to update a
|
4787
|
-
#
|
4788
|
-
#
|
4789
|
-
#
|
4790
|
-
#
|
4834
|
+
# Choose whether you want to update a real-time or a post-call
|
4835
|
+
# category. The input type you specify must match the input type
|
4836
|
+
# specified when the category was created. For example, if you created
|
4837
|
+
# a category with the `POST_CALL` input type, you must use `POST_CALL`
|
4838
|
+
# as the input type when updating this category.
|
4791
4839
|
# @return [String]
|
4792
4840
|
#
|
4793
4841
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateCallAnalyticsCategoryRequest AWS API Documentation
|
@@ -4918,12 +4966,31 @@ module Aws::TranscribeService
|
|
4918
4966
|
# you cannot use `Words`; you must choose one or the other.
|
4919
4967
|
# @return [String]
|
4920
4968
|
#
|
4969
|
+
# @!attribute [rw] data_access_role_arn
|
4970
|
+
# The Amazon Resource Name (ARN) of an IAM role that has permissions
|
4971
|
+
# to access the Amazon S3 bucket that contains your input files (in
|
4972
|
+
# this case, your custom vocabulary filter). If the role that you
|
4973
|
+
# specify doesn’t have the appropriate permissions to access the
|
4974
|
+
# specified Amazon S3 location, your request fails.
|
4975
|
+
#
|
4976
|
+
# IAM role ARNs have the format
|
4977
|
+
# `arn:partition:iam::account:role/role-name-with-path`. For example:
|
4978
|
+
# `arn:aws:iam::111122223333:role/Admin`.
|
4979
|
+
#
|
4980
|
+
# For more information, see [IAM ARNs][1].
|
4981
|
+
#
|
4982
|
+
#
|
4983
|
+
#
|
4984
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns
|
4985
|
+
# @return [String]
|
4986
|
+
#
|
4921
4987
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyFilterRequest AWS API Documentation
|
4922
4988
|
#
|
4923
4989
|
class UpdateVocabularyFilterRequest < Struct.new(
|
4924
4990
|
:vocabulary_filter_name,
|
4925
4991
|
:words,
|
4926
|
-
:vocabulary_filter_file_uri
|
4992
|
+
:vocabulary_filter_file_uri,
|
4993
|
+
:data_access_role_arn)
|
4927
4994
|
SENSITIVE = []
|
4928
4995
|
include Aws::Structure
|
4929
4996
|
end
|
@@ -5012,13 +5079,32 @@ module Aws::TranscribeService
|
|
5012
5079
|
# cannot use the `Phrases` flag; you must choose one or the other.
|
5013
5080
|
# @return [String]
|
5014
5081
|
#
|
5082
|
+
# @!attribute [rw] data_access_role_arn
|
5083
|
+
# The Amazon Resource Name (ARN) of an IAM role that has permissions
|
5084
|
+
# to access the Amazon S3 bucket that contains your input files (in
|
5085
|
+
# this case, your custom vocabulary). If the role that you specify
|
5086
|
+
# doesn’t have the appropriate permissions to access the specified
|
5087
|
+
# Amazon S3 location, your request fails.
|
5088
|
+
#
|
5089
|
+
# IAM role ARNs have the format
|
5090
|
+
# `arn:partition:iam::account:role/role-name-with-path`. For example:
|
5091
|
+
# `arn:aws:iam::111122223333:role/Admin`.
|
5092
|
+
#
|
5093
|
+
# For more information, see [IAM ARNs][1].
|
5094
|
+
#
|
5095
|
+
#
|
5096
|
+
#
|
5097
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns
|
5098
|
+
# @return [String]
|
5099
|
+
#
|
5015
5100
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateVocabularyRequest AWS API Documentation
|
5016
5101
|
#
|
5017
5102
|
class UpdateVocabularyRequest < Struct.new(
|
5018
5103
|
:vocabulary_name,
|
5019
5104
|
:language_code,
|
5020
5105
|
:phrases,
|
5021
|
-
:vocabulary_file_uri
|
5106
|
+
:vocabulary_file_uri,
|
5107
|
+
:data_access_role_arn)
|
5022
5108
|
SENSITIVE = []
|
5023
5109
|
include Aws::Structure
|
5024
5110
|
end
|
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.
|
4
|
+
version: 1.82.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: 2023-
|
11
|
+
date: 2023-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|