@aws-sdk/client-polly 3.1161.0 → 3.1163.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.
Files changed (32) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +197 -45
  3. package/dist-es/Polly.js +6 -0
  4. package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
  5. package/dist-es/commands/TagResourceCommand.js +4 -0
  6. package/dist-es/commands/UntagResourceCommand.js +4 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/enums.js +9 -6
  9. package/dist-es/models/errors.js +75 -32
  10. package/dist-es/schemas/schemas_0.js +84 -7
  11. package/dist-types/Polly.d.ts +21 -0
  12. package/dist-types/PollyClient.d.ts +5 -2
  13. package/dist-types/commands/ListTagsForResourceCommand.d.ts +112 -0
  14. package/dist-types/commands/PutLexiconCommand.d.ts +23 -0
  15. package/dist-types/commands/TagResourceCommand.d.ts +118 -0
  16. package/dist-types/commands/UntagResourceCommand.d.ts +109 -0
  17. package/dist-types/commands/index.d.ts +3 -0
  18. package/dist-types/models/enums.d.ts +24 -13
  19. package/dist-types/models/errors.d.ts +99 -42
  20. package/dist-types/models/models_0.d.ts +109 -33
  21. package/dist-types/schemas/schemas_0.d.ts +12 -0
  22. package/dist-types/ts3.4/Polly.d.ts +48 -0
  23. package/dist-types/ts3.4/PollyClient.d.ts +17 -2
  24. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  25. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  26. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  28. package/dist-types/ts3.4/models/enums.d.ts +12 -8
  29. package/dist-types/ts3.4/models/errors.d.ts +36 -16
  30. package/dist-types/ts3.4/models/models_0.d.ts +25 -8
  31. package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
  32. package/package.json +3 -3
package/README.md CHANGED
@@ -229,6 +229,13 @@ ListSpeechSynthesisTasks
229
229
  </details>
230
230
  <details>
231
231
  <summary>
232
+ ListTagsForResource
233
+ </summary>
234
+
235
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/polly/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-polly/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-polly/Interface/ListTagsForResourceCommandOutput/)
236
+ </details>
237
+ <details>
238
+ <summary>
232
239
  PutLexicon
233
240
  </summary>
234
241
 
@@ -255,3 +262,17 @@ SynthesizeSpeech
255
262
 
256
263
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/polly/command/SynthesizeSpeechCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-polly/Interface/SynthesizeSpeechCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-polly/Interface/SynthesizeSpeechCommandOutput/)
257
264
  </details>
265
+ <details>
266
+ <summary>
267
+ TagResource
268
+ </summary>
269
+
270
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/polly/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-polly/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-polly/Interface/TagResourceCommandOutput/)
271
+ </details>
272
+ <details>
273
+ <summary>
274
+ UntagResource
275
+ </summary>
276
+
277
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/polly/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-polly/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-polly/Interface/UntagResourceCommandOutput/)
278
+ </details>
package/dist-cjs/index.js CHANGED
@@ -72,7 +72,7 @@ const commonParams = {
72
72
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
73
73
  };
74
74
 
75
- var version = "3.1160.0";
75
+ var version = "3.1162.0";
76
76
  var packageInfo = {
77
77
  version: version};
78
78
 
@@ -298,6 +298,19 @@ class InvalidSsmlException extends PollyServiceException {
298
298
  Object.setPrototypeOf(this, InvalidSsmlException.prototype);
299
299
  }
300
300
  }
301
+ class InvalidTagParameterException extends PollyServiceException {
302
+ static shapeId = "com.amazonaws.polly#InvalidTagParameterException";
303
+ name = "InvalidTagParameterException";
304
+ $fault = "client";
305
+ constructor(opts) {
306
+ super({
307
+ name: "InvalidTagParameterException",
308
+ $fault: "client",
309
+ ...opts,
310
+ });
311
+ Object.setPrototypeOf(this, InvalidTagParameterException.prototype);
312
+ }
313
+ }
301
314
  class LanguageNotSupportedException extends PollyServiceException {
302
315
  static shapeId = "com.amazonaws.polly#LanguageNotSupportedException";
303
316
  name = "LanguageNotSupportedException";
@@ -324,6 +337,55 @@ class LexiconSizeExceededException extends PollyServiceException {
324
337
  Object.setPrototypeOf(this, LexiconSizeExceededException.prototype);
325
338
  }
326
339
  }
340
+ class ResourceNotFoundException extends PollyServiceException {
341
+ static shapeId = "com.amazonaws.polly#ResourceNotFoundException";
342
+ name = "ResourceNotFoundException";
343
+ $fault = "client";
344
+ resourceId;
345
+ resourceType;
346
+ constructor(opts) {
347
+ super({
348
+ name: "ResourceNotFoundException",
349
+ $fault: "client",
350
+ ...opts,
351
+ });
352
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
353
+ this.resourceId = opts.resourceId;
354
+ this.resourceType = opts.resourceType;
355
+ }
356
+ }
357
+ class ThrottlingException extends PollyServiceException {
358
+ static shapeId = "com.amazonaws.polly#ThrottlingException";
359
+ name = "ThrottlingException";
360
+ $fault = "client";
361
+ throttlingReasons;
362
+ constructor(opts) {
363
+ super({
364
+ name: "ThrottlingException",
365
+ $fault: "client",
366
+ ...opts,
367
+ });
368
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
369
+ this.throttlingReasons = opts.throttlingReasons;
370
+ }
371
+ }
372
+ class ValidationException extends PollyServiceException {
373
+ static shapeId = "com.amazonaws.polly#ValidationException";
374
+ name = "ValidationException";
375
+ $fault = "client";
376
+ reason;
377
+ fields;
378
+ constructor(opts) {
379
+ super({
380
+ name: "ValidationException",
381
+ $fault: "client",
382
+ ...opts,
383
+ });
384
+ Object.setPrototypeOf(this, ValidationException.prototype);
385
+ this.reason = opts.reason;
386
+ this.fields = opts.fields;
387
+ }
388
+ }
327
389
  class MarksNotSupportedForFormatException extends PollyServiceException {
328
390
  static shapeId = "com.amazonaws.polly#MarksNotSupportedForFormatException";
329
391
  name = "MarksNotSupportedForFormatException";
@@ -363,6 +425,19 @@ class MaxLexiconsNumberExceededException extends PollyServiceException {
363
425
  Object.setPrototypeOf(this, MaxLexiconsNumberExceededException.prototype);
364
426
  }
365
427
  }
428
+ class TooManyTagsException extends PollyServiceException {
429
+ static shapeId = "com.amazonaws.polly#TooManyTagsException";
430
+ name = "TooManyTagsException";
431
+ $fault = "client";
432
+ constructor(opts) {
433
+ super({
434
+ name: "TooManyTagsException",
435
+ $fault: "client",
436
+ ...opts,
437
+ });
438
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
439
+ }
440
+ }
366
441
  class UnsupportedPlsAlphabetException extends PollyServiceException {
367
442
  static shapeId = "com.amazonaws.polly#UnsupportedPlsAlphabetException";
368
443
  name = "UnsupportedPlsAlphabetException";
@@ -406,38 +481,6 @@ class ServiceQuotaExceededException extends PollyServiceException {
406
481
  this.serviceCode = opts.serviceCode;
407
482
  }
408
483
  }
409
- class ThrottlingException extends PollyServiceException {
410
- static shapeId = "com.amazonaws.polly#ThrottlingException";
411
- name = "ThrottlingException";
412
- $fault = "client";
413
- throttlingReasons;
414
- constructor(opts) {
415
- super({
416
- name: "ThrottlingException",
417
- $fault: "client",
418
- ...opts,
419
- });
420
- Object.setPrototypeOf(this, ThrottlingException.prototype);
421
- this.throttlingReasons = opts.throttlingReasons;
422
- }
423
- }
424
- class ValidationException extends PollyServiceException {
425
- static shapeId = "com.amazonaws.polly#ValidationException";
426
- name = "ValidationException";
427
- $fault = "client";
428
- reason;
429
- fields;
430
- constructor(opts) {
431
- super({
432
- name: "ValidationException",
433
- $fault: "client",
434
- ...opts,
435
- });
436
- Object.setPrototypeOf(this, ValidationException.prototype);
437
- this.reason = opts.reason;
438
- this.fields = opts.fields;
439
- }
440
- }
441
484
  class SsmlMarksNotSupportedForTextTypeException extends PollyServiceException {
442
485
  static shapeId = "com.amazonaws.polly#SsmlMarksNotSupportedForTextTypeException";
443
486
  name = "SsmlMarksNotSupportedForTextTypeException";
@@ -505,6 +548,7 @@ const _ISKE = "InvalidS3KeyException";
505
548
  const _ISRE = "InvalidSampleRateException";
506
549
  const _ISTAE = "InvalidSnsTopicArnException";
507
550
  const _ITIE = "InvalidTaskIdException";
551
+ const _ITPE = "InvalidTagParameterException";
508
552
  const _L = "Lexicon";
509
553
  const _LA = "LexiconAttributes";
510
554
  const _LAe = "LexiconArn";
@@ -525,6 +569,9 @@ const _LSEE = "LexiconSizeExceededException";
525
569
  const _LSST = "ListSpeechSynthesisTasks";
526
570
  const _LSSTI = "ListSpeechSynthesisTasksInput";
527
571
  const _LSSTO = "ListSpeechSynthesisTasksOutput";
572
+ const _LTFR = "ListTagsForResource";
573
+ const _LTFRI = "ListTagsForResourceInput";
574
+ const _LTFRO = "ListTagsForResourceOutput";
528
575
  const _Le = "Lexicons";
529
576
  const _MLLEE = "MaxLexemeLengthExceededException";
530
577
  const _MLNEE = "MaxLexiconsNumberExceededException";
@@ -539,7 +586,9 @@ const _OU = "OutputUri";
539
586
  const _PL = "PutLexicon";
540
587
  const _PLI = "PutLexiconInput";
541
588
  const _PLO = "PutLexiconOutput";
589
+ const _RA = "ResourceArn";
542
590
  const _RC = "RequestCharacters";
591
+ const _RNFE = "ResourceNotFoundException";
543
592
  const _S = "Size";
544
593
  const _SCE = "StreamClosedEvent";
545
594
  const _SE = "SupportedEngines";
@@ -564,18 +613,27 @@ const _STA = "SnsTopicArn";
564
613
  const _STNFE = "SynthesisTaskNotFoundException";
565
614
  const _STy = "SynthesisTasks";
566
615
  const _St = "Status";
567
- const _T = "Text";
616
+ const _T = "Tags";
568
617
  const _TE = "ThrottlingException";
569
618
  const _TEe = "TextEvent";
570
619
  const _TI = "TaskId";
620
+ const _TK = "TagKeys";
571
621
  const _TLEE = "TextLengthExceededException";
622
+ const _TMTE = "TooManyTagsException";
572
623
  const _TR = "ThrottlingReason";
624
+ const _TRI = "TagResourceInput";
573
625
  const _TRL = "ThrottlingReasonList";
626
+ const _TRO = "TagResourceOutput";
627
+ const _TRa = "TagResource";
574
628
  const _TS = "TaskStatus";
575
629
  const _TSR = "TaskStatusReason";
576
630
  const _TT = "TextType";
631
+ const _Te = "Text";
577
632
  const _UPAE = "UnsupportedPlsAlphabetException";
578
633
  const _UPLE = "UnsupportedPlsLanguageException";
634
+ const _UR = "UntagResource";
635
+ const _URI = "UntagResourceInput";
636
+ const _URO = "UntagResourceOutput";
579
637
  const _V = "Voices";
580
638
  const _VE = "ValidationException";
581
639
  const _VEF = "ValidationExceptionField";
@@ -583,6 +641,7 @@ const _VEFL = "ValidationExceptionFieldList";
583
641
  const _VI = "VoiceId";
584
642
  const _VL = "VoiceList";
585
643
  const _Vo = "Voice";
644
+ const _a = "arn";
586
645
  const _aQE = "awsQueryError";
587
646
  const _c = "client";
588
647
  const _e = "error";
@@ -596,6 +655,8 @@ const _m = "message";
596
655
  const _n = "name";
597
656
  const _qC = "quotaCode";
598
657
  const _r = "reason";
658
+ const _rI = "resourceId";
659
+ const _rT = "resourceType";
599
660
  const _re = "resource";
600
661
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.polly";
601
662
  const _sC = "serviceCode";
@@ -662,6 +723,12 @@ var InvalidSsmlException$ = [-3, n0, _ISE,
662
723
  [0]
663
724
  ];
664
725
  n0_registry.registerError(InvalidSsmlException$, InvalidSsmlException);
726
+ var InvalidTagParameterException$ = [-3, n0, _ITPE,
727
+ { [_e]: _c, [_hE]: 400 },
728
+ [_m],
729
+ [0]
730
+ ];
731
+ n0_registry.registerError(InvalidTagParameterException$, InvalidTagParameterException);
665
732
  var InvalidTaskIdException$ = [-3, n0, _ITIE,
666
733
  { [_e]: _c, [_hE]: 400 },
667
734
  [_m],
@@ -704,6 +771,12 @@ var MaxLexiconsNumberExceededException$ = [-3, n0, _MLNEE,
704
771
  [0]
705
772
  ];
706
773
  n0_registry.registerError(MaxLexiconsNumberExceededException$, MaxLexiconsNumberExceededException);
774
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
775
+ { [_e]: _c, [_hE]: 404 },
776
+ [_m, _rI, _rT],
777
+ [0, 0, 0], 3
778
+ ];
779
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
707
780
  var ServiceFailureException$ = [-3, n0, _SFE,
708
781
  { [_e]: _se, [_hE]: 500 },
709
782
  [_m],
@@ -740,6 +813,12 @@ var ThrottlingException$ = [-3, n0, _TE,
740
813
  [0, () => ThrottlingReasonList]
741
814
  ];
742
815
  n0_registry.registerError(ThrottlingException$, ThrottlingException);
816
+ var TooManyTagsException$ = [-3, n0, _TMTE,
817
+ { [_e]: _c, [_hE]: 400 },
818
+ [_m],
819
+ [0]
820
+ ];
821
+ n0_registry.registerError(TooManyTagsException$, TooManyTagsException);
743
822
  var UnsupportedPlsAlphabetException$ = [-3, n0, _UPAE,
744
823
  { [_e]: _c, [_hE]: 400 },
745
824
  [_m],
@@ -854,10 +933,20 @@ var ListSpeechSynthesisTasksOutput$ = [3, n0, _LSSTO,
854
933
  [_NT, _STy],
855
934
  [0, () => SynthesisTasks]
856
935
  ];
936
+ var ListTagsForResourceInput$ = [3, n0, _LTFRI,
937
+ 0,
938
+ [_RA],
939
+ [[0, { [_hQ]: _a }]], 1
940
+ ];
941
+ var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
942
+ 0,
943
+ [_T],
944
+ [128 | 0]
945
+ ];
857
946
  var PutLexiconInput$ = [3, n0, _PLI,
858
947
  0,
859
- [_N, _C],
860
- [[0, 1], [() => LexiconContent, 0]], 2
948
+ [_N, _C, _T],
949
+ [[0, 1], [() => LexiconContent, 0], 128 | 0], 2
861
950
  ];
862
951
  var PutLexiconOutput$ = [3, n0, _PLO,
863
952
  0,
@@ -876,7 +965,7 @@ var StartSpeechSynthesisStreamOutput$ = [3, n0, _SSSSO,
876
965
  ];
877
966
  var StartSpeechSynthesisTaskInput$ = [3, n0, _SSSTI,
878
967
  0,
879
- [_OF, _OSBN, _T, _VI, _E, _LCa, _LN, _OSKP, _SR, _STA, _SMT, _TT],
968
+ [_OF, _OSBN, _Te, _VI, _E, _LCa, _LN, _OSKP, _SR, _STA, _SMT, _TT],
880
969
  [0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0, 64 | 0, 0], 4
881
970
  ];
882
971
  var StartSpeechSynthesisTaskOutput$ = [3, n0, _SSSTO,
@@ -896,7 +985,7 @@ var SynthesisTask$ = [3, n0, _ST,
896
985
  ];
897
986
  var SynthesizeSpeechInput$ = [3, n0, _SSI,
898
987
  0,
899
- [_OF, _T, _VI, _E, _LCa, _LN, _SR, _SMT, _TT],
988
+ [_OF, _Te, _VI, _E, _LCa, _LN, _SR, _SMT, _TT],
900
989
  [0, 0, 0, 0, 0, 64 | 0, 0, 64 | 0, 0], 3
901
990
  ];
902
991
  var SynthesizeSpeechOutput$ = [3, n0, _SSO,
@@ -904,9 +993,19 @@ var SynthesizeSpeechOutput$ = [3, n0, _SSO,
904
993
  [_AS, _CTo, _RC],
905
994
  [[() => AudioStream, 16], [0, { [_hH]: _CT_ }], [1, { [_hH]: _xaR }]]
906
995
  ];
996
+ var TagResourceInput$ = [3, n0, _TRI,
997
+ 0,
998
+ [_RA, _T],
999
+ [0, 128 | 0], 2
1000
+ ];
1001
+ var TagResourceOutput$ = [3, n0, _TRO,
1002
+ 0,
1003
+ [],
1004
+ []
1005
+ ];
907
1006
  var TextEvent$ = [3, n0, _TEe,
908
1007
  0,
909
- [_T, _TT, _FSC],
1008
+ [_Te, _TT, _FSC],
910
1009
  [0, 0, () => FlushStreamConfiguration$], 1
911
1010
  ];
912
1011
  var ThrottlingReason$ = [3, n0, _TR,
@@ -914,6 +1013,16 @@ var ThrottlingReason$ = [3, n0, _TR,
914
1013
  [_r, _re],
915
1014
  [0, 0]
916
1015
  ];
1016
+ var UntagResourceInput$ = [3, n0, _URI,
1017
+ 0,
1018
+ [_RA, _TK],
1019
+ [0, 64 | 0], 2
1020
+ ];
1021
+ var UntagResourceOutput$ = [3, n0, _URO,
1022
+ 0,
1023
+ [],
1024
+ []
1025
+ ];
917
1026
  var ValidationExceptionField$ = [3, n0, _VEF,
918
1027
  0,
919
1028
  [_n, _m],
@@ -967,6 +1076,9 @@ var ListLexicons$ = [9, n0, _LL,
967
1076
  var ListSpeechSynthesisTasks$ = [9, n0, _LSST,
968
1077
  { [_h]: ["GET", "/v1/synthesisTasks", 200] }, () => ListSpeechSynthesisTasksInput$, () => ListSpeechSynthesisTasksOutput$
969
1078
  ];
1079
+ var ListTagsForResource$ = [9, n0, _LTFR,
1080
+ { [_h]: ["GET", "/v1/listTagsForResource", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
1081
+ ];
970
1082
  var PutLexicon$ = [9, n0, _PL,
971
1083
  { [_h]: ["PUT", "/v1/lexicons/{Name}", 200] }, () => PutLexiconInput$, () => PutLexiconOutput$
972
1084
  ];
@@ -979,6 +1091,12 @@ var StartSpeechSynthesisTask$ = [9, n0, _SSST,
979
1091
  var SynthesizeSpeech$ = [9, n0, _SS,
980
1092
  { [_h]: ["POST", "/v1/speech", 200] }, () => SynthesizeSpeechInput$, () => SynthesizeSpeechOutput$
981
1093
  ];
1094
+ var TagResource$ = [9, n0, _TRa,
1095
+ { [_h]: ["POST", "/v1/tagResource", 200] }, () => TagResourceInput$, () => TagResourceOutput$
1096
+ ];
1097
+ var UntagResource$ = [9, n0, _UR,
1098
+ { [_h]: ["POST", "/v1/untagResource", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$
1099
+ ];
982
1100
 
983
1101
  const getRuntimeConfig$1 = (config) => {
984
1102
  return {
@@ -1160,6 +1278,9 @@ class ListLexiconsCommand extends command(_ep0, _mw0, "ListLexicons", ListLexico
1160
1278
  class ListSpeechSynthesisTasksCommand extends command(_ep0, _mw0, "ListSpeechSynthesisTasks", ListSpeechSynthesisTasks$) {
1161
1279
  }
1162
1280
 
1281
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1282
+ }
1283
+
1163
1284
  class PutLexiconCommand extends command(_ep0, _mw0, "PutLexicon", PutLexicon$) {
1164
1285
  }
1165
1286
 
@@ -1172,6 +1293,12 @@ class StartSpeechSynthesisTaskCommand extends command(_ep0, _mw0, "StartSpeechSy
1172
1293
  class SynthesizeSpeechCommand extends command(_ep0, _mw0, "SynthesizeSpeech", SynthesizeSpeech$) {
1173
1294
  }
1174
1295
 
1296
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1297
+ }
1298
+
1299
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1300
+ }
1301
+
1175
1302
  const paginateListSpeechSynthesisTasks = createPaginator(PollyClient, ListSpeechSynthesisTasksCommand, "NextToken", "NextToken", "MaxResults");
1176
1303
 
1177
1304
  const commands = {
@@ -1181,10 +1308,13 @@ const commands = {
1181
1308
  GetSpeechSynthesisTaskCommand,
1182
1309
  ListLexiconsCommand,
1183
1310
  ListSpeechSynthesisTasksCommand,
1311
+ ListTagsForResourceCommand,
1184
1312
  PutLexiconCommand,
1185
1313
  StartSpeechSynthesisStreamCommand,
1186
1314
  StartSpeechSynthesisTaskCommand,
1187
1315
  SynthesizeSpeechCommand,
1316
+ TagResourceCommand,
1317
+ UntagResourceCommand,
1188
1318
  };
1189
1319
  const paginators = {
1190
1320
  paginateListSpeechSynthesisTasks,
@@ -1390,12 +1520,8 @@ const TextType = {
1390
1520
  SSML: "ssml",
1391
1521
  TEXT: "text",
1392
1522
  };
1393
- const QuotaCode = {
1394
- INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout",
1395
- INPUT_STREAM_TIMEOUT: "input-stream-timeout",
1396
- };
1397
- const ServiceCode = {
1398
- POLLY: "polly",
1523
+ const ResourceType = {
1524
+ LEXICON: "lexicon",
1399
1525
  };
1400
1526
  const ValidationExceptionReason = {
1401
1527
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
@@ -1403,6 +1529,13 @@ const ValidationExceptionReason = {
1403
1529
  OTHER: "other",
1404
1530
  UNSUPPORTED_OPERATION: "unsupportedOperation",
1405
1531
  };
1532
+ const QuotaCode = {
1533
+ INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout",
1534
+ INPUT_STREAM_TIMEOUT: "input-stream-timeout",
1535
+ };
1536
+ const ServiceCode = {
1537
+ POLLY: "polly",
1538
+ };
1406
1539
 
1407
1540
  exports.AudioEvent$ = AudioEvent$;
1408
1541
  exports.CloseStreamEvent$ = CloseStreamEvent$;
@@ -1441,6 +1574,8 @@ exports.InvalidSnsTopicArnException = InvalidSnsTopicArnException;
1441
1574
  exports.InvalidSnsTopicArnException$ = InvalidSnsTopicArnException$;
1442
1575
  exports.InvalidSsmlException = InvalidSsmlException;
1443
1576
  exports.InvalidSsmlException$ = InvalidSsmlException$;
1577
+ exports.InvalidTagParameterException = InvalidTagParameterException;
1578
+ exports.InvalidTagParameterException$ = InvalidTagParameterException$;
1444
1579
  exports.InvalidTaskIdException = InvalidTaskIdException;
1445
1580
  exports.InvalidTaskIdException$ = InvalidTaskIdException$;
1446
1581
  exports.LanguageCode = LanguageCode;
@@ -1461,6 +1596,10 @@ exports.ListSpeechSynthesisTasks$ = ListSpeechSynthesisTasks$;
1461
1596
  exports.ListSpeechSynthesisTasksCommand = ListSpeechSynthesisTasksCommand;
1462
1597
  exports.ListSpeechSynthesisTasksInput$ = ListSpeechSynthesisTasksInput$;
1463
1598
  exports.ListSpeechSynthesisTasksOutput$ = ListSpeechSynthesisTasksOutput$;
1599
+ exports.ListTagsForResource$ = ListTagsForResource$;
1600
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1601
+ exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;
1602
+ exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;
1464
1603
  exports.MarksNotSupportedForFormatException = MarksNotSupportedForFormatException;
1465
1604
  exports.MarksNotSupportedForFormatException$ = MarksNotSupportedForFormatException$;
1466
1605
  exports.MaxLexemeLengthExceededException = MaxLexemeLengthExceededException;
@@ -1477,6 +1616,9 @@ exports.PutLexiconCommand = PutLexiconCommand;
1477
1616
  exports.PutLexiconInput$ = PutLexiconInput$;
1478
1617
  exports.PutLexiconOutput$ = PutLexiconOutput$;
1479
1618
  exports.QuotaCode = QuotaCode;
1619
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1620
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1621
+ exports.ResourceType = ResourceType;
1480
1622
  exports.ServiceCode = ServiceCode;
1481
1623
  exports.ServiceFailureException = ServiceFailureException;
1482
1624
  exports.ServiceFailureException$ = ServiceFailureException$;
@@ -1503,6 +1645,10 @@ exports.SynthesizeSpeech$ = SynthesizeSpeech$;
1503
1645
  exports.SynthesizeSpeechCommand = SynthesizeSpeechCommand;
1504
1646
  exports.SynthesizeSpeechInput$ = SynthesizeSpeechInput$;
1505
1647
  exports.SynthesizeSpeechOutput$ = SynthesizeSpeechOutput$;
1648
+ exports.TagResource$ = TagResource$;
1649
+ exports.TagResourceCommand = TagResourceCommand;
1650
+ exports.TagResourceInput$ = TagResourceInput$;
1651
+ exports.TagResourceOutput$ = TagResourceOutput$;
1506
1652
  exports.TaskStatus = TaskStatus;
1507
1653
  exports.TextEvent$ = TextEvent$;
1508
1654
  exports.TextLengthExceededException = TextLengthExceededException;
@@ -1511,10 +1657,16 @@ exports.TextType = TextType;
1511
1657
  exports.ThrottlingException = ThrottlingException;
1512
1658
  exports.ThrottlingException$ = ThrottlingException$;
1513
1659
  exports.ThrottlingReason$ = ThrottlingReason$;
1660
+ exports.TooManyTagsException = TooManyTagsException;
1661
+ exports.TooManyTagsException$ = TooManyTagsException$;
1514
1662
  exports.UnsupportedPlsAlphabetException = UnsupportedPlsAlphabetException;
1515
1663
  exports.UnsupportedPlsAlphabetException$ = UnsupportedPlsAlphabetException$;
1516
1664
  exports.UnsupportedPlsLanguageException = UnsupportedPlsLanguageException;
1517
1665
  exports.UnsupportedPlsLanguageException$ = UnsupportedPlsLanguageException$;
1666
+ exports.UntagResource$ = UntagResource$;
1667
+ exports.UntagResourceCommand = UntagResourceCommand;
1668
+ exports.UntagResourceInput$ = UntagResourceInput$;
1669
+ exports.UntagResourceOutput$ = UntagResourceOutput$;
1518
1670
  exports.ValidationException = ValidationException;
1519
1671
  exports.ValidationException$ = ValidationException$;
1520
1672
  exports.ValidationExceptionField$ = ValidationExceptionField$;
package/dist-es/Polly.js CHANGED
@@ -5,10 +5,13 @@ import { GetLexiconCommand, } from "./commands/GetLexiconCommand";
5
5
  import { GetSpeechSynthesisTaskCommand, } from "./commands/GetSpeechSynthesisTaskCommand";
6
6
  import { ListLexiconsCommand, } from "./commands/ListLexiconsCommand";
7
7
  import { ListSpeechSynthesisTasksCommand, } from "./commands/ListSpeechSynthesisTasksCommand";
8
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
8
9
  import { PutLexiconCommand, } from "./commands/PutLexiconCommand";
9
10
  import { StartSpeechSynthesisStreamCommand, } from "./commands/StartSpeechSynthesisStreamCommand";
10
11
  import { StartSpeechSynthesisTaskCommand, } from "./commands/StartSpeechSynthesisTaskCommand";
11
12
  import { SynthesizeSpeechCommand, } from "./commands/SynthesizeSpeechCommand";
13
+ import { TagResourceCommand, } from "./commands/TagResourceCommand";
14
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
12
15
  import { paginateListSpeechSynthesisTasks } from "./pagination/ListSpeechSynthesisTasksPaginator";
13
16
  import { PollyClient } from "./PollyClient";
14
17
  const commands = {
@@ -18,10 +21,13 @@ const commands = {
18
21
  GetSpeechSynthesisTaskCommand,
19
22
  ListLexiconsCommand,
20
23
  ListSpeechSynthesisTasksCommand,
24
+ ListTagsForResourceCommand,
21
25
  PutLexiconCommand,
22
26
  StartSpeechSynthesisStreamCommand,
23
27
  StartSpeechSynthesisTaskCommand,
24
28
  SynthesizeSpeechCommand,
29
+ TagResourceCommand,
30
+ UntagResourceCommand,
25
31
  };
26
32
  const paginators = {
27
33
  paginateListSpeechSynthesisTasks,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListTagsForResource$ } from "../schemas/schemas_0";
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { TagResource$ } from "../schemas/schemas_0";
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UntagResource$ } from "../schemas/schemas_0";
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
4
+ }
@@ -4,7 +4,10 @@ export * from "./GetLexiconCommand";
4
4
  export * from "./GetSpeechSynthesisTaskCommand";
5
5
  export * from "./ListLexiconsCommand";
6
6
  export * from "./ListSpeechSynthesisTasksCommand";
7
+ export * from "./ListTagsForResourceCommand";
7
8
  export * from "./PutLexiconCommand";
8
9
  export * from "./StartSpeechSynthesisStreamCommand";
9
10
  export * from "./StartSpeechSynthesisTaskCommand";
10
11
  export * from "./SynthesizeSpeechCommand";
12
+ export * from "./TagResourceCommand";
13
+ export * from "./UntagResourceCommand";
@@ -195,12 +195,8 @@ export const TextType = {
195
195
  SSML: "ssml",
196
196
  TEXT: "text",
197
197
  };
198
- export const QuotaCode = {
199
- INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout",
200
- INPUT_STREAM_TIMEOUT: "input-stream-timeout",
201
- };
202
- export const ServiceCode = {
203
- POLLY: "polly",
198
+ export const ResourceType = {
199
+ LEXICON: "lexicon",
204
200
  };
205
201
  export const ValidationExceptionReason = {
206
202
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
@@ -208,3 +204,10 @@ export const ValidationExceptionReason = {
208
204
  OTHER: "other",
209
205
  UNSUPPORTED_OPERATION: "unsupportedOperation",
210
206
  };
207
+ export const QuotaCode = {
208
+ INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout",
209
+ INPUT_STREAM_TIMEOUT: "input-stream-timeout",
210
+ };
211
+ export const ServiceCode = {
212
+ POLLY: "polly",
213
+ };