aws-sdk-polly 1.21.0 → 1.22.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
2
  SHA1:
3
- metadata.gz: 35d2c77a8bdfaa8982f882850b89cad5615ba360
4
- data.tar.gz: f93157e73a316b2446013034671043b8d69a5e9d
3
+ metadata.gz: 238d2107620ebde1dce5f1ab895aae124805af67
4
+ data.tar.gz: 3107a841b47cfa447666cda1bba04b4503ca59db
5
5
  SHA512:
6
- metadata.gz: 2870892f9f17030e163f2533bf1840fe425d15764264718a2cb145faad1f4104573d19261a2eb96a6aa062037bd88b3cb9c4bac30506f8b3af0002cada247bba
7
- data.tar.gz: f074c20865b674c1fe478a9e30b62e66fde415f99b318f4bbc10c37a8d3948dcf6a73eb56d53a5c73b795016295887bed880f894600c9fb24274d747590db820
6
+ metadata.gz: 35a07039e65d156cf0aa58d66b7951d88a93ad8d900056922bed5cb33e59cffee1a36d03454ce700255e6c2f9c582bb8df8af82f9bc96bac4e46ac67afbf5d8d
7
+ data.tar.gz: 507d41727b36d247a33a297c98cb85cc54929a92e1c0a8811a6ffdec8039f59c14155ee7376759c5dff8f9018d5c35ae14acffd896c6e07a16b2694ecb4817a7
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-polly/customizations'
42
42
  # @service
43
43
  module Aws::Polly
44
44
 
45
- GEM_VERSION = '1.21.0'
45
+ GEM_VERSION = '1.22.0'
46
46
 
47
47
  end
@@ -957,7 +957,7 @@ module Aws::Polly
957
957
  params: params,
958
958
  config: config)
959
959
  context[:gem_name] = 'aws-sdk-polly'
960
- context[:gem_version] = '1.21.0'
960
+ context[:gem_version] = '1.22.0'
961
961
  Seahorse::Client::Request.new(handlers, context)
962
962
  end
963
963
 
@@ -120,8 +120,35 @@ module Aws::Polly
120
120
  GetSpeechSynthesisTaskOutput.add_member(:synthesis_task, Shapes::ShapeRef.new(shape: SynthesisTask, location_name: "SynthesisTask"))
121
121
  GetSpeechSynthesisTaskOutput.struct_class = Types::GetSpeechSynthesisTaskOutput
122
122
 
123
+ InvalidLexiconException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
124
+ InvalidLexiconException.struct_class = Types::InvalidLexiconException
125
+
126
+ InvalidNextTokenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
127
+ InvalidNextTokenException.struct_class = Types::InvalidNextTokenException
128
+
129
+ InvalidS3BucketException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
130
+ InvalidS3BucketException.struct_class = Types::InvalidS3BucketException
131
+
132
+ InvalidS3KeyException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
133
+ InvalidS3KeyException.struct_class = Types::InvalidS3KeyException
134
+
135
+ InvalidSampleRateException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
136
+ InvalidSampleRateException.struct_class = Types::InvalidSampleRateException
137
+
138
+ InvalidSnsTopicArnException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
139
+ InvalidSnsTopicArnException.struct_class = Types::InvalidSnsTopicArnException
140
+
141
+ InvalidSsmlException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
142
+ InvalidSsmlException.struct_class = Types::InvalidSsmlException
143
+
144
+ InvalidTaskIdException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
145
+ InvalidTaskIdException.struct_class = Types::InvalidTaskIdException
146
+
123
147
  LanguageCodeList.member = Shapes::ShapeRef.new(shape: LanguageCode)
124
148
 
149
+ LanguageNotSupportedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
150
+ LanguageNotSupportedException.struct_class = Types::LanguageNotSupportedException
151
+
125
152
  Lexicon.add_member(:content, Shapes::ShapeRef.new(shape: LexiconContent, location_name: "Content"))
126
153
  Lexicon.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, location_name: "Name"))
127
154
  Lexicon.struct_class = Types::Lexicon
@@ -142,6 +169,12 @@ module Aws::Polly
142
169
 
143
170
  LexiconNameList.member = Shapes::ShapeRef.new(shape: LexiconName)
144
171
 
172
+ LexiconNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
173
+ LexiconNotFoundException.struct_class = Types::LexiconNotFoundException
174
+
175
+ LexiconSizeExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
176
+ LexiconSizeExceededException.struct_class = Types::LexiconSizeExceededException
177
+
145
178
  ListLexiconsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
146
179
  ListLexiconsInput.struct_class = Types::ListLexiconsInput
147
180
 
@@ -158,14 +191,29 @@ module Aws::Polly
158
191
  ListSpeechSynthesisTasksOutput.add_member(:synthesis_tasks, Shapes::ShapeRef.new(shape: SynthesisTasks, location_name: "SynthesisTasks"))
159
192
  ListSpeechSynthesisTasksOutput.struct_class = Types::ListSpeechSynthesisTasksOutput
160
193
 
194
+ MarksNotSupportedForFormatException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
195
+ MarksNotSupportedForFormatException.struct_class = Types::MarksNotSupportedForFormatException
196
+
197
+ MaxLexemeLengthExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
198
+ MaxLexemeLengthExceededException.struct_class = Types::MaxLexemeLengthExceededException
199
+
200
+ MaxLexiconsNumberExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
201
+ MaxLexiconsNumberExceededException.struct_class = Types::MaxLexiconsNumberExceededException
202
+
161
203
  PutLexiconInput.add_member(:name, Shapes::ShapeRef.new(shape: LexiconName, required: true, location: "uri", location_name: "LexiconName"))
162
204
  PutLexiconInput.add_member(:content, Shapes::ShapeRef.new(shape: LexiconContent, required: true, location_name: "Content"))
163
205
  PutLexiconInput.struct_class = Types::PutLexiconInput
164
206
 
165
207
  PutLexiconOutput.struct_class = Types::PutLexiconOutput
166
208
 
209
+ ServiceFailureException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
210
+ ServiceFailureException.struct_class = Types::ServiceFailureException
211
+
167
212
  SpeechMarkTypeList.member = Shapes::ShapeRef.new(shape: SpeechMarkType)
168
213
 
214
+ SsmlMarksNotSupportedForTextTypeException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
215
+ SsmlMarksNotSupportedForTextTypeException.struct_class = Types::SsmlMarksNotSupportedForTextTypeException
216
+
169
217
  StartSpeechSynthesisTaskInput.add_member(:lexicon_names, Shapes::ShapeRef.new(shape: LexiconNameList, location_name: "LexiconNames"))
170
218
  StartSpeechSynthesisTaskInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, required: true, location_name: "OutputFormat"))
171
219
  StartSpeechSynthesisTaskInput.add_member(:output_s3_bucket_name, Shapes::ShapeRef.new(shape: OutputS3BucketName, required: true, location_name: "OutputS3BucketName"))
@@ -198,6 +246,9 @@ module Aws::Polly
198
246
  SynthesisTask.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
199
247
  SynthesisTask.struct_class = Types::SynthesisTask
200
248
 
249
+ SynthesisTaskNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
250
+ SynthesisTaskNotFoundException.struct_class = Types::SynthesisTaskNotFoundException
251
+
201
252
  SynthesisTasks.member = Shapes::ShapeRef.new(shape: SynthesisTask)
202
253
 
203
254
  SynthesizeSpeechInput.add_member(:lexicon_names, Shapes::ShapeRef.new(shape: LexiconNameList, location_name: "LexiconNames"))
@@ -217,6 +268,15 @@ module Aws::Polly
217
268
  SynthesizeSpeechOutput[:payload] = :audio_stream
218
269
  SynthesizeSpeechOutput[:payload_member] = SynthesizeSpeechOutput.member(:audio_stream)
219
270
 
271
+ TextLengthExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
272
+ TextLengthExceededException.struct_class = Types::TextLengthExceededException
273
+
274
+ UnsupportedPlsAlphabetException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
275
+ UnsupportedPlsAlphabetException.struct_class = Types::UnsupportedPlsAlphabetException
276
+
277
+ UnsupportedPlsLanguageException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
278
+ UnsupportedPlsLanguageException.struct_class = Types::UnsupportedPlsLanguageException
279
+
220
280
  Voice.add_member(:gender, Shapes::ShapeRef.new(shape: Gender, location_name: "Gender"))
221
281
  Voice.add_member(:id, Shapes::ShapeRef.new(shape: VoiceId, location_name: "Id"))
222
282
  Voice.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
@@ -10,5 +10,325 @@ module Aws::Polly
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class InvalidLexiconException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::Polly::Types::InvalidLexiconException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
29
+ class InvalidNextTokenException < ServiceError
30
+
31
+ # @param [Seahorse::Client::RequestContext] context
32
+ # @param [String] message
33
+ # @param [Aws::Polly::Types::InvalidNextTokenException] data
34
+ def initialize(context, message, data = Aws::EmptyStructure.new)
35
+ super(context, message, data)
36
+ end
37
+
38
+ # @return [String]
39
+ def message
40
+ @message || @data[:message]
41
+ end
42
+
43
+ end
44
+
45
+ class InvalidS3BucketException < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::Polly::Types::InvalidS3BucketException] data
50
+ def initialize(context, message, data = Aws::EmptyStructure.new)
51
+ super(context, message, data)
52
+ end
53
+
54
+ # @return [String]
55
+ def message
56
+ @message || @data[:message]
57
+ end
58
+
59
+ end
60
+
61
+ class InvalidS3KeyException < ServiceError
62
+
63
+ # @param [Seahorse::Client::RequestContext] context
64
+ # @param [String] message
65
+ # @param [Aws::Polly::Types::InvalidS3KeyException] data
66
+ def initialize(context, message, data = Aws::EmptyStructure.new)
67
+ super(context, message, data)
68
+ end
69
+
70
+ # @return [String]
71
+ def message
72
+ @message || @data[:message]
73
+ end
74
+
75
+ end
76
+
77
+ class InvalidSampleRateException < ServiceError
78
+
79
+ # @param [Seahorse::Client::RequestContext] context
80
+ # @param [String] message
81
+ # @param [Aws::Polly::Types::InvalidSampleRateException] data
82
+ def initialize(context, message, data = Aws::EmptyStructure.new)
83
+ super(context, message, data)
84
+ end
85
+
86
+ # @return [String]
87
+ def message
88
+ @message || @data[:message]
89
+ end
90
+
91
+ end
92
+
93
+ class InvalidSnsTopicArnException < ServiceError
94
+
95
+ # @param [Seahorse::Client::RequestContext] context
96
+ # @param [String] message
97
+ # @param [Aws::Polly::Types::InvalidSnsTopicArnException] data
98
+ def initialize(context, message, data = Aws::EmptyStructure.new)
99
+ super(context, message, data)
100
+ end
101
+
102
+ # @return [String]
103
+ def message
104
+ @message || @data[:message]
105
+ end
106
+
107
+ end
108
+
109
+ class InvalidSsmlException < ServiceError
110
+
111
+ # @param [Seahorse::Client::RequestContext] context
112
+ # @param [String] message
113
+ # @param [Aws::Polly::Types::InvalidSsmlException] data
114
+ def initialize(context, message, data = Aws::EmptyStructure.new)
115
+ super(context, message, data)
116
+ end
117
+
118
+ # @return [String]
119
+ def message
120
+ @message || @data[:message]
121
+ end
122
+
123
+ end
124
+
125
+ class InvalidTaskIdException < ServiceError
126
+
127
+ # @param [Seahorse::Client::RequestContext] context
128
+ # @param [String] message
129
+ # @param [Aws::Polly::Types::InvalidTaskIdException] data
130
+ def initialize(context, message, data = Aws::EmptyStructure.new)
131
+ super(context, message, data)
132
+ end
133
+
134
+ # @return [String]
135
+ def message
136
+ @message || @data[:message]
137
+ end
138
+
139
+ end
140
+
141
+ class LanguageNotSupportedException < ServiceError
142
+
143
+ # @param [Seahorse::Client::RequestContext] context
144
+ # @param [String] message
145
+ # @param [Aws::Polly::Types::LanguageNotSupportedException] data
146
+ def initialize(context, message, data = Aws::EmptyStructure.new)
147
+ super(context, message, data)
148
+ end
149
+
150
+ # @return [String]
151
+ def message
152
+ @message || @data[:message]
153
+ end
154
+
155
+ end
156
+
157
+ class LexiconNotFoundException < ServiceError
158
+
159
+ # @param [Seahorse::Client::RequestContext] context
160
+ # @param [String] message
161
+ # @param [Aws::Polly::Types::LexiconNotFoundException] data
162
+ def initialize(context, message, data = Aws::EmptyStructure.new)
163
+ super(context, message, data)
164
+ end
165
+
166
+ # @return [String]
167
+ def message
168
+ @message || @data[:message]
169
+ end
170
+
171
+ end
172
+
173
+ class LexiconSizeExceededException < ServiceError
174
+
175
+ # @param [Seahorse::Client::RequestContext] context
176
+ # @param [String] message
177
+ # @param [Aws::Polly::Types::LexiconSizeExceededException] data
178
+ def initialize(context, message, data = Aws::EmptyStructure.new)
179
+ super(context, message, data)
180
+ end
181
+
182
+ # @return [String]
183
+ def message
184
+ @message || @data[:message]
185
+ end
186
+
187
+ end
188
+
189
+ class MarksNotSupportedForFormatException < ServiceError
190
+
191
+ # @param [Seahorse::Client::RequestContext] context
192
+ # @param [String] message
193
+ # @param [Aws::Polly::Types::MarksNotSupportedForFormatException] data
194
+ def initialize(context, message, data = Aws::EmptyStructure.new)
195
+ super(context, message, data)
196
+ end
197
+
198
+ # @return [String]
199
+ def message
200
+ @message || @data[:message]
201
+ end
202
+
203
+ end
204
+
205
+ class MaxLexemeLengthExceededException < ServiceError
206
+
207
+ # @param [Seahorse::Client::RequestContext] context
208
+ # @param [String] message
209
+ # @param [Aws::Polly::Types::MaxLexemeLengthExceededException] data
210
+ def initialize(context, message, data = Aws::EmptyStructure.new)
211
+ super(context, message, data)
212
+ end
213
+
214
+ # @return [String]
215
+ def message
216
+ @message || @data[:message]
217
+ end
218
+
219
+ end
220
+
221
+ class MaxLexiconsNumberExceededException < ServiceError
222
+
223
+ # @param [Seahorse::Client::RequestContext] context
224
+ # @param [String] message
225
+ # @param [Aws::Polly::Types::MaxLexiconsNumberExceededException] data
226
+ def initialize(context, message, data = Aws::EmptyStructure.new)
227
+ super(context, message, data)
228
+ end
229
+
230
+ # @return [String]
231
+ def message
232
+ @message || @data[:message]
233
+ end
234
+
235
+ end
236
+
237
+ class ServiceFailureException < ServiceError
238
+
239
+ # @param [Seahorse::Client::RequestContext] context
240
+ # @param [String] message
241
+ # @param [Aws::Polly::Types::ServiceFailureException] data
242
+ def initialize(context, message, data = Aws::EmptyStructure.new)
243
+ super(context, message, data)
244
+ end
245
+
246
+ # @return [String]
247
+ def message
248
+ @message || @data[:message]
249
+ end
250
+
251
+ end
252
+
253
+ class SsmlMarksNotSupportedForTextTypeException < ServiceError
254
+
255
+ # @param [Seahorse::Client::RequestContext] context
256
+ # @param [String] message
257
+ # @param [Aws::Polly::Types::SsmlMarksNotSupportedForTextTypeException] data
258
+ def initialize(context, message, data = Aws::EmptyStructure.new)
259
+ super(context, message, data)
260
+ end
261
+
262
+ # @return [String]
263
+ def message
264
+ @message || @data[:message]
265
+ end
266
+
267
+ end
268
+
269
+ class SynthesisTaskNotFoundException < ServiceError
270
+
271
+ # @param [Seahorse::Client::RequestContext] context
272
+ # @param [String] message
273
+ # @param [Aws::Polly::Types::SynthesisTaskNotFoundException] data
274
+ def initialize(context, message, data = Aws::EmptyStructure.new)
275
+ super(context, message, data)
276
+ end
277
+
278
+ # @return [String]
279
+ def message
280
+ @message || @data[:message]
281
+ end
282
+
283
+ end
284
+
285
+ class TextLengthExceededException < ServiceError
286
+
287
+ # @param [Seahorse::Client::RequestContext] context
288
+ # @param [String] message
289
+ # @param [Aws::Polly::Types::TextLengthExceededException] data
290
+ def initialize(context, message, data = Aws::EmptyStructure.new)
291
+ super(context, message, data)
292
+ end
293
+
294
+ # @return [String]
295
+ def message
296
+ @message || @data[:message]
297
+ end
298
+
299
+ end
300
+
301
+ class UnsupportedPlsAlphabetException < ServiceError
302
+
303
+ # @param [Seahorse::Client::RequestContext] context
304
+ # @param [String] message
305
+ # @param [Aws::Polly::Types::UnsupportedPlsAlphabetException] data
306
+ def initialize(context, message, data = Aws::EmptyStructure.new)
307
+ super(context, message, data)
308
+ end
309
+
310
+ # @return [String]
311
+ def message
312
+ @message || @data[:message]
313
+ end
314
+
315
+ end
316
+
317
+ class UnsupportedPlsLanguageException < ServiceError
318
+
319
+ # @param [Seahorse::Client::RequestContext] context
320
+ # @param [String] message
321
+ # @param [Aws::Polly::Types::UnsupportedPlsLanguageException] data
322
+ def initialize(context, message, data = Aws::EmptyStructure.new)
323
+ super(context, message, data)
324
+ end
325
+
326
+ # @return [String]
327
+ def message
328
+ @message || @data[:message]
329
+ end
330
+
331
+ end
332
+
13
333
  end
14
334
  end
@@ -157,6 +157,122 @@ module Aws::Polly
157
157
  include Aws::Structure
158
158
  end
159
159
 
160
+ # Amazon Polly can't find the specified lexicon. Verify that the
161
+ # lexicon's name is spelled correctly, and then try again.
162
+ #
163
+ # @!attribute [rw] message
164
+ # @return [String]
165
+ #
166
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/InvalidLexiconException AWS API Documentation
167
+ #
168
+ class InvalidLexiconException < Struct.new(
169
+ :message)
170
+ include Aws::Structure
171
+ end
172
+
173
+ # The NextToken is invalid. Verify that it's spelled correctly, and
174
+ # then try again.
175
+ #
176
+ # @!attribute [rw] message
177
+ # @return [String]
178
+ #
179
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/InvalidNextTokenException AWS API Documentation
180
+ #
181
+ class InvalidNextTokenException < Struct.new(
182
+ :message)
183
+ include Aws::Structure
184
+ end
185
+
186
+ # The provided Amazon S3 bucket name is invalid. Please check your input
187
+ # with S3 bucket naming requirements and try again.
188
+ #
189
+ # @!attribute [rw] message
190
+ # @return [String]
191
+ #
192
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/InvalidS3BucketException AWS API Documentation
193
+ #
194
+ class InvalidS3BucketException < Struct.new(
195
+ :message)
196
+ include Aws::Structure
197
+ end
198
+
199
+ # The provided Amazon S3 key prefix is invalid. Please provide a valid
200
+ # S3 object key name.
201
+ #
202
+ # @!attribute [rw] message
203
+ # @return [String]
204
+ #
205
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/InvalidS3KeyException AWS API Documentation
206
+ #
207
+ class InvalidS3KeyException < Struct.new(
208
+ :message)
209
+ include Aws::Structure
210
+ end
211
+
212
+ # The specified sample rate is not valid.
213
+ #
214
+ # @!attribute [rw] message
215
+ # @return [String]
216
+ #
217
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/InvalidSampleRateException AWS API Documentation
218
+ #
219
+ class InvalidSampleRateException < Struct.new(
220
+ :message)
221
+ include Aws::Structure
222
+ end
223
+
224
+ # The provided SNS topic ARN is invalid. Please provide a valid SNS
225
+ # topic ARN and try again.
226
+ #
227
+ # @!attribute [rw] message
228
+ # @return [String]
229
+ #
230
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/InvalidSnsTopicArnException AWS API Documentation
231
+ #
232
+ class InvalidSnsTopicArnException < Struct.new(
233
+ :message)
234
+ include Aws::Structure
235
+ end
236
+
237
+ # The SSML you provided is invalid. Verify the SSML syntax, spelling of
238
+ # tags and values, and then try again.
239
+ #
240
+ # @!attribute [rw] message
241
+ # @return [String]
242
+ #
243
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/InvalidSsmlException AWS API Documentation
244
+ #
245
+ class InvalidSsmlException < Struct.new(
246
+ :message)
247
+ include Aws::Structure
248
+ end
249
+
250
+ # The provided Task ID is not valid. Please provide a valid Task ID and
251
+ # try again.
252
+ #
253
+ # @!attribute [rw] message
254
+ # @return [String]
255
+ #
256
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/InvalidTaskIdException AWS API Documentation
257
+ #
258
+ class InvalidTaskIdException < Struct.new(
259
+ :message)
260
+ include Aws::Structure
261
+ end
262
+
263
+ # The language specified is not currently supported by Amazon Polly in
264
+ # this capacity.
265
+ #
266
+ # @!attribute [rw] message
267
+ # @return [String]
268
+ #
269
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/LanguageNotSupportedException AWS API Documentation
270
+ #
271
+ class LanguageNotSupportedException < Struct.new(
272
+ :message)
273
+ include Aws::Structure
274
+ end
275
+
160
276
  # Provides lexicon name and lexicon content in string format. For more
161
277
  # information, see [Pronunciation Lexicon Specification (PLS) Version
162
278
  # 1.0][1].
@@ -247,6 +363,36 @@ module Aws::Polly
247
363
  include Aws::Structure
248
364
  end
249
365
 
366
+ # Amazon Polly can't find the specified lexicon. This could be caused
367
+ # by a lexicon that is missing, its name is misspelled or specifying a
368
+ # lexicon that is in a different region.
369
+ #
370
+ # Verify that the lexicon exists, is in the region (see ListLexicons)
371
+ # and that you spelled its name is spelled correctly. Then try again.
372
+ #
373
+ # @!attribute [rw] message
374
+ # @return [String]
375
+ #
376
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/LexiconNotFoundException AWS API Documentation
377
+ #
378
+ class LexiconNotFoundException < Struct.new(
379
+ :message)
380
+ include Aws::Structure
381
+ end
382
+
383
+ # The maximum size of the specified lexicon would be exceeded by this
384
+ # operation.
385
+ #
386
+ # @!attribute [rw] message
387
+ # @return [String]
388
+ #
389
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/LexiconSizeExceededException AWS API Documentation
390
+ #
391
+ class LexiconSizeExceededException < Struct.new(
392
+ :message)
393
+ include Aws::Structure
394
+ end
395
+
250
396
  # @note When making an API call, you may pass ListLexiconsInput
251
397
  # data as a hash:
252
398
  #
@@ -337,6 +483,43 @@ module Aws::Polly
337
483
  include Aws::Structure
338
484
  end
339
485
 
486
+ # Speech marks are not supported for the `OutputFormat` selected. Speech
487
+ # marks are only available for content in `json` format.
488
+ #
489
+ # @!attribute [rw] message
490
+ # @return [String]
491
+ #
492
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/MarksNotSupportedForFormatException AWS API Documentation
493
+ #
494
+ class MarksNotSupportedForFormatException < Struct.new(
495
+ :message)
496
+ include Aws::Structure
497
+ end
498
+
499
+ # The maximum size of the lexeme would be exceeded by this operation.
500
+ #
501
+ # @!attribute [rw] message
502
+ # @return [String]
503
+ #
504
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/MaxLexemeLengthExceededException AWS API Documentation
505
+ #
506
+ class MaxLexemeLengthExceededException < Struct.new(
507
+ :message)
508
+ include Aws::Structure
509
+ end
510
+
511
+ # The maximum number of lexicons would be exceeded by this operation.
512
+ #
513
+ # @!attribute [rw] message
514
+ # @return [String]
515
+ #
516
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/MaxLexiconsNumberExceededException AWS API Documentation
517
+ #
518
+ class MaxLexiconsNumberExceededException < Struct.new(
519
+ :message)
520
+ include Aws::Structure
521
+ end
522
+
340
523
  # @note When making an API call, you may pass PutLexiconInput
341
524
  # data as a hash:
342
525
  #
@@ -367,6 +550,30 @@ module Aws::Polly
367
550
  #
368
551
  class PutLexiconOutput < Aws::EmptyStructure; end
369
552
 
553
+ # An unknown condition has caused a service failure.
554
+ #
555
+ # @!attribute [rw] message
556
+ # @return [String]
557
+ #
558
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ServiceFailureException AWS API Documentation
559
+ #
560
+ class ServiceFailureException < Struct.new(
561
+ :message)
562
+ include Aws::Structure
563
+ end
564
+
565
+ # SSML speech marks are not supported for plain text-type input.
566
+ #
567
+ # @!attribute [rw] message
568
+ # @return [String]
569
+ #
570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SsmlMarksNotSupportedForTextTypeException AWS API Documentation
571
+ #
572
+ class SsmlMarksNotSupportedForTextTypeException < Struct.new(
573
+ :message)
574
+ include Aws::Structure
575
+ end
576
+
370
577
  # @note When making an API call, you may pass StartSpeechSynthesisTaskInput
371
578
  # data as a hash:
372
579
  #
@@ -588,6 +795,18 @@ module Aws::Polly
588
795
  include Aws::Structure
589
796
  end
590
797
 
798
+ # The Speech Synthesis task with requested Task ID cannot be found.
799
+ #
800
+ # @!attribute [rw] message
801
+ # @return [String]
802
+ #
803
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/SynthesisTaskNotFoundException AWS API Documentation
804
+ #
805
+ class SynthesisTaskNotFoundException < Struct.new(
806
+ :message)
807
+ include Aws::Structure
808
+ end
809
+
591
810
  # @note When making an API call, you may pass SynthesizeSpeechInput
592
811
  # data as a hash:
593
812
  #
@@ -725,6 +944,53 @@ module Aws::Polly
725
944
  include Aws::Structure
726
945
  end
727
946
 
947
+ # The value of the "Text" parameter is longer than the accepted
948
+ # limits. For the `SynthesizeSpeech` API, the limit for input text is a
949
+ # maximum of 6000 characters total, of which no more than 3000 can be
950
+ # billed characters. For the `StartSpeechSynthesisTask` API, the maximum
951
+ # is 200,000 characters, of which no more than 100,000 can be billed
952
+ # characters. SSML tags are not counted as billed characters.
953
+ #
954
+ # @!attribute [rw] message
955
+ # @return [String]
956
+ #
957
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/TextLengthExceededException AWS API Documentation
958
+ #
959
+ class TextLengthExceededException < Struct.new(
960
+ :message)
961
+ include Aws::Structure
962
+ end
963
+
964
+ # The alphabet specified by the lexicon is not a supported alphabet.
965
+ # Valid values are `x-sampa` and `ipa`.
966
+ #
967
+ # @!attribute [rw] message
968
+ # @return [String]
969
+ #
970
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/UnsupportedPlsAlphabetException AWS API Documentation
971
+ #
972
+ class UnsupportedPlsAlphabetException < Struct.new(
973
+ :message)
974
+ include Aws::Structure
975
+ end
976
+
977
+ # The language specified in the lexicon is unsupported. For a list of
978
+ # supported languages, see [Lexicon Attributes][1].
979
+ #
980
+ #
981
+ #
982
+ # [1]: http://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html
983
+ #
984
+ # @!attribute [rw] message
985
+ # @return [String]
986
+ #
987
+ # @see http://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/UnsupportedPlsLanguageException AWS API Documentation
988
+ #
989
+ class UnsupportedPlsLanguageException < Struct.new(
990
+ :message)
991
+ include Aws::Structure
992
+ end
993
+
728
994
  # Description of the voice.
729
995
  #
730
996
  # @!attribute [rw] gender
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-polly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.22.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: 2019-05-15 00:00:00.000000000 Z
11
+ date: 2019-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.52.1
22
+ version: 3.53.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.52.1
32
+ version: 3.53.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement