@aws-sdk/client-polly 3.1161.0 → 3.1162.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.
- package/README.md +21 -0
- package/dist-cjs/index.js +197 -45
- package/dist-es/Polly.js +6 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/enums.js +9 -6
- package/dist-es/models/errors.js +75 -32
- package/dist-es/schemas/schemas_0.js +84 -7
- package/dist-types/Polly.d.ts +21 -0
- package/dist-types/PollyClient.d.ts +5 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +112 -0
- package/dist-types/commands/PutLexiconCommand.d.ts +23 -0
- package/dist-types/commands/TagResourceCommand.d.ts +118 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +109 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/enums.d.ts +24 -13
- package/dist-types/models/errors.d.ts +99 -42
- package/dist-types/models/models_0.d.ts +109 -33
- package/dist-types/schemas/schemas_0.d.ts +12 -0
- package/dist-types/ts3.4/Polly.d.ts +48 -0
- package/dist-types/ts3.4/PollyClient.d.ts +17 -2
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/enums.d.ts +12 -8
- package/dist-types/ts3.4/models/errors.d.ts +36 -16
- package/dist-types/ts3.4/models/models_0.d.ts +25 -8
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
- package/package.json +3 -3
package/dist-es/models/errors.js
CHANGED
|
@@ -155,6 +155,19 @@ export class InvalidSsmlException extends __BaseException {
|
|
|
155
155
|
Object.setPrototypeOf(this, InvalidSsmlException.prototype);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
+
export class InvalidTagParameterException extends __BaseException {
|
|
159
|
+
static shapeId = "com.amazonaws.polly#InvalidTagParameterException";
|
|
160
|
+
name = "InvalidTagParameterException";
|
|
161
|
+
$fault = "client";
|
|
162
|
+
constructor(opts) {
|
|
163
|
+
super({
|
|
164
|
+
name: "InvalidTagParameterException",
|
|
165
|
+
$fault: "client",
|
|
166
|
+
...opts,
|
|
167
|
+
});
|
|
168
|
+
Object.setPrototypeOf(this, InvalidTagParameterException.prototype);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
158
171
|
export class LanguageNotSupportedException extends __BaseException {
|
|
159
172
|
static shapeId = "com.amazonaws.polly#LanguageNotSupportedException";
|
|
160
173
|
name = "LanguageNotSupportedException";
|
|
@@ -181,6 +194,55 @@ export class LexiconSizeExceededException extends __BaseException {
|
|
|
181
194
|
Object.setPrototypeOf(this, LexiconSizeExceededException.prototype);
|
|
182
195
|
}
|
|
183
196
|
}
|
|
197
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
198
|
+
static shapeId = "com.amazonaws.polly#ResourceNotFoundException";
|
|
199
|
+
name = "ResourceNotFoundException";
|
|
200
|
+
$fault = "client";
|
|
201
|
+
resourceId;
|
|
202
|
+
resourceType;
|
|
203
|
+
constructor(opts) {
|
|
204
|
+
super({
|
|
205
|
+
name: "ResourceNotFoundException",
|
|
206
|
+
$fault: "client",
|
|
207
|
+
...opts,
|
|
208
|
+
});
|
|
209
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
210
|
+
this.resourceId = opts.resourceId;
|
|
211
|
+
this.resourceType = opts.resourceType;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
export class ThrottlingException extends __BaseException {
|
|
215
|
+
static shapeId = "com.amazonaws.polly#ThrottlingException";
|
|
216
|
+
name = "ThrottlingException";
|
|
217
|
+
$fault = "client";
|
|
218
|
+
throttlingReasons;
|
|
219
|
+
constructor(opts) {
|
|
220
|
+
super({
|
|
221
|
+
name: "ThrottlingException",
|
|
222
|
+
$fault: "client",
|
|
223
|
+
...opts,
|
|
224
|
+
});
|
|
225
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
226
|
+
this.throttlingReasons = opts.throttlingReasons;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
export class ValidationException extends __BaseException {
|
|
230
|
+
static shapeId = "com.amazonaws.polly#ValidationException";
|
|
231
|
+
name = "ValidationException";
|
|
232
|
+
$fault = "client";
|
|
233
|
+
reason;
|
|
234
|
+
fields;
|
|
235
|
+
constructor(opts) {
|
|
236
|
+
super({
|
|
237
|
+
name: "ValidationException",
|
|
238
|
+
$fault: "client",
|
|
239
|
+
...opts,
|
|
240
|
+
});
|
|
241
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
242
|
+
this.reason = opts.reason;
|
|
243
|
+
this.fields = opts.fields;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
184
246
|
export class MarksNotSupportedForFormatException extends __BaseException {
|
|
185
247
|
static shapeId = "com.amazonaws.polly#MarksNotSupportedForFormatException";
|
|
186
248
|
name = "MarksNotSupportedForFormatException";
|
|
@@ -220,6 +282,19 @@ export class MaxLexiconsNumberExceededException extends __BaseException {
|
|
|
220
282
|
Object.setPrototypeOf(this, MaxLexiconsNumberExceededException.prototype);
|
|
221
283
|
}
|
|
222
284
|
}
|
|
285
|
+
export class TooManyTagsException extends __BaseException {
|
|
286
|
+
static shapeId = "com.amazonaws.polly#TooManyTagsException";
|
|
287
|
+
name = "TooManyTagsException";
|
|
288
|
+
$fault = "client";
|
|
289
|
+
constructor(opts) {
|
|
290
|
+
super({
|
|
291
|
+
name: "TooManyTagsException",
|
|
292
|
+
$fault: "client",
|
|
293
|
+
...opts,
|
|
294
|
+
});
|
|
295
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
223
298
|
export class UnsupportedPlsAlphabetException extends __BaseException {
|
|
224
299
|
static shapeId = "com.amazonaws.polly#UnsupportedPlsAlphabetException";
|
|
225
300
|
name = "UnsupportedPlsAlphabetException";
|
|
@@ -263,38 +338,6 @@ export class ServiceQuotaExceededException extends __BaseException {
|
|
|
263
338
|
this.serviceCode = opts.serviceCode;
|
|
264
339
|
}
|
|
265
340
|
}
|
|
266
|
-
export class ThrottlingException extends __BaseException {
|
|
267
|
-
static shapeId = "com.amazonaws.polly#ThrottlingException";
|
|
268
|
-
name = "ThrottlingException";
|
|
269
|
-
$fault = "client";
|
|
270
|
-
throttlingReasons;
|
|
271
|
-
constructor(opts) {
|
|
272
|
-
super({
|
|
273
|
-
name: "ThrottlingException",
|
|
274
|
-
$fault: "client",
|
|
275
|
-
...opts,
|
|
276
|
-
});
|
|
277
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
278
|
-
this.throttlingReasons = opts.throttlingReasons;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
export class ValidationException extends __BaseException {
|
|
282
|
-
static shapeId = "com.amazonaws.polly#ValidationException";
|
|
283
|
-
name = "ValidationException";
|
|
284
|
-
$fault = "client";
|
|
285
|
-
reason;
|
|
286
|
-
fields;
|
|
287
|
-
constructor(opts) {
|
|
288
|
-
super({
|
|
289
|
-
name: "ValidationException",
|
|
290
|
-
$fault: "client",
|
|
291
|
-
...opts,
|
|
292
|
-
});
|
|
293
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
294
|
-
this.reason = opts.reason;
|
|
295
|
-
this.fields = opts.fields;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
341
|
export class SsmlMarksNotSupportedForTextTypeException extends __BaseException {
|
|
299
342
|
static shapeId = "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException";
|
|
300
343
|
name = "SsmlMarksNotSupportedForTextTypeException";
|
|
@@ -38,6 +38,7 @@ const _ISKE = "InvalidS3KeyException";
|
|
|
38
38
|
const _ISRE = "InvalidSampleRateException";
|
|
39
39
|
const _ISTAE = "InvalidSnsTopicArnException";
|
|
40
40
|
const _ITIE = "InvalidTaskIdException";
|
|
41
|
+
const _ITPE = "InvalidTagParameterException";
|
|
41
42
|
const _L = "Lexicon";
|
|
42
43
|
const _LA = "LexiconAttributes";
|
|
43
44
|
const _LAe = "LexiconArn";
|
|
@@ -58,6 +59,9 @@ const _LSEE = "LexiconSizeExceededException";
|
|
|
58
59
|
const _LSST = "ListSpeechSynthesisTasks";
|
|
59
60
|
const _LSSTI = "ListSpeechSynthesisTasksInput";
|
|
60
61
|
const _LSSTO = "ListSpeechSynthesisTasksOutput";
|
|
62
|
+
const _LTFR = "ListTagsForResource";
|
|
63
|
+
const _LTFRI = "ListTagsForResourceInput";
|
|
64
|
+
const _LTFRO = "ListTagsForResourceOutput";
|
|
61
65
|
const _Le = "Lexicons";
|
|
62
66
|
const _MLLEE = "MaxLexemeLengthExceededException";
|
|
63
67
|
const _MLNEE = "MaxLexiconsNumberExceededException";
|
|
@@ -72,7 +76,9 @@ const _OU = "OutputUri";
|
|
|
72
76
|
const _PL = "PutLexicon";
|
|
73
77
|
const _PLI = "PutLexiconInput";
|
|
74
78
|
const _PLO = "PutLexiconOutput";
|
|
79
|
+
const _RA = "ResourceArn";
|
|
75
80
|
const _RC = "RequestCharacters";
|
|
81
|
+
const _RNFE = "ResourceNotFoundException";
|
|
76
82
|
const _S = "Size";
|
|
77
83
|
const _SCE = "StreamClosedEvent";
|
|
78
84
|
const _SE = "SupportedEngines";
|
|
@@ -97,18 +103,27 @@ const _STA = "SnsTopicArn";
|
|
|
97
103
|
const _STNFE = "SynthesisTaskNotFoundException";
|
|
98
104
|
const _STy = "SynthesisTasks";
|
|
99
105
|
const _St = "Status";
|
|
100
|
-
const _T = "
|
|
106
|
+
const _T = "Tags";
|
|
101
107
|
const _TE = "ThrottlingException";
|
|
102
108
|
const _TEe = "TextEvent";
|
|
103
109
|
const _TI = "TaskId";
|
|
110
|
+
const _TK = "TagKeys";
|
|
104
111
|
const _TLEE = "TextLengthExceededException";
|
|
112
|
+
const _TMTE = "TooManyTagsException";
|
|
105
113
|
const _TR = "ThrottlingReason";
|
|
114
|
+
const _TRI = "TagResourceInput";
|
|
106
115
|
const _TRL = "ThrottlingReasonList";
|
|
116
|
+
const _TRO = "TagResourceOutput";
|
|
117
|
+
const _TRa = "TagResource";
|
|
107
118
|
const _TS = "TaskStatus";
|
|
108
119
|
const _TSR = "TaskStatusReason";
|
|
109
120
|
const _TT = "TextType";
|
|
121
|
+
const _Te = "Text";
|
|
110
122
|
const _UPAE = "UnsupportedPlsAlphabetException";
|
|
111
123
|
const _UPLE = "UnsupportedPlsLanguageException";
|
|
124
|
+
const _UR = "UntagResource";
|
|
125
|
+
const _URI = "UntagResourceInput";
|
|
126
|
+
const _URO = "UntagResourceOutput";
|
|
112
127
|
const _V = "Voices";
|
|
113
128
|
const _VE = "ValidationException";
|
|
114
129
|
const _VEF = "ValidationExceptionField";
|
|
@@ -116,6 +131,7 @@ const _VEFL = "ValidationExceptionFieldList";
|
|
|
116
131
|
const _VI = "VoiceId";
|
|
117
132
|
const _VL = "VoiceList";
|
|
118
133
|
const _Vo = "Voice";
|
|
134
|
+
const _a = "arn";
|
|
119
135
|
const _aQE = "awsQueryError";
|
|
120
136
|
const _c = "client";
|
|
121
137
|
const _e = "error";
|
|
@@ -129,6 +145,8 @@ const _m = "message";
|
|
|
129
145
|
const _n = "name";
|
|
130
146
|
const _qC = "quotaCode";
|
|
131
147
|
const _r = "reason";
|
|
148
|
+
const _rI = "resourceId";
|
|
149
|
+
const _rT = "resourceType";
|
|
132
150
|
const _re = "resource";
|
|
133
151
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.polly";
|
|
134
152
|
const _sC = "serviceCode";
|
|
@@ -144,7 +162,7 @@ const _xaS = "x-amzn-SampleRate";
|
|
|
144
162
|
const _xaV = "x-amzn-VoiceId";
|
|
145
163
|
const n0 = "com.amazonaws.polly";
|
|
146
164
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
147
|
-
import { EngineNotSupportedException, InvalidLexiconException, InvalidNextTokenException, InvalidS3BucketException, InvalidS3KeyException, InvalidSampleRateException, InvalidSnsTopicArnException, InvalidSsmlException, InvalidTaskIdException, LanguageNotSupportedException, LexiconNotFoundException, LexiconSizeExceededException, MarksNotSupportedForFormatException, MaxLexemeLengthExceededException, MaxLexiconsNumberExceededException, ServiceFailureException, ServiceQuotaExceededException, SsmlMarksNotSupportedForTextTypeException, SynthesisTaskNotFoundException, TextLengthExceededException, ThrottlingException, UnsupportedPlsAlphabetException, UnsupportedPlsLanguageException, ValidationException, } from "../models/errors";
|
|
165
|
+
import { EngineNotSupportedException, InvalidLexiconException, InvalidNextTokenException, InvalidS3BucketException, InvalidS3KeyException, InvalidSampleRateException, InvalidSnsTopicArnException, InvalidSsmlException, InvalidTagParameterException, InvalidTaskIdException, LanguageNotSupportedException, LexiconNotFoundException, LexiconSizeExceededException, MarksNotSupportedForFormatException, MaxLexemeLengthExceededException, MaxLexiconsNumberExceededException, ResourceNotFoundException, ServiceFailureException, ServiceQuotaExceededException, SsmlMarksNotSupportedForTextTypeException, SynthesisTaskNotFoundException, TextLengthExceededException, ThrottlingException, TooManyTagsException, UnsupportedPlsAlphabetException, UnsupportedPlsLanguageException, ValidationException, } from "../models/errors";
|
|
148
166
|
import { PollyServiceException } from "../models/PollyServiceException";
|
|
149
167
|
const _s_registry = new TypeRegistry(_s);
|
|
150
168
|
export var PollyServiceException$ = [-3, _s, "PollyServiceException", 0, [], []];
|
|
@@ -198,6 +216,12 @@ export var InvalidSsmlException$ = [-3, n0, _ISE,
|
|
|
198
216
|
[0]
|
|
199
217
|
];
|
|
200
218
|
n0_registry.registerError(InvalidSsmlException$, InvalidSsmlException);
|
|
219
|
+
export var InvalidTagParameterException$ = [-3, n0, _ITPE,
|
|
220
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
221
|
+
[_m],
|
|
222
|
+
[0]
|
|
223
|
+
];
|
|
224
|
+
n0_registry.registerError(InvalidTagParameterException$, InvalidTagParameterException);
|
|
201
225
|
export var InvalidTaskIdException$ = [-3, n0, _ITIE,
|
|
202
226
|
{ [_e]: _c, [_hE]: 400 },
|
|
203
227
|
[_m],
|
|
@@ -240,6 +264,12 @@ export var MaxLexiconsNumberExceededException$ = [-3, n0, _MLNEE,
|
|
|
240
264
|
[0]
|
|
241
265
|
];
|
|
242
266
|
n0_registry.registerError(MaxLexiconsNumberExceededException$, MaxLexiconsNumberExceededException);
|
|
267
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
268
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
269
|
+
[_m, _rI, _rT],
|
|
270
|
+
[0, 0, 0], 3
|
|
271
|
+
];
|
|
272
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
243
273
|
export var ServiceFailureException$ = [-3, n0, _SFE,
|
|
244
274
|
{ [_e]: _se, [_hE]: 500 },
|
|
245
275
|
[_m],
|
|
@@ -276,6 +306,12 @@ export var ThrottlingException$ = [-3, n0, _TE,
|
|
|
276
306
|
[0, () => ThrottlingReasonList]
|
|
277
307
|
];
|
|
278
308
|
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
309
|
+
export var TooManyTagsException$ = [-3, n0, _TMTE,
|
|
310
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
311
|
+
[_m],
|
|
312
|
+
[0]
|
|
313
|
+
];
|
|
314
|
+
n0_registry.registerError(TooManyTagsException$, TooManyTagsException);
|
|
279
315
|
export var UnsupportedPlsAlphabetException$ = [-3, n0, _UPAE,
|
|
280
316
|
{ [_e]: _c, [_hE]: 400 },
|
|
281
317
|
[_m],
|
|
@@ -390,10 +426,20 @@ export var ListSpeechSynthesisTasksOutput$ = [3, n0, _LSSTO,
|
|
|
390
426
|
[_NT, _STy],
|
|
391
427
|
[0, () => SynthesisTasks]
|
|
392
428
|
];
|
|
429
|
+
export var ListTagsForResourceInput$ = [3, n0, _LTFRI,
|
|
430
|
+
0,
|
|
431
|
+
[_RA],
|
|
432
|
+
[[0, { [_hQ]: _a }]], 1
|
|
433
|
+
];
|
|
434
|
+
export var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
|
|
435
|
+
0,
|
|
436
|
+
[_T],
|
|
437
|
+
[128 | 0]
|
|
438
|
+
];
|
|
393
439
|
export var PutLexiconInput$ = [3, n0, _PLI,
|
|
394
440
|
0,
|
|
395
|
-
[_N, _C],
|
|
396
|
-
[[0, 1], [() => LexiconContent, 0]], 2
|
|
441
|
+
[_N, _C, _T],
|
|
442
|
+
[[0, 1], [() => LexiconContent, 0], 128 | 0], 2
|
|
397
443
|
];
|
|
398
444
|
export var PutLexiconOutput$ = [3, n0, _PLO,
|
|
399
445
|
0,
|
|
@@ -412,7 +458,7 @@ export var StartSpeechSynthesisStreamOutput$ = [3, n0, _SSSSO,
|
|
|
412
458
|
];
|
|
413
459
|
export var StartSpeechSynthesisTaskInput$ = [3, n0, _SSSTI,
|
|
414
460
|
0,
|
|
415
|
-
[_OF, _OSBN,
|
|
461
|
+
[_OF, _OSBN, _Te, _VI, _E, _LCa, _LN, _OSKP, _SR, _STA, _SMT, _TT],
|
|
416
462
|
[0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0, 64 | 0, 0], 4
|
|
417
463
|
];
|
|
418
464
|
export var StartSpeechSynthesisTaskOutput$ = [3, n0, _SSSTO,
|
|
@@ -432,7 +478,7 @@ export var SynthesisTask$ = [3, n0, _ST,
|
|
|
432
478
|
];
|
|
433
479
|
export var SynthesizeSpeechInput$ = [3, n0, _SSI,
|
|
434
480
|
0,
|
|
435
|
-
[_OF,
|
|
481
|
+
[_OF, _Te, _VI, _E, _LCa, _LN, _SR, _SMT, _TT],
|
|
436
482
|
[0, 0, 0, 0, 0, 64 | 0, 0, 64 | 0, 0], 3
|
|
437
483
|
];
|
|
438
484
|
export var SynthesizeSpeechOutput$ = [3, n0, _SSO,
|
|
@@ -440,9 +486,19 @@ export var SynthesizeSpeechOutput$ = [3, n0, _SSO,
|
|
|
440
486
|
[_AS, _CTo, _RC],
|
|
441
487
|
[[() => AudioStream, 16], [0, { [_hH]: _CT_ }], [1, { [_hH]: _xaR }]]
|
|
442
488
|
];
|
|
489
|
+
export var TagResourceInput$ = [3, n0, _TRI,
|
|
490
|
+
0,
|
|
491
|
+
[_RA, _T],
|
|
492
|
+
[0, 128 | 0], 2
|
|
493
|
+
];
|
|
494
|
+
export var TagResourceOutput$ = [3, n0, _TRO,
|
|
495
|
+
0,
|
|
496
|
+
[],
|
|
497
|
+
[]
|
|
498
|
+
];
|
|
443
499
|
export var TextEvent$ = [3, n0, _TEe,
|
|
444
500
|
0,
|
|
445
|
-
[
|
|
501
|
+
[_Te, _TT, _FSC],
|
|
446
502
|
[0, 0, () => FlushStreamConfiguration$], 1
|
|
447
503
|
];
|
|
448
504
|
export var ThrottlingReason$ = [3, n0, _TR,
|
|
@@ -450,6 +506,16 @@ export var ThrottlingReason$ = [3, n0, _TR,
|
|
|
450
506
|
[_r, _re],
|
|
451
507
|
[0, 0]
|
|
452
508
|
];
|
|
509
|
+
export var UntagResourceInput$ = [3, n0, _URI,
|
|
510
|
+
0,
|
|
511
|
+
[_RA, _TK],
|
|
512
|
+
[0, 64 | 0], 2
|
|
513
|
+
];
|
|
514
|
+
export var UntagResourceOutput$ = [3, n0, _URO,
|
|
515
|
+
0,
|
|
516
|
+
[],
|
|
517
|
+
[]
|
|
518
|
+
];
|
|
453
519
|
export var ValidationExceptionField$ = [3, n0, _VEF,
|
|
454
520
|
0,
|
|
455
521
|
[_n, _m],
|
|
@@ -470,6 +536,7 @@ var SpeechMarkTypeList = 64 | 0;
|
|
|
470
536
|
var SynthesisTasks = [1, n0, _STy,
|
|
471
537
|
0, () => SynthesisTask$
|
|
472
538
|
];
|
|
539
|
+
var TagKeyList = 64 | 0;
|
|
473
540
|
var ThrottlingReasonList = [1, n0, _TRL,
|
|
474
541
|
0, () => ThrottlingReason$
|
|
475
542
|
];
|
|
@@ -479,6 +546,7 @@ var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
|
479
546
|
var VoiceList = [1, n0, _VL,
|
|
480
547
|
0, () => Voice$
|
|
481
548
|
];
|
|
549
|
+
var TagMap = 128 | 0;
|
|
482
550
|
export var StartSpeechSynthesisStreamActionStream$ = [4, n0, _SSSSAS,
|
|
483
551
|
{ [_st]: 1 },
|
|
484
552
|
[_TEe, _CSE],
|
|
@@ -507,6 +575,9 @@ export var ListLexicons$ = [9, n0, _LL,
|
|
|
507
575
|
export var ListSpeechSynthesisTasks$ = [9, n0, _LSST,
|
|
508
576
|
{ [_h]: ["GET", "/v1/synthesisTasks", 200] }, () => ListSpeechSynthesisTasksInput$, () => ListSpeechSynthesisTasksOutput$
|
|
509
577
|
];
|
|
578
|
+
export var ListTagsForResource$ = [9, n0, _LTFR,
|
|
579
|
+
{ [_h]: ["GET", "/v1/listTagsForResource", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
|
|
580
|
+
];
|
|
510
581
|
export var PutLexicon$ = [9, n0, _PL,
|
|
511
582
|
{ [_h]: ["PUT", "/v1/lexicons/{Name}", 200] }, () => PutLexiconInput$, () => PutLexiconOutput$
|
|
512
583
|
];
|
|
@@ -519,3 +590,9 @@ export var StartSpeechSynthesisTask$ = [9, n0, _SSST,
|
|
|
519
590
|
export var SynthesizeSpeech$ = [9, n0, _SS,
|
|
520
591
|
{ [_h]: ["POST", "/v1/speech", 200] }, () => SynthesizeSpeechInput$, () => SynthesizeSpeechOutput$
|
|
521
592
|
];
|
|
593
|
+
export var TagResource$ = [9, n0, _TRa,
|
|
594
|
+
{ [_h]: ["POST", "/v1/tagResource", 200] }, () => TagResourceInput$, () => TagResourceOutput$
|
|
595
|
+
];
|
|
596
|
+
export var UntagResource$ = [9, n0, _UR,
|
|
597
|
+
{ [_h]: ["POST", "/v1/untagResource", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$
|
|
598
|
+
];
|
package/dist-types/Polly.d.ts
CHANGED
|
@@ -5,10 +5,13 @@ import { type GetLexiconCommandInput, type GetLexiconCommandOutput } from "./com
|
|
|
5
5
|
import { type GetSpeechSynthesisTaskCommandInput, type GetSpeechSynthesisTaskCommandOutput } from "./commands/GetSpeechSynthesisTaskCommand";
|
|
6
6
|
import { type ListLexiconsCommandInput, type ListLexiconsCommandOutput } from "./commands/ListLexiconsCommand";
|
|
7
7
|
import { type ListSpeechSynthesisTasksCommandInput, type ListSpeechSynthesisTasksCommandOutput } from "./commands/ListSpeechSynthesisTasksCommand";
|
|
8
|
+
import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
8
9
|
import { type PutLexiconCommandInput, type PutLexiconCommandOutput } from "./commands/PutLexiconCommand";
|
|
9
10
|
import { type StartSpeechSynthesisStreamCommandInput, type StartSpeechSynthesisStreamCommandOutput } from "./commands/StartSpeechSynthesisStreamCommand";
|
|
10
11
|
import { type StartSpeechSynthesisTaskCommandInput, type StartSpeechSynthesisTaskCommandOutput } from "./commands/StartSpeechSynthesisTaskCommand";
|
|
11
12
|
import { type SynthesizeSpeechCommandInput, type SynthesizeSpeechCommandOutput } from "./commands/SynthesizeSpeechCommand";
|
|
13
|
+
import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
14
|
+
import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
12
15
|
import { PollyClient } from "./PollyClient";
|
|
13
16
|
/**
|
|
14
17
|
* @public
|
|
@@ -56,6 +59,12 @@ export interface Polly {
|
|
|
56
59
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options?: PollyRequestOptions): Promise<ListSpeechSynthesisTasksCommandOutput>;
|
|
57
60
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
|
|
58
61
|
listSpeechSynthesisTasks(args: ListSpeechSynthesisTasksCommandInput, options: PollyRequestOptions, cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @see {@link ListTagsForResourceCommand}
|
|
64
|
+
*/
|
|
65
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: PollyRequestOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
66
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
67
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: PollyRequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
59
68
|
/**
|
|
60
69
|
* @see {@link PutLexiconCommand}
|
|
61
70
|
*/
|
|
@@ -80,6 +89,18 @@ export interface Polly {
|
|
|
80
89
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, options?: PollyRequestOptions): Promise<SynthesizeSpeechCommandOutput>;
|
|
81
90
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
|
|
82
91
|
synthesizeSpeech(args: SynthesizeSpeechCommandInput, options: PollyRequestOptions, cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void): void;
|
|
92
|
+
/**
|
|
93
|
+
* @see {@link TagResourceCommand}
|
|
94
|
+
*/
|
|
95
|
+
tagResource(args: TagResourceCommandInput, options?: PollyRequestOptions): Promise<TagResourceCommandOutput>;
|
|
96
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
97
|
+
tagResource(args: TagResourceCommandInput, options: PollyRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
98
|
+
/**
|
|
99
|
+
* @see {@link UntagResourceCommand}
|
|
100
|
+
*/
|
|
101
|
+
untagResource(args: UntagResourceCommandInput, options?: PollyRequestOptions): Promise<UntagResourceCommandOutput>;
|
|
102
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
103
|
+
untagResource(args: UntagResourceCommandInput, options: PollyRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
83
104
|
/**
|
|
84
105
|
* @see {@link ListSpeechSynthesisTasksCommand}
|
|
85
106
|
* @param args - command input.
|
|
@@ -15,21 +15,24 @@ import type { GetLexiconCommandInput, GetLexiconCommandOutput } from "./commands
|
|
|
15
15
|
import type { GetSpeechSynthesisTaskCommandInput, GetSpeechSynthesisTaskCommandOutput } from "./commands/GetSpeechSynthesisTaskCommand";
|
|
16
16
|
import type { ListLexiconsCommandInput, ListLexiconsCommandOutput } from "./commands/ListLexiconsCommand";
|
|
17
17
|
import type { ListSpeechSynthesisTasksCommandInput, ListSpeechSynthesisTasksCommandOutput } from "./commands/ListSpeechSynthesisTasksCommand";
|
|
18
|
+
import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
18
19
|
import type { PutLexiconCommandInput, PutLexiconCommandOutput } from "./commands/PutLexiconCommand";
|
|
19
20
|
import type { StartSpeechSynthesisStreamCommandInput, StartSpeechSynthesisStreamCommandOutput } from "./commands/StartSpeechSynthesisStreamCommand";
|
|
20
21
|
import type { StartSpeechSynthesisTaskCommandInput, StartSpeechSynthesisTaskCommandOutput } from "./commands/StartSpeechSynthesisTaskCommand";
|
|
21
22
|
import type { SynthesizeSpeechCommandInput, SynthesizeSpeechCommandOutput } from "./commands/SynthesizeSpeechCommand";
|
|
23
|
+
import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
24
|
+
import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
22
25
|
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
23
26
|
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
24
27
|
export { __Client };
|
|
25
28
|
/**
|
|
26
29
|
* @public
|
|
27
30
|
*/
|
|
28
|
-
export type ServiceInputTypes = DeleteLexiconCommandInput | DescribeVoicesCommandInput | GetLexiconCommandInput | GetSpeechSynthesisTaskCommandInput | ListLexiconsCommandInput | ListSpeechSynthesisTasksCommandInput | PutLexiconCommandInput | StartSpeechSynthesisStreamCommandInput | StartSpeechSynthesisTaskCommandInput | SynthesizeSpeechCommandInput;
|
|
31
|
+
export type ServiceInputTypes = DeleteLexiconCommandInput | DescribeVoicesCommandInput | GetLexiconCommandInput | GetSpeechSynthesisTaskCommandInput | ListLexiconsCommandInput | ListSpeechSynthesisTasksCommandInput | ListTagsForResourceCommandInput | PutLexiconCommandInput | StartSpeechSynthesisStreamCommandInput | StartSpeechSynthesisTaskCommandInput | SynthesizeSpeechCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
29
32
|
/**
|
|
30
33
|
* @public
|
|
31
34
|
*/
|
|
32
|
-
export type ServiceOutputTypes = DeleteLexiconCommandOutput | DescribeVoicesCommandOutput | GetLexiconCommandOutput | GetSpeechSynthesisTaskCommandOutput | ListLexiconsCommandOutput | ListSpeechSynthesisTasksCommandOutput | PutLexiconCommandOutput | StartSpeechSynthesisStreamCommandOutput | StartSpeechSynthesisTaskCommandOutput | SynthesizeSpeechCommandOutput;
|
|
35
|
+
export type ServiceOutputTypes = DeleteLexiconCommandOutput | DescribeVoicesCommandOutput | GetLexiconCommandOutput | GetSpeechSynthesisTaskCommandOutput | ListLexiconsCommandOutput | ListSpeechSynthesisTasksCommandOutput | ListTagsForResourceCommandOutput | PutLexiconCommandOutput | StartSpeechSynthesisStreamCommandOutput | StartSpeechSynthesisTaskCommandOutput | SynthesizeSpeechCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
33
36
|
/**
|
|
34
37
|
* @public
|
|
35
38
|
*/
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListTagsForResourceInput, ListTagsForResourceOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListTagsForResourceCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListTagsForResourceCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListTagsForResourceCommand_base: {
|
|
22
|
+
new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").PollyClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").PollyClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists the tags for an Amazon Polly resource.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { PollyClient, ListTagsForResourceCommand } from "@aws-sdk/client-polly"; // ES Modules import
|
|
32
|
+
* // const { PollyClient, ListTagsForResourceCommand } = require("@aws-sdk/client-polly"); // CommonJS import
|
|
33
|
+
* // import type { PollyClientConfig } from "@aws-sdk/client-polly";
|
|
34
|
+
* const config = {}; // type is PollyClientConfig
|
|
35
|
+
* const client = new PollyClient(config);
|
|
36
|
+
* const input = { // ListTagsForResourceInput
|
|
37
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // ListTagsForResourceOutput
|
|
42
|
+
* // Tags: { // TagMap
|
|
43
|
+
* // "<keys>": "STRING_VALUE",
|
|
44
|
+
* // },
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
|
|
50
|
+
* @returns {@link ListTagsForResourceCommandOutput}
|
|
51
|
+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link PollyClientResolvedConfig | config} for PollyClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link InvalidTagParameterException} (client fault)
|
|
56
|
+
* <p>The resource ARN or a tag in the request isn't valid. Specify the ARN
|
|
57
|
+
* of a supported resource in the Amazon Web Services account and Region of the request.
|
|
58
|
+
* Tag keys can have a maximum length of 128 characters, and tag values can
|
|
59
|
+
* have a maximum length of 256 characters. Correct the ARN or the tags, and
|
|
60
|
+
* then try again.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
63
|
+
* <p>Amazon Polly can't find the specified resource. Verify that the resource
|
|
64
|
+
* exists in the Amazon Web Services account and Region of the request and that its ARN is
|
|
65
|
+
* spelled correctly, and then try again.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ServiceFailureException} (server fault)
|
|
68
|
+
* <p>An unknown condition has caused a service failure.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
71
|
+
* <p>The request was denied because of request throttling.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ValidationException} (client fault)
|
|
74
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link PollyServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
78
|
+
*
|
|
79
|
+
*
|
|
80
|
+
* @example To list the tags on a lexicon
|
|
81
|
+
* ```javascript
|
|
82
|
+
* // The following example lists the tags associated with a pronunciation lexicon.
|
|
83
|
+
* const input = {
|
|
84
|
+
* ResourceArn: "arn:aws:polly:us-east-1:111122223333:lexicon/example"
|
|
85
|
+
* };
|
|
86
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
87
|
+
* const response = await client.send(command);
|
|
88
|
+
* /* response is
|
|
89
|
+
* {
|
|
90
|
+
* Tags: {
|
|
91
|
+
* Environment: "Production",
|
|
92
|
+
* Project: "Narration"
|
|
93
|
+
* }
|
|
94
|
+
* }
|
|
95
|
+
* *\/
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
|
|
101
|
+
/** @internal type navigation helper, not in runtime. */
|
|
102
|
+
protected static __types: {
|
|
103
|
+
api: {
|
|
104
|
+
input: ListTagsForResourceInput;
|
|
105
|
+
output: ListTagsForResourceOutput;
|
|
106
|
+
};
|
|
107
|
+
sdk: {
|
|
108
|
+
input: ListTagsForResourceCommandInput;
|
|
109
|
+
output: ListTagsForResourceCommandOutput;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -29,6 +29,11 @@ declare const PutLexiconCommand_base: {
|
|
|
29
29
|
* overwritten by the new lexicon. Lexicon operations have eventual
|
|
30
30
|
* consistency, therefore, it might take some time before the lexicon is
|
|
31
31
|
* available to the SynthesizeSpeech operation.</p>
|
|
32
|
+
* <p>Overwriting a lexicon keeps its existing tags. You can specify tags
|
|
33
|
+
* only when you create a lexicon. If you specify tags for a lexicon that
|
|
34
|
+
* already exists, the request fails with a <code>ValidationException</code>.
|
|
35
|
+
* To change the tags of an existing lexicon, use <code>TagResource</code>
|
|
36
|
+
* and <code>UntagResource</code>.</p>
|
|
32
37
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html">Managing Lexicons</a>.</p>
|
|
33
38
|
* @example
|
|
34
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -41,6 +46,9 @@ declare const PutLexiconCommand_base: {
|
|
|
41
46
|
* const input = { // PutLexiconInput
|
|
42
47
|
* Name: "STRING_VALUE", // required
|
|
43
48
|
* Content: "STRING_VALUE", // required
|
|
49
|
+
* Tags: { // TagMap
|
|
50
|
+
* "<keys>": "STRING_VALUE",
|
|
51
|
+
* },
|
|
44
52
|
* };
|
|
45
53
|
* const command = new PutLexiconCommand(input);
|
|
46
54
|
* const response = await client.send(command);
|
|
@@ -58,6 +66,13 @@ declare const PutLexiconCommand_base: {
|
|
|
58
66
|
* <p>Amazon Polly can't find the specified lexicon. Verify that the lexicon's
|
|
59
67
|
* name is spelled correctly, and then try again.</p>
|
|
60
68
|
*
|
|
69
|
+
* @throws {@link InvalidTagParameterException} (client fault)
|
|
70
|
+
* <p>The resource ARN or a tag in the request isn't valid. Specify the ARN
|
|
71
|
+
* of a supported resource in the Amazon Web Services account and Region of the request.
|
|
72
|
+
* Tag keys can have a maximum length of 128 characters, and tag values can
|
|
73
|
+
* have a maximum length of 256 characters. Correct the ARN or the tags, and
|
|
74
|
+
* then try again.</p>
|
|
75
|
+
*
|
|
61
76
|
* @throws {@link LexiconSizeExceededException} (client fault)
|
|
62
77
|
* <p>The maximum size of the specified lexicon would be exceeded by this
|
|
63
78
|
* operation.</p>
|
|
@@ -73,6 +88,11 @@ declare const PutLexiconCommand_base: {
|
|
|
73
88
|
* @throws {@link ServiceFailureException} (server fault)
|
|
74
89
|
* <p>An unknown condition has caused a service failure.</p>
|
|
75
90
|
*
|
|
91
|
+
* @throws {@link TooManyTagsException} (client fault)
|
|
92
|
+
* <p>The list of tags on the resource is over the limit. The maximum number
|
|
93
|
+
* of tags that can be applied to a resource is 50. Remove unused tags or
|
|
94
|
+
* reduce the number of tags in the request, and then try again.</p>
|
|
95
|
+
*
|
|
76
96
|
* @throws {@link UnsupportedPlsAlphabetException} (client fault)
|
|
77
97
|
* <p>The alphabet specified by the lexicon is not a supported alphabet.
|
|
78
98
|
* Valid values are <code>ipa</code>, <code>x-sampa</code>,
|
|
@@ -85,6 +105,9 @@ declare const PutLexiconCommand_base: {
|
|
|
85
105
|
* <p>The language specified in the lexicon is unsupported. For a list of
|
|
86
106
|
* supported languages, see <a href="https://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html">Lexicon Attributes</a>.</p>
|
|
87
107
|
*
|
|
108
|
+
* @throws {@link ValidationException} (client fault)
|
|
109
|
+
* <p>The input fails to satisfy the constraints specified by the service.</p>
|
|
110
|
+
*
|
|
88
111
|
* @throws {@link PollyServiceException}
|
|
89
112
|
* <p>Base exception class for all service exceptions from Polly service.</p>
|
|
90
113
|
*
|