aws-sdk-polly 1.133.0 → 1.135.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-polly/async_client.rb +1 -1
- data/lib/aws-sdk-polly/client.rb +163 -3
- data/lib/aws-sdk-polly/client_api.rb +95 -0
- data/lib/aws-sdk-polly/errors.rb +58 -0
- data/lib/aws-sdk-polly/types.rb +143 -3
- data/lib/aws-sdk-polly.rb +1 -1
- data/sig/client.rbs +32 -1
- data/sig/errors.rbs +11 -0
- data/sig/types.rbs +46 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e63ed512b7b169275100430ddf783ba2c593468ee571317b02e0448a9de634b2
|
|
4
|
+
data.tar.gz: 9f5cee38e2b83747d34312dad50bee5ad5bd123dc0e96b3aa65aa638a7734262
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ceba439aca504b615e00e8927161128c76432a6d2e92a33a20f0ca344bab30036594086d859ebd65bacbd17835b3f37fc3361c1bdbb15d6e4530b20920f727bf
|
|
7
|
+
data.tar.gz: cadfdc09b92d33a90c061637ae633a5b6a5e7ad4ac8d0407205fd031406a6295b6f629217259113da95d8dcae99344a870374af7bbc2aee54a59c75cf77eebfa
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.135.0 (2026-11-04)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon Polly now supports tagging lexicons. Use the new TagResource, UntagResource and ListTagsForResource APIs, or add tags when creating a lexicon with PutLexicon, to organize lexicons and control access with tag-based (ABAC) IAM policies.
|
|
8
|
+
|
|
9
|
+
1.134.0 (2026-10-29)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
4
14
|
1.133.0 (2026-10-28)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.135.0
|
data/lib/aws-sdk-polly/client.rb
CHANGED
|
@@ -898,12 +898,66 @@ module Aws::Polly
|
|
|
898
898
|
req.send_request(options)
|
|
899
899
|
end
|
|
900
900
|
|
|
901
|
+
# Lists the tags for an Amazon Polly resource.
|
|
902
|
+
#
|
|
903
|
+
# @option params [required, String] :resource_arn
|
|
904
|
+
# The Amazon Resource Name (ARN) that identifies the resource for which
|
|
905
|
+
# to list the tags. Currently, the only supported resource is an Amazon
|
|
906
|
+
# Polly lexicon.
|
|
907
|
+
#
|
|
908
|
+
# @return [Types::ListTagsForResourceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
909
|
+
#
|
|
910
|
+
# * {Types::ListTagsForResourceOutput#tags #tags} => Hash<String,String>
|
|
911
|
+
#
|
|
912
|
+
#
|
|
913
|
+
# @example Example: To list the tags on a lexicon
|
|
914
|
+
#
|
|
915
|
+
# # The following example lists the tags associated with a pronunciation lexicon.
|
|
916
|
+
#
|
|
917
|
+
# resp = client.list_tags_for_resource({
|
|
918
|
+
# resource_arn: "arn:aws:polly:us-east-1:111122223333:lexicon/example",
|
|
919
|
+
# })
|
|
920
|
+
#
|
|
921
|
+
# resp.to_h outputs the following:
|
|
922
|
+
# {
|
|
923
|
+
# tags: {
|
|
924
|
+
# "Environment" => "Production",
|
|
925
|
+
# "Project" => "Narration",
|
|
926
|
+
# },
|
|
927
|
+
# }
|
|
928
|
+
#
|
|
929
|
+
# @example Request syntax with placeholder values
|
|
930
|
+
#
|
|
931
|
+
# resp = client.list_tags_for_resource({
|
|
932
|
+
# resource_arn: "AmazonResourceName", # required
|
|
933
|
+
# })
|
|
934
|
+
#
|
|
935
|
+
# @example Response structure
|
|
936
|
+
#
|
|
937
|
+
# resp.tags #=> Hash
|
|
938
|
+
# resp.tags["TagKey"] #=> String
|
|
939
|
+
#
|
|
940
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListTagsForResource AWS API Documentation
|
|
941
|
+
#
|
|
942
|
+
# @overload list_tags_for_resource(params = {})
|
|
943
|
+
# @param [Hash] params ({})
|
|
944
|
+
def list_tags_for_resource(params = {}, options = {})
|
|
945
|
+
req = build_request(:list_tags_for_resource, params)
|
|
946
|
+
req.send_request(options)
|
|
947
|
+
end
|
|
948
|
+
|
|
901
949
|
# Stores a pronunciation lexicon in an Amazon Web Services Region. If a
|
|
902
950
|
# lexicon with the same name already exists in the region, it is
|
|
903
951
|
# overwritten by the new lexicon. Lexicon operations have eventual
|
|
904
952
|
# consistency, therefore, it might take some time before the lexicon is
|
|
905
953
|
# available to the SynthesizeSpeech operation.
|
|
906
954
|
#
|
|
955
|
+
# Overwriting a lexicon keeps its existing tags. You can specify tags
|
|
956
|
+
# only when you create a lexicon. If you specify tags for a lexicon that
|
|
957
|
+
# already exists, the request fails with a `ValidationException`. To
|
|
958
|
+
# change the tags of an existing lexicon, use `TagResource` and
|
|
959
|
+
# `UntagResource`.
|
|
960
|
+
#
|
|
907
961
|
# For more information, see [Managing Lexicons][1].
|
|
908
962
|
#
|
|
909
963
|
#
|
|
@@ -911,13 +965,21 @@ module Aws::Polly
|
|
|
911
965
|
# [1]: https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html
|
|
912
966
|
#
|
|
913
967
|
# @option params [required, String] :name
|
|
914
|
-
# Name of the lexicon. The name must follow the regular
|
|
915
|
-
# \[0-9A-Za-z\]\{1,20}. That is, the name is a case-sensitive
|
|
968
|
+
# Name of the lexicon. The name must follow the regular expression
|
|
969
|
+
# format \[0-9A-Za-z\]\{1,20}. That is, the name is a case-sensitive
|
|
916
970
|
# alphanumeric string up to 20 characters long.
|
|
917
971
|
#
|
|
918
972
|
# @option params [required, String] :content
|
|
919
973
|
# Content of the PLS lexicon as string data.
|
|
920
974
|
#
|
|
975
|
+
# @option params [Hash<String,String>] :tags
|
|
976
|
+
# The metadata that you apply to the lexicon to help you categorize and
|
|
977
|
+
# organize it. Each tag consists of a key and an optional value, both of
|
|
978
|
+
# which you define. Tag keys can have a maximum character length of 128
|
|
979
|
+
# characters, and tag values can have a maximum length of 256
|
|
980
|
+
# characters. You can't replace the tags of an existing lexicon by
|
|
981
|
+
# overwriting it with PutLexicon.
|
|
982
|
+
#
|
|
921
983
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
922
984
|
#
|
|
923
985
|
#
|
|
@@ -939,6 +1001,9 @@ module Aws::Polly
|
|
|
939
1001
|
# resp = client.put_lexicon({
|
|
940
1002
|
# name: "LexiconName", # required
|
|
941
1003
|
# content: "LexiconContent", # required
|
|
1004
|
+
# tags: {
|
|
1005
|
+
# "TagKey" => "TagValue",
|
|
1006
|
+
# },
|
|
942
1007
|
# })
|
|
943
1008
|
#
|
|
944
1009
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/PutLexicon AWS API Documentation
|
|
@@ -1238,6 +1303,101 @@ module Aws::Polly
|
|
|
1238
1303
|
req.send_request(options, &block)
|
|
1239
1304
|
end
|
|
1240
1305
|
|
|
1306
|
+
# Adds specified tags to a resource with the specified ARN. Existing
|
|
1307
|
+
# tags on a resource are not changed if they are not specified in the
|
|
1308
|
+
# request parameters. If you specify a tag key that already exists on
|
|
1309
|
+
# the resource, the value in the request replaces the existing value.
|
|
1310
|
+
#
|
|
1311
|
+
# @option params [required, String] :resource_arn
|
|
1312
|
+
# The Amazon Resource Name (ARN) of the resource to which to add tags.
|
|
1313
|
+
# Currently, the only supported resource is an Amazon Polly lexicon.
|
|
1314
|
+
#
|
|
1315
|
+
# @option params [required, Hash<String,String>] :tags
|
|
1316
|
+
# The tags to add to the resource, as key-value pairs. Tag keys can have
|
|
1317
|
+
# a maximum character length of 128 characters, and tag values can have
|
|
1318
|
+
# a maximum length of 256 characters.
|
|
1319
|
+
#
|
|
1320
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1321
|
+
#
|
|
1322
|
+
#
|
|
1323
|
+
# @example Example: To add tags to a lexicon
|
|
1324
|
+
#
|
|
1325
|
+
# # The following example adds the specified tags to a pronunciation lexicon.
|
|
1326
|
+
#
|
|
1327
|
+
# resp = client.tag_resource({
|
|
1328
|
+
# resource_arn: "arn:aws:polly:us-east-1:111122223333:lexicon/example",
|
|
1329
|
+
# tags: {
|
|
1330
|
+
# "Environment" => "Production",
|
|
1331
|
+
# "Project" => "Narration",
|
|
1332
|
+
# },
|
|
1333
|
+
# })
|
|
1334
|
+
#
|
|
1335
|
+
# resp.to_h outputs the following:
|
|
1336
|
+
# {
|
|
1337
|
+
# }
|
|
1338
|
+
#
|
|
1339
|
+
# @example Request syntax with placeholder values
|
|
1340
|
+
#
|
|
1341
|
+
# resp = client.tag_resource({
|
|
1342
|
+
# resource_arn: "AmazonResourceName", # required
|
|
1343
|
+
# tags: { # required
|
|
1344
|
+
# "TagKey" => "TagValue",
|
|
1345
|
+
# },
|
|
1346
|
+
# })
|
|
1347
|
+
#
|
|
1348
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/TagResource AWS API Documentation
|
|
1349
|
+
#
|
|
1350
|
+
# @overload tag_resource(params = {})
|
|
1351
|
+
# @param [Hash] params ({})
|
|
1352
|
+
def tag_resource(params = {}, options = {})
|
|
1353
|
+
req = build_request(:tag_resource, params)
|
|
1354
|
+
req.send_request(options)
|
|
1355
|
+
end
|
|
1356
|
+
|
|
1357
|
+
# Deletes specified tags from a resource.
|
|
1358
|
+
#
|
|
1359
|
+
# @option params [required, String] :resource_arn
|
|
1360
|
+
# The Amazon Resource Name (ARN) of the resource from which to remove
|
|
1361
|
+
# tags. Currently, the only supported resource is an Amazon Polly
|
|
1362
|
+
# lexicon.
|
|
1363
|
+
#
|
|
1364
|
+
# @option params [required, Array<String>] :tag_keys
|
|
1365
|
+
# The keys of the tags to be removed.
|
|
1366
|
+
#
|
|
1367
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1368
|
+
#
|
|
1369
|
+
#
|
|
1370
|
+
# @example Example: To remove tags from a lexicon
|
|
1371
|
+
#
|
|
1372
|
+
# # The following example removes the tags with the specified keys from a pronunciation lexicon.
|
|
1373
|
+
#
|
|
1374
|
+
# resp = client.untag_resource({
|
|
1375
|
+
# resource_arn: "arn:aws:polly:us-east-1:111122223333:lexicon/example",
|
|
1376
|
+
# tag_keys: [
|
|
1377
|
+
# "Environment",
|
|
1378
|
+
# ],
|
|
1379
|
+
# })
|
|
1380
|
+
#
|
|
1381
|
+
# resp.to_h outputs the following:
|
|
1382
|
+
# {
|
|
1383
|
+
# }
|
|
1384
|
+
#
|
|
1385
|
+
# @example Request syntax with placeholder values
|
|
1386
|
+
#
|
|
1387
|
+
# resp = client.untag_resource({
|
|
1388
|
+
# resource_arn: "AmazonResourceName", # required
|
|
1389
|
+
# tag_keys: ["TagKey"], # required
|
|
1390
|
+
# })
|
|
1391
|
+
#
|
|
1392
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/UntagResource AWS API Documentation
|
|
1393
|
+
#
|
|
1394
|
+
# @overload untag_resource(params = {})
|
|
1395
|
+
# @param [Hash] params ({})
|
|
1396
|
+
def untag_resource(params = {}, options = {})
|
|
1397
|
+
req = build_request(:untag_resource, params)
|
|
1398
|
+
req.send_request(options)
|
|
1399
|
+
end
|
|
1400
|
+
|
|
1241
1401
|
# @!endgroup
|
|
1242
1402
|
|
|
1243
1403
|
# @param params ({})
|
|
@@ -1256,7 +1416,7 @@ module Aws::Polly
|
|
|
1256
1416
|
tracer: tracer
|
|
1257
1417
|
)
|
|
1258
1418
|
context[:gem_name] = 'aws-sdk-polly'
|
|
1259
|
-
context[:gem_version] = '1.
|
|
1419
|
+
context[:gem_version] = '1.135.0'
|
|
1260
1420
|
Seahorse::Client::Request.new(handlers, context)
|
|
1261
1421
|
end
|
|
1262
1422
|
|
|
@@ -15,6 +15,7 @@ module Aws::Polly
|
|
|
15
15
|
include Seahorse::Model
|
|
16
16
|
|
|
17
17
|
Alphabet = Shapes::StringShape.new(name: 'Alphabet')
|
|
18
|
+
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
|
18
19
|
AudioChunk = Shapes::BlobShape.new(name: 'AudioChunk')
|
|
19
20
|
AudioEvent = Shapes::StructureShape.new(name: 'AudioEvent')
|
|
20
21
|
AudioStream = Shapes::BlobShape.new(name: 'AudioStream', streaming: true)
|
|
@@ -32,6 +33,7 @@ module Aws::Polly
|
|
|
32
33
|
EngineList = Shapes::ListShape.new(name: 'EngineList')
|
|
33
34
|
EngineNotSupportedException = Shapes::StructureShape.new(name: 'EngineNotSupportedException')
|
|
34
35
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
|
36
|
+
ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
|
|
35
37
|
FlushStreamConfiguration = Shapes::StructureShape.new(name: 'FlushStreamConfiguration')
|
|
36
38
|
Force = Shapes::BooleanShape.new(name: 'Force')
|
|
37
39
|
Gender = Shapes::StringShape.new(name: 'Gender')
|
|
@@ -47,6 +49,7 @@ module Aws::Polly
|
|
|
47
49
|
InvalidSampleRateException = Shapes::StructureShape.new(name: 'InvalidSampleRateException')
|
|
48
50
|
InvalidSnsTopicArnException = Shapes::StructureShape.new(name: 'InvalidSnsTopicArnException')
|
|
49
51
|
InvalidSsmlException = Shapes::StructureShape.new(name: 'InvalidSsmlException')
|
|
52
|
+
InvalidTagParameterException = Shapes::StructureShape.new(name: 'InvalidTagParameterException')
|
|
50
53
|
InvalidTaskIdException = Shapes::StructureShape.new(name: 'InvalidTaskIdException')
|
|
51
54
|
LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
|
|
52
55
|
LanguageCodeList = Shapes::ListShape.new(name: 'LanguageCodeList')
|
|
@@ -68,6 +71,8 @@ module Aws::Polly
|
|
|
68
71
|
ListLexiconsOutput = Shapes::StructureShape.new(name: 'ListLexiconsOutput')
|
|
69
72
|
ListSpeechSynthesisTasksInput = Shapes::StructureShape.new(name: 'ListSpeechSynthesisTasksInput')
|
|
70
73
|
ListSpeechSynthesisTasksOutput = Shapes::StructureShape.new(name: 'ListSpeechSynthesisTasksOutput')
|
|
74
|
+
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
|
75
|
+
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
|
71
76
|
MarksNotSupportedForFormatException = Shapes::StructureShape.new(name: 'MarksNotSupportedForFormatException')
|
|
72
77
|
MaxLexemeLengthExceededException = Shapes::StructureShape.new(name: 'MaxLexemeLengthExceededException')
|
|
73
78
|
MaxLexiconsNumberExceededException = Shapes::StructureShape.new(name: 'MaxLexiconsNumberExceededException')
|
|
@@ -81,6 +86,9 @@ module Aws::Polly
|
|
|
81
86
|
PutLexiconOutput = Shapes::StructureShape.new(name: 'PutLexiconOutput')
|
|
82
87
|
QuotaCode = Shapes::StringShape.new(name: 'QuotaCode')
|
|
83
88
|
RequestCharacters = Shapes::IntegerShape.new(name: 'RequestCharacters')
|
|
89
|
+
ResourceId = Shapes::StringShape.new(name: 'ResourceId')
|
|
90
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
91
|
+
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
|
84
92
|
SampleRate = Shapes::StringShape.new(name: 'SampleRate')
|
|
85
93
|
ServiceCode = Shapes::StringShape.new(name: 'ServiceCode')
|
|
86
94
|
ServiceFailureException = Shapes::StructureShape.new(name: 'ServiceFailureException')
|
|
@@ -102,6 +110,12 @@ module Aws::Polly
|
|
|
102
110
|
SynthesisTasks = Shapes::ListShape.new(name: 'SynthesisTasks')
|
|
103
111
|
SynthesizeSpeechInput = Shapes::StructureShape.new(name: 'SynthesizeSpeechInput')
|
|
104
112
|
SynthesizeSpeechOutput = Shapes::StructureShape.new(name: 'SynthesizeSpeechOutput')
|
|
113
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
|
114
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
|
115
|
+
TagMap = Shapes::MapShape.new(name: 'TagMap')
|
|
116
|
+
TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
|
|
117
|
+
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
|
118
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
|
105
119
|
TaskId = Shapes::StringShape.new(name: 'TaskId')
|
|
106
120
|
TaskStatus = Shapes::StringShape.new(name: 'TaskStatus')
|
|
107
121
|
TaskStatusReason = Shapes::StringShape.new(name: 'TaskStatusReason')
|
|
@@ -112,8 +126,11 @@ module Aws::Polly
|
|
|
112
126
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
|
113
127
|
ThrottlingReason = Shapes::StructureShape.new(name: 'ThrottlingReason')
|
|
114
128
|
ThrottlingReasonList = Shapes::ListShape.new(name: 'ThrottlingReasonList')
|
|
129
|
+
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
|
115
130
|
UnsupportedPlsAlphabetException = Shapes::StructureShape.new(name: 'UnsupportedPlsAlphabetException')
|
|
116
131
|
UnsupportedPlsLanguageException = Shapes::StructureShape.new(name: 'UnsupportedPlsLanguageException')
|
|
132
|
+
UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
|
|
133
|
+
UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
|
|
117
134
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
|
118
135
|
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
|
119
136
|
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
|
@@ -187,6 +204,9 @@ module Aws::Polly
|
|
|
187
204
|
InvalidSsmlException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
|
188
205
|
InvalidSsmlException.struct_class = Types::InvalidSsmlException
|
|
189
206
|
|
|
207
|
+
InvalidTagParameterException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
|
208
|
+
InvalidTagParameterException.struct_class = Types::InvalidTagParameterException
|
|
209
|
+
|
|
190
210
|
InvalidTaskIdException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
|
191
211
|
InvalidTaskIdException.struct_class = Types::InvalidTaskIdException
|
|
192
212
|
|
|
@@ -237,6 +257,12 @@ module Aws::Polly
|
|
|
237
257
|
ListSpeechSynthesisTasksOutput.add_member(:synthesis_tasks, Shapes::ShapeRef.new(shape: SynthesisTasks, location_name: "SynthesisTasks"))
|
|
238
258
|
ListSpeechSynthesisTasksOutput.struct_class = Types::ListSpeechSynthesisTasksOutput
|
|
239
259
|
|
|
260
|
+
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location: "querystring", location_name: "arn"))
|
|
261
|
+
ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
|
|
262
|
+
|
|
263
|
+
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
|
264
|
+
ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
|
|
265
|
+
|
|
240
266
|
MarksNotSupportedForFormatException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
|
241
267
|
MarksNotSupportedForFormatException.struct_class = Types::MarksNotSupportedForFormatException
|
|
242
268
|
|
|
@@ -248,10 +274,16 @@ module Aws::Polly
|
|
|
248
274
|
|
|
249
275
|
PutLexiconInput.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, required: true, location: "uri", location_name: "LexiconName"))
|
|
250
276
|
PutLexiconInput.add_member(:content, Shapes::ShapeRef.new(shape: LexiconContent, required: true, location_name: "Content"))
|
|
277
|
+
PutLexiconInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
|
251
278
|
PutLexiconInput.struct_class = Types::PutLexiconInput
|
|
252
279
|
|
|
253
280
|
PutLexiconOutput.struct_class = Types::PutLexiconOutput
|
|
254
281
|
|
|
282
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
|
|
283
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
|
|
284
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
|
|
285
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
|
286
|
+
|
|
255
287
|
ServiceFailureException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
|
256
288
|
ServiceFailureException.struct_class = Types::ServiceFailureException
|
|
257
289
|
|
|
@@ -353,6 +385,17 @@ module Aws::Polly
|
|
|
353
385
|
SynthesizeSpeechOutput[:payload] = :audio_stream
|
|
354
386
|
SynthesizeSpeechOutput[:payload_member] = SynthesizeSpeechOutput.member(:audio_stream)
|
|
355
387
|
|
|
388
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
|
389
|
+
|
|
390
|
+
TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
|
|
391
|
+
TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
|
|
392
|
+
|
|
393
|
+
TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
|
|
394
|
+
TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
|
|
395
|
+
TagResourceInput.struct_class = Types::TagResourceInput
|
|
396
|
+
|
|
397
|
+
TagResourceOutput.struct_class = Types::TagResourceOutput
|
|
398
|
+
|
|
356
399
|
TextEvent.add_member(:text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "Text"))
|
|
357
400
|
TextEvent.add_member(:text_type, Shapes::ShapeRef.new(shape: TextType, location_name: "TextType"))
|
|
358
401
|
TextEvent.add_member(:flush_stream_configuration, Shapes::ShapeRef.new(shape: FlushStreamConfiguration, location_name: "FlushStreamConfiguration"))
|
|
@@ -371,12 +414,21 @@ module Aws::Polly
|
|
|
371
414
|
|
|
372
415
|
ThrottlingReasonList.member = Shapes::ShapeRef.new(shape: ThrottlingReason)
|
|
373
416
|
|
|
417
|
+
TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
|
418
|
+
TooManyTagsException.struct_class = Types::TooManyTagsException
|
|
419
|
+
|
|
374
420
|
UnsupportedPlsAlphabetException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
|
375
421
|
UnsupportedPlsAlphabetException.struct_class = Types::UnsupportedPlsAlphabetException
|
|
376
422
|
|
|
377
423
|
UnsupportedPlsLanguageException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
|
378
424
|
UnsupportedPlsLanguageException.struct_class = Types::UnsupportedPlsLanguageException
|
|
379
425
|
|
|
426
|
+
UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceArn"))
|
|
427
|
+
UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
|
428
|
+
UntagResourceInput.struct_class = Types::UntagResourceInput
|
|
429
|
+
|
|
430
|
+
UntagResourceOutput.struct_class = Types::UntagResourceOutput
|
|
431
|
+
|
|
380
432
|
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
|
|
381
433
|
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
|
382
434
|
ValidationException.add_member(:fields, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fields"))
|
|
@@ -485,6 +537,19 @@ module Aws::Polly
|
|
|
485
537
|
)
|
|
486
538
|
end)
|
|
487
539
|
|
|
540
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
541
|
+
o.name = "ListTagsForResource"
|
|
542
|
+
o.http_method = "GET"
|
|
543
|
+
o.http_request_uri = "/v1/listTagsForResource/"
|
|
544
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
|
|
545
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
|
|
546
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
547
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
548
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
|
|
549
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
|
550
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
551
|
+
end)
|
|
552
|
+
|
|
488
553
|
api.add_operation(:put_lexicon, Seahorse::Model::Operation.new.tap do |o|
|
|
489
554
|
o.name = "PutLexicon"
|
|
490
555
|
o.http_method = "PUT"
|
|
@@ -497,7 +562,10 @@ module Aws::Polly
|
|
|
497
562
|
o.errors << Shapes::ShapeRef.new(shape: LexiconSizeExceededException)
|
|
498
563
|
o.errors << Shapes::ShapeRef.new(shape: MaxLexemeLengthExceededException)
|
|
499
564
|
o.errors << Shapes::ShapeRef.new(shape: MaxLexiconsNumberExceededException)
|
|
565
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
566
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
|
500
567
|
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
|
568
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
|
|
501
569
|
end)
|
|
502
570
|
|
|
503
571
|
api.add_operation(:start_speech_synthesis_stream, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -549,6 +617,33 @@ module Aws::Polly
|
|
|
549
617
|
o.errors << Shapes::ShapeRef.new(shape: LanguageNotSupportedException)
|
|
550
618
|
o.errors << Shapes::ShapeRef.new(shape: EngineNotSupportedException)
|
|
551
619
|
end)
|
|
620
|
+
|
|
621
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
622
|
+
o.name = "TagResource"
|
|
623
|
+
o.http_method = "POST"
|
|
624
|
+
o.http_request_uri = "/v1/tagResource"
|
|
625
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
|
|
626
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceOutput)
|
|
627
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
628
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
|
629
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
630
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
|
|
631
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
|
632
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
633
|
+
end)
|
|
634
|
+
|
|
635
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
|
636
|
+
o.name = "UntagResource"
|
|
637
|
+
o.http_method = "POST"
|
|
638
|
+
o.http_request_uri = "/v1/untagResource"
|
|
639
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
|
|
640
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
|
|
641
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
642
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
643
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
|
|
644
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
|
|
645
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
646
|
+
end)
|
|
552
647
|
end
|
|
553
648
|
|
|
554
649
|
end
|
data/lib/aws-sdk-polly/errors.rb
CHANGED
|
@@ -35,6 +35,7 @@ module Aws::Polly
|
|
|
35
35
|
# * {InvalidSampleRateException}
|
|
36
36
|
# * {InvalidSnsTopicArnException}
|
|
37
37
|
# * {InvalidSsmlException}
|
|
38
|
+
# * {InvalidTagParameterException}
|
|
38
39
|
# * {InvalidTaskIdException}
|
|
39
40
|
# * {LanguageNotSupportedException}
|
|
40
41
|
# * {LexiconNotFoundException}
|
|
@@ -42,9 +43,11 @@ module Aws::Polly
|
|
|
42
43
|
# * {MarksNotSupportedForFormatException}
|
|
43
44
|
# * {MaxLexemeLengthExceededException}
|
|
44
45
|
# * {MaxLexiconsNumberExceededException}
|
|
46
|
+
# * {ResourceNotFoundException}
|
|
45
47
|
# * {SsmlMarksNotSupportedForTextTypeException}
|
|
46
48
|
# * {SynthesisTaskNotFoundException}
|
|
47
49
|
# * {TextLengthExceededException}
|
|
50
|
+
# * {TooManyTagsException}
|
|
48
51
|
# * {UnsupportedPlsAlphabetException}
|
|
49
52
|
# * {UnsupportedPlsLanguageException}
|
|
50
53
|
#
|
|
@@ -174,6 +177,21 @@ module Aws::Polly
|
|
|
174
177
|
end
|
|
175
178
|
end
|
|
176
179
|
|
|
180
|
+
class InvalidTagParameterException < ServiceError
|
|
181
|
+
|
|
182
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
183
|
+
# @param [String] message
|
|
184
|
+
# @param [Aws::Polly::Types::InvalidTagParameterException] data
|
|
185
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
186
|
+
super(context, message, data)
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# @return [String]
|
|
190
|
+
def message
|
|
191
|
+
@message || @data[:message]
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
177
195
|
class InvalidTaskIdException < ServiceError
|
|
178
196
|
|
|
179
197
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -279,6 +297,31 @@ module Aws::Polly
|
|
|
279
297
|
end
|
|
280
298
|
end
|
|
281
299
|
|
|
300
|
+
class ResourceNotFoundException < ServiceError
|
|
301
|
+
|
|
302
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
303
|
+
# @param [String] message
|
|
304
|
+
# @param [Aws::Polly::Types::ResourceNotFoundException] data
|
|
305
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
306
|
+
super(context, message, data)
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# @return [String]
|
|
310
|
+
def message
|
|
311
|
+
@message || @data[:message]
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# @return [String]
|
|
315
|
+
def resource_id
|
|
316
|
+
@data[:resource_id]
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# @return [String]
|
|
320
|
+
def resource_type
|
|
321
|
+
@data[:resource_type]
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
|
|
282
325
|
class SsmlMarksNotSupportedForTextTypeException < ServiceError
|
|
283
326
|
|
|
284
327
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -324,6 +367,21 @@ module Aws::Polly
|
|
|
324
367
|
end
|
|
325
368
|
end
|
|
326
369
|
|
|
370
|
+
class TooManyTagsException < ServiceError
|
|
371
|
+
|
|
372
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
373
|
+
# @param [String] message
|
|
374
|
+
# @param [Aws::Polly::Types::TooManyTagsException] data
|
|
375
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
376
|
+
super(context, message, data)
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# @return [String]
|
|
380
|
+
def message
|
|
381
|
+
@message || @data[:message]
|
|
382
|
+
end
|
|
383
|
+
end
|
|
384
|
+
|
|
327
385
|
class UnsupportedPlsAlphabetException < ServiceError
|
|
328
386
|
|
|
329
387
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-polly/types.rb
CHANGED
|
@@ -300,6 +300,23 @@ module Aws::Polly
|
|
|
300
300
|
include Aws::Structure
|
|
301
301
|
end
|
|
302
302
|
|
|
303
|
+
# The resource ARN or a tag in the request isn't valid. Specify the ARN
|
|
304
|
+
# of a supported resource in the Amazon Web Services account and Region
|
|
305
|
+
# of the request. Tag keys can have a maximum length of 128 characters,
|
|
306
|
+
# and tag values can have a maximum length of 256 characters. Correct
|
|
307
|
+
# the ARN or the tags, and then try again.
|
|
308
|
+
#
|
|
309
|
+
# @!attribute [rw] message
|
|
310
|
+
# @return [String]
|
|
311
|
+
#
|
|
312
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/InvalidTagParameterException AWS API Documentation
|
|
313
|
+
#
|
|
314
|
+
class InvalidTagParameterException < Struct.new(
|
|
315
|
+
:message)
|
|
316
|
+
SENSITIVE = []
|
|
317
|
+
include Aws::Structure
|
|
318
|
+
end
|
|
319
|
+
|
|
303
320
|
# The provided Task ID is not valid. Please provide a valid Task ID and
|
|
304
321
|
# try again.
|
|
305
322
|
#
|
|
@@ -532,6 +549,32 @@ module Aws::Polly
|
|
|
532
549
|
include Aws::Structure
|
|
533
550
|
end
|
|
534
551
|
|
|
552
|
+
# @!attribute [rw] resource_arn
|
|
553
|
+
# The Amazon Resource Name (ARN) that identifies the resource for
|
|
554
|
+
# which to list the tags. Currently, the only supported resource is an
|
|
555
|
+
# Amazon Polly lexicon.
|
|
556
|
+
# @return [String]
|
|
557
|
+
#
|
|
558
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListTagsForResourceInput AWS API Documentation
|
|
559
|
+
#
|
|
560
|
+
class ListTagsForResourceInput < Struct.new(
|
|
561
|
+
:resource_arn)
|
|
562
|
+
SENSITIVE = []
|
|
563
|
+
include Aws::Structure
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
# @!attribute [rw] tags
|
|
567
|
+
# The tags for the resource.
|
|
568
|
+
# @return [Hash<String,String>]
|
|
569
|
+
#
|
|
570
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListTagsForResourceOutput AWS API Documentation
|
|
571
|
+
#
|
|
572
|
+
class ListTagsForResourceOutput < Struct.new(
|
|
573
|
+
:tags)
|
|
574
|
+
SENSITIVE = []
|
|
575
|
+
include Aws::Structure
|
|
576
|
+
end
|
|
577
|
+
|
|
535
578
|
# Speech marks are not supported for the `OutputFormat` selected. Speech
|
|
536
579
|
# marks are only available for content in `json` format.
|
|
537
580
|
#
|
|
@@ -573,8 +616,8 @@ module Aws::Polly
|
|
|
573
616
|
end
|
|
574
617
|
|
|
575
618
|
# @!attribute [rw] name
|
|
576
|
-
# Name of the lexicon. The name must follow the regular
|
|
577
|
-
# \[0-9A-Za-z\]\{1,20}. That is, the name is a case-sensitive
|
|
619
|
+
# Name of the lexicon. The name must follow the regular expression
|
|
620
|
+
# format \[0-9A-Za-z\]\{1,20}. That is, the name is a case-sensitive
|
|
578
621
|
# alphanumeric string up to 20 characters long.
|
|
579
622
|
# @return [String]
|
|
580
623
|
#
|
|
@@ -582,11 +625,21 @@ module Aws::Polly
|
|
|
582
625
|
# Content of the PLS lexicon as string data.
|
|
583
626
|
# @return [String]
|
|
584
627
|
#
|
|
628
|
+
# @!attribute [rw] tags
|
|
629
|
+
# The metadata that you apply to the lexicon to help you categorize
|
|
630
|
+
# and organize it. Each tag consists of a key and an optional value,
|
|
631
|
+
# both of which you define. Tag keys can have a maximum character
|
|
632
|
+
# length of 128 characters, and tag values can have a maximum length
|
|
633
|
+
# of 256 characters. You can't replace the tags of an existing
|
|
634
|
+
# lexicon by overwriting it with PutLexicon.
|
|
635
|
+
# @return [Hash<String,String>]
|
|
636
|
+
#
|
|
585
637
|
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/PutLexiconInput AWS API Documentation
|
|
586
638
|
#
|
|
587
639
|
class PutLexiconInput < Struct.new(
|
|
588
640
|
:name,
|
|
589
|
-
:content
|
|
641
|
+
:content,
|
|
642
|
+
:tags)
|
|
590
643
|
SENSITIVE = [:content]
|
|
591
644
|
include Aws::Structure
|
|
592
645
|
end
|
|
@@ -595,6 +648,31 @@ module Aws::Polly
|
|
|
595
648
|
#
|
|
596
649
|
class PutLexiconOutput < Aws::EmptyStructure; end
|
|
597
650
|
|
|
651
|
+
# Amazon Polly can't find the specified resource. Verify that the
|
|
652
|
+
# resource exists in the Amazon Web Services account and Region of the
|
|
653
|
+
# request and that its ARN is spelled correctly, and then try again.
|
|
654
|
+
#
|
|
655
|
+
# @!attribute [rw] message
|
|
656
|
+
# @return [String]
|
|
657
|
+
#
|
|
658
|
+
# @!attribute [rw] resource_id
|
|
659
|
+
# The identifier of the resource that wasn't found.
|
|
660
|
+
# @return [String]
|
|
661
|
+
#
|
|
662
|
+
# @!attribute [rw] resource_type
|
|
663
|
+
# The type of the resource that wasn't found.
|
|
664
|
+
# @return [String]
|
|
665
|
+
#
|
|
666
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ResourceNotFoundException AWS API Documentation
|
|
667
|
+
#
|
|
668
|
+
class ResourceNotFoundException < Struct.new(
|
|
669
|
+
:message,
|
|
670
|
+
:resource_id,
|
|
671
|
+
:resource_type)
|
|
672
|
+
SENSITIVE = []
|
|
673
|
+
include Aws::Structure
|
|
674
|
+
end
|
|
675
|
+
|
|
598
676
|
# An unknown condition has caused a service failure.
|
|
599
677
|
#
|
|
600
678
|
# @!attribute [rw] message
|
|
@@ -1141,6 +1219,30 @@ module Aws::Polly
|
|
|
1141
1219
|
include Aws::Structure
|
|
1142
1220
|
end
|
|
1143
1221
|
|
|
1222
|
+
# @!attribute [rw] resource_arn
|
|
1223
|
+
# The Amazon Resource Name (ARN) of the resource to which to add tags.
|
|
1224
|
+
# Currently, the only supported resource is an Amazon Polly lexicon.
|
|
1225
|
+
# @return [String]
|
|
1226
|
+
#
|
|
1227
|
+
# @!attribute [rw] tags
|
|
1228
|
+
# The tags to add to the resource, as key-value pairs. Tag keys can
|
|
1229
|
+
# have a maximum character length of 128 characters, and tag values
|
|
1230
|
+
# can have a maximum length of 256 characters.
|
|
1231
|
+
# @return [Hash<String,String>]
|
|
1232
|
+
#
|
|
1233
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/TagResourceInput AWS API Documentation
|
|
1234
|
+
#
|
|
1235
|
+
class TagResourceInput < Struct.new(
|
|
1236
|
+
:resource_arn,
|
|
1237
|
+
:tags)
|
|
1238
|
+
SENSITIVE = []
|
|
1239
|
+
include Aws::Structure
|
|
1240
|
+
end
|
|
1241
|
+
|
|
1242
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/TagResourceOutput AWS API Documentation
|
|
1243
|
+
#
|
|
1244
|
+
class TagResourceOutput < Aws::EmptyStructure; end
|
|
1245
|
+
|
|
1144
1246
|
# Contains text content to be synthesized into speech.
|
|
1145
1247
|
#
|
|
1146
1248
|
# @!attribute [rw] text
|
|
@@ -1225,6 +1327,21 @@ module Aws::Polly
|
|
|
1225
1327
|
include Aws::Structure
|
|
1226
1328
|
end
|
|
1227
1329
|
|
|
1330
|
+
# The list of tags on the resource is over the limit. The maximum number
|
|
1331
|
+
# of tags that can be applied to a resource is 50. Remove unused tags or
|
|
1332
|
+
# reduce the number of tags in the request, and then try again.
|
|
1333
|
+
#
|
|
1334
|
+
# @!attribute [rw] message
|
|
1335
|
+
# @return [String]
|
|
1336
|
+
#
|
|
1337
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/TooManyTagsException AWS API Documentation
|
|
1338
|
+
#
|
|
1339
|
+
class TooManyTagsException < Struct.new(
|
|
1340
|
+
:message)
|
|
1341
|
+
SENSITIVE = []
|
|
1342
|
+
include Aws::Structure
|
|
1343
|
+
end
|
|
1344
|
+
|
|
1228
1345
|
# The alphabet specified by the lexicon is not a supported alphabet.
|
|
1229
1346
|
# Valid values are `ipa`, `x-sampa`, `x-amazon-pinyin`,
|
|
1230
1347
|
# `x-amazon-jyutping`, `x-amazon-pron-kana`, and `x-amazon-yomigana`.
|
|
@@ -1260,6 +1377,29 @@ module Aws::Polly
|
|
|
1260
1377
|
include Aws::Structure
|
|
1261
1378
|
end
|
|
1262
1379
|
|
|
1380
|
+
# @!attribute [rw] resource_arn
|
|
1381
|
+
# The Amazon Resource Name (ARN) of the resource from which to remove
|
|
1382
|
+
# tags. Currently, the only supported resource is an Amazon Polly
|
|
1383
|
+
# lexicon.
|
|
1384
|
+
# @return [String]
|
|
1385
|
+
#
|
|
1386
|
+
# @!attribute [rw] tag_keys
|
|
1387
|
+
# The keys of the tags to be removed.
|
|
1388
|
+
# @return [Array<String>]
|
|
1389
|
+
#
|
|
1390
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/UntagResourceInput AWS API Documentation
|
|
1391
|
+
#
|
|
1392
|
+
class UntagResourceInput < Struct.new(
|
|
1393
|
+
:resource_arn,
|
|
1394
|
+
:tag_keys)
|
|
1395
|
+
SENSITIVE = []
|
|
1396
|
+
include Aws::Structure
|
|
1397
|
+
end
|
|
1398
|
+
|
|
1399
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/UntagResourceOutput AWS API Documentation
|
|
1400
|
+
#
|
|
1401
|
+
class UntagResourceOutput < Aws::EmptyStructure; end
|
|
1402
|
+
|
|
1263
1403
|
# The input fails to satisfy the constraints specified by the service.
|
|
1264
1404
|
#
|
|
1265
1405
|
# @!attribute [rw] message
|
data/lib/aws-sdk-polly.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -150,13 +150,24 @@ module Aws
|
|
|
150
150
|
) -> _ListSpeechSynthesisTasksResponseSuccess
|
|
151
151
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSpeechSynthesisTasksResponseSuccess
|
|
152
152
|
|
|
153
|
+
interface _ListTagsForResourceResponseSuccess
|
|
154
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceOutput]
|
|
155
|
+
def tags: () -> ::Hash[::String, ::String]
|
|
156
|
+
end
|
|
157
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Polly/Client.html#list_tags_for_resource-instance_method
|
|
158
|
+
def list_tags_for_resource: (
|
|
159
|
+
resource_arn: ::String
|
|
160
|
+
) -> _ListTagsForResourceResponseSuccess
|
|
161
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
|
|
162
|
+
|
|
153
163
|
interface _PutLexiconResponseSuccess
|
|
154
164
|
include ::Seahorse::Client::_ResponseSuccess[Types::PutLexiconOutput]
|
|
155
165
|
end
|
|
156
166
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Polly/Client.html#put_lexicon-instance_method
|
|
157
167
|
def put_lexicon: (
|
|
158
168
|
name: ::String,
|
|
159
|
-
content: ::String
|
|
169
|
+
content: ::String,
|
|
170
|
+
?tags: Hash[::String, ::String]
|
|
160
171
|
) -> _PutLexiconResponseSuccess
|
|
161
172
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutLexiconResponseSuccess
|
|
162
173
|
|
|
@@ -200,6 +211,26 @@ module Aws
|
|
|
200
211
|
voice_id: ("Aditi" | "Amy" | "Astrid" | "Bianca" | "Brian" | "Camila" | "Carla" | "Carmen" | "Celine" | "Chantal" | "Conchita" | "Cristiano" | "Dora" | "Emma" | "Enrique" | "Ewa" | "Filiz" | "Gabrielle" | "Geraint" | "Giorgio" | "Gwyneth" | "Hans" | "Ines" | "Ivy" | "Jacek" | "Jan" | "Joanna" | "Joey" | "Justin" | "Karl" | "Kendra" | "Kevin" | "Kimberly" | "Lea" | "Liv" | "Lotte" | "Lucia" | "Lupe" | "Mads" | "Maja" | "Marlene" | "Mathieu" | "Matthew" | "Maxim" | "Mia" | "Miguel" | "Mizuki" | "Naja" | "Nicole" | "Olivia" | "Penelope" | "Raveena" | "Ricardo" | "Ruben" | "Russell" | "Salli" | "Seoyeon" | "Takumi" | "Tatyana" | "Vicki" | "Vitoria" | "Zeina" | "Zhiyu" | "Aria" | "Ayanda" | "Arlet" | "Hannah" | "Arthur" | "Daniel" | "Liam" | "Pedro" | "Kajal" | "Hiujin" | "Laura" | "Elin" | "Ida" | "Suvi" | "Ola" | "Hala" | "Andres" | "Sergio" | "Remi" | "Adriano" | "Thiago" | "Ruth" | "Stephen" | "Kazuha" | "Tomoko" | "Niamh" | "Sofie" | "Lisa" | "Isabelle" | "Zayd" | "Danielle" | "Gregory" | "Burcu" | "Jitka" | "Sabrina" | "Jasmine" | "Jihye" | "Ambre" | "Beatrice" | "Florian" | "Lennart" | "Lorenzo" | "Tiffany" | "Arjun" | "Carlos" | "Carolina" | "Curtis" | "Hyunduk" | "Kenneth" | "Kiara" | "Leo" | "Nate" | "Tina")
|
|
201
212
|
) ?{ (*untyped) -> void } -> _SynthesizeSpeechResponseSuccess
|
|
202
213
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _SynthesizeSpeechResponseSuccess
|
|
214
|
+
|
|
215
|
+
interface _TagResourceResponseSuccess
|
|
216
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceOutput]
|
|
217
|
+
end
|
|
218
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Polly/Client.html#tag_resource-instance_method
|
|
219
|
+
def tag_resource: (
|
|
220
|
+
resource_arn: ::String,
|
|
221
|
+
tags: Hash[::String, ::String]
|
|
222
|
+
) -> _TagResourceResponseSuccess
|
|
223
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
|
|
224
|
+
|
|
225
|
+
interface _UntagResourceResponseSuccess
|
|
226
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceOutput]
|
|
227
|
+
end
|
|
228
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Polly/Client.html#untag_resource-instance_method
|
|
229
|
+
def untag_resource: (
|
|
230
|
+
resource_arn: ::String,
|
|
231
|
+
tag_keys: Array[::String]
|
|
232
|
+
) -> _UntagResourceResponseSuccess
|
|
233
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
|
|
203
234
|
end
|
|
204
235
|
end
|
|
205
236
|
end
|
data/sig/errors.rbs
CHANGED
|
@@ -35,6 +35,9 @@ module Aws
|
|
|
35
35
|
class InvalidSsmlException < ServiceError
|
|
36
36
|
def message: () -> ::String
|
|
37
37
|
end
|
|
38
|
+
class InvalidTagParameterException < ServiceError
|
|
39
|
+
def message: () -> ::String
|
|
40
|
+
end
|
|
38
41
|
class InvalidTaskIdException < ServiceError
|
|
39
42
|
def message: () -> ::String
|
|
40
43
|
end
|
|
@@ -56,6 +59,11 @@ module Aws
|
|
|
56
59
|
class MaxLexiconsNumberExceededException < ServiceError
|
|
57
60
|
def message: () -> ::String
|
|
58
61
|
end
|
|
62
|
+
class ResourceNotFoundException < ServiceError
|
|
63
|
+
def message: () -> ::String
|
|
64
|
+
def resource_id: () -> ::String
|
|
65
|
+
def resource_type: () -> ::String
|
|
66
|
+
end
|
|
59
67
|
class SsmlMarksNotSupportedForTextTypeException < ServiceError
|
|
60
68
|
def message: () -> ::String
|
|
61
69
|
end
|
|
@@ -65,6 +73,9 @@ module Aws
|
|
|
65
73
|
class TextLengthExceededException < ServiceError
|
|
66
74
|
def message: () -> ::String
|
|
67
75
|
end
|
|
76
|
+
class TooManyTagsException < ServiceError
|
|
77
|
+
def message: () -> ::String
|
|
78
|
+
end
|
|
68
79
|
class UnsupportedPlsAlphabetException < ServiceError
|
|
69
80
|
def message: () -> ::String
|
|
70
81
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -107,6 +107,11 @@ module Aws::Polly
|
|
|
107
107
|
SENSITIVE: []
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
+
class InvalidTagParameterException
|
|
111
|
+
attr_accessor message: ::String
|
|
112
|
+
SENSITIVE: []
|
|
113
|
+
end
|
|
114
|
+
|
|
110
115
|
class InvalidTaskIdException
|
|
111
116
|
attr_accessor message: ::String
|
|
112
117
|
SENSITIVE: []
|
|
@@ -173,6 +178,16 @@ module Aws::Polly
|
|
|
173
178
|
SENSITIVE: []
|
|
174
179
|
end
|
|
175
180
|
|
|
181
|
+
class ListTagsForResourceInput
|
|
182
|
+
attr_accessor resource_arn: ::String
|
|
183
|
+
SENSITIVE: []
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
class ListTagsForResourceOutput
|
|
187
|
+
attr_accessor tags: ::Hash[::String, ::String]
|
|
188
|
+
SENSITIVE: []
|
|
189
|
+
end
|
|
190
|
+
|
|
176
191
|
class MarksNotSupportedForFormatException
|
|
177
192
|
attr_accessor message: ::String
|
|
178
193
|
SENSITIVE: []
|
|
@@ -191,12 +206,20 @@ module Aws::Polly
|
|
|
191
206
|
class PutLexiconInput
|
|
192
207
|
attr_accessor name: ::String
|
|
193
208
|
attr_accessor content: ::String
|
|
209
|
+
attr_accessor tags: ::Hash[::String, ::String]
|
|
194
210
|
SENSITIVE: [:content]
|
|
195
211
|
end
|
|
196
212
|
|
|
197
213
|
class PutLexiconOutput < Aws::EmptyStructure
|
|
198
214
|
end
|
|
199
215
|
|
|
216
|
+
class ResourceNotFoundException
|
|
217
|
+
attr_accessor message: ::String
|
|
218
|
+
attr_accessor resource_id: ::String
|
|
219
|
+
attr_accessor resource_type: ("lexicon")
|
|
220
|
+
SENSITIVE: []
|
|
221
|
+
end
|
|
222
|
+
|
|
200
223
|
class ServiceFailureException
|
|
201
224
|
attr_accessor message: ::String
|
|
202
225
|
attr_accessor event_type: untyped
|
|
@@ -303,6 +326,15 @@ module Aws::Polly
|
|
|
303
326
|
SENSITIVE: []
|
|
304
327
|
end
|
|
305
328
|
|
|
329
|
+
class TagResourceInput
|
|
330
|
+
attr_accessor resource_arn: ::String
|
|
331
|
+
attr_accessor tags: ::Hash[::String, ::String]
|
|
332
|
+
SENSITIVE: []
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
class TagResourceOutput < Aws::EmptyStructure
|
|
336
|
+
end
|
|
337
|
+
|
|
306
338
|
class TextEvent
|
|
307
339
|
attr_accessor text: ::String
|
|
308
340
|
attr_accessor text_type: ("ssml" | "text")
|
|
@@ -329,6 +361,11 @@ module Aws::Polly
|
|
|
329
361
|
SENSITIVE: []
|
|
330
362
|
end
|
|
331
363
|
|
|
364
|
+
class TooManyTagsException
|
|
365
|
+
attr_accessor message: ::String
|
|
366
|
+
SENSITIVE: []
|
|
367
|
+
end
|
|
368
|
+
|
|
332
369
|
class UnsupportedPlsAlphabetException
|
|
333
370
|
attr_accessor message: ::String
|
|
334
371
|
SENSITIVE: []
|
|
@@ -339,6 +376,15 @@ module Aws::Polly
|
|
|
339
376
|
SENSITIVE: []
|
|
340
377
|
end
|
|
341
378
|
|
|
379
|
+
class UntagResourceInput
|
|
380
|
+
attr_accessor resource_arn: ::String
|
|
381
|
+
attr_accessor tag_keys: ::Array[::String]
|
|
382
|
+
SENSITIVE: []
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
class UntagResourceOutput < Aws::EmptyStructure
|
|
386
|
+
end
|
|
387
|
+
|
|
342
388
|
class ValidationException
|
|
343
389
|
attr_accessor message: ::String
|
|
344
390
|
attr_accessor reason: ("unsupportedOperation" | "fieldValidationFailed" | "other" | "invalidInboundEvent")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-polly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.135.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: '3'
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.264.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: '3'
|
|
29
29
|
- - ">="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 3.
|
|
31
|
+
version: 3.264.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|