@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
@@ -0,0 +1,118 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { TagResourceInput, TagResourceOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link TagResourceCommand}.
11
+ */
12
+ export interface TagResourceCommandInput extends TagResourceInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link TagResourceCommand}.
18
+ */
19
+ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataBearer {
20
+ }
21
+ declare const TagResourceCommand_base: {
22
+ new (input: TagResourceCommandInput): import("@smithy/core/client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, import("..").PollyClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: TagResourceCommandInput): import("@smithy/core/client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, import("..").PollyClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Adds specified tags to a resource with the specified ARN. Existing tags
28
+ * on a resource are not changed if they are not specified in the request
29
+ * parameters. If you specify a tag key that already exists on the resource,
30
+ * the value in the request replaces the existing value.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PollyClient, TagResourceCommand } from "@aws-sdk/client-polly"; // ES Modules import
35
+ * // const { PollyClient, TagResourceCommand } = require("@aws-sdk/client-polly"); // CommonJS import
36
+ * // import type { PollyClientConfig } from "@aws-sdk/client-polly";
37
+ * const config = {}; // type is PollyClientConfig
38
+ * const client = new PollyClient(config);
39
+ * const input = { // TagResourceInput
40
+ * ResourceArn: "STRING_VALUE", // required
41
+ * Tags: { // TagMap // required
42
+ * "<keys>": "STRING_VALUE",
43
+ * },
44
+ * };
45
+ * const command = new TagResourceCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
52
+ * @returns {@link TagResourceCommandOutput}
53
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
54
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
55
+ * @see {@link PollyClientResolvedConfig | config} for PollyClient's `config` shape.
56
+ *
57
+ * @throws {@link InvalidTagParameterException} (client fault)
58
+ * <p>The resource ARN or a tag in the request isn't valid. Specify the ARN
59
+ * of a supported resource in the Amazon Web Services account and Region of the request.
60
+ * Tag keys can have a maximum length of 128 characters, and tag values can
61
+ * have a maximum length of 256 characters. Correct the ARN or the tags, and
62
+ * then try again.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>Amazon Polly can't find the specified resource. Verify that the resource
66
+ * exists in the Amazon Web Services account and Region of the request and that its ARN is
67
+ * spelled correctly, and then try again.</p>
68
+ *
69
+ * @throws {@link ServiceFailureException} (server fault)
70
+ * <p>An unknown condition has caused a service failure.</p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>The request was denied because of request throttling.</p>
74
+ *
75
+ * @throws {@link TooManyTagsException} (client fault)
76
+ * <p>The list of tags on the resource is over the limit. The maximum number
77
+ * of tags that can be applied to a resource is 50. Remove unused tags or
78
+ * reduce the number of tags in the request, and then try again.</p>
79
+ *
80
+ * @throws {@link ValidationException} (client fault)
81
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
82
+ *
83
+ * @throws {@link PollyServiceException}
84
+ * <p>Base exception class for all service exceptions from Polly service.</p>
85
+ *
86
+ *
87
+ * @example To add tags to a lexicon
88
+ * ```javascript
89
+ * // The following example adds the specified tags to a pronunciation lexicon.
90
+ * const input = {
91
+ * ResourceArn: "arn:aws:polly:us-east-1:111122223333:lexicon/example",
92
+ * Tags: {
93
+ * Environment: "Production",
94
+ * Project: "Narration"
95
+ * }
96
+ * };
97
+ * const command = new TagResourceCommand(input);
98
+ * const response = await client.send(command);
99
+ * /* response is
100
+ * { /* empty *\/ }
101
+ * *\/
102
+ * ```
103
+ *
104
+ * @public
105
+ */
106
+ export declare class TagResourceCommand extends TagResourceCommand_base {
107
+ /** @internal type navigation helper, not in runtime. */
108
+ protected static __types: {
109
+ api: {
110
+ input: TagResourceInput;
111
+ output: {};
112
+ };
113
+ sdk: {
114
+ input: TagResourceCommandInput;
115
+ output: TagResourceCommandOutput;
116
+ };
117
+ };
118
+ }
@@ -0,0 +1,109 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UntagResourceInput, UntagResourceOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UntagResourceCommand}.
11
+ */
12
+ export interface UntagResourceCommandInput extends UntagResourceInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UntagResourceCommand}.
18
+ */
19
+ export interface UntagResourceCommandOutput extends UntagResourceOutput, __MetadataBearer {
20
+ }
21
+ declare const UntagResourceCommand_base: {
22
+ new (input: UntagResourceCommandInput): import("@smithy/core/client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, import("..").PollyClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UntagResourceCommandInput): import("@smithy/core/client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, import("..").PollyClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Deletes specified tags from a 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, UntagResourceCommand } from "@aws-sdk/client-polly"; // ES Modules import
32
+ * // const { PollyClient, UntagResourceCommand } = 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 = { // UntagResourceInput
37
+ * ResourceArn: "STRING_VALUE", // required
38
+ * TagKeys: [ // TagKeyList // required
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * };
42
+ * const command = new UntagResourceCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
49
+ * @returns {@link UntagResourceCommandOutput}
50
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
51
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
52
+ * @see {@link PollyClientResolvedConfig | config} for PollyClient's `config` shape.
53
+ *
54
+ * @throws {@link InvalidTagParameterException} (client fault)
55
+ * <p>The resource ARN or a tag in the request isn't valid. Specify the ARN
56
+ * of a supported resource in the Amazon Web Services account and Region of the request.
57
+ * Tag keys can have a maximum length of 128 characters, and tag values can
58
+ * have a maximum length of 256 characters. Correct the ARN or the tags, and
59
+ * then try again.</p>
60
+ *
61
+ * @throws {@link ResourceNotFoundException} (client fault)
62
+ * <p>Amazon Polly can't find the specified resource. Verify that the resource
63
+ * exists in the Amazon Web Services account and Region of the request and that its ARN is
64
+ * spelled correctly, and then try again.</p>
65
+ *
66
+ * @throws {@link ServiceFailureException} (server fault)
67
+ * <p>An unknown condition has caused a service failure.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The request was denied because of request throttling.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
74
+ *
75
+ * @throws {@link PollyServiceException}
76
+ * <p>Base exception class for all service exceptions from Polly service.</p>
77
+ *
78
+ *
79
+ * @example To remove tags from a lexicon
80
+ * ```javascript
81
+ * // The following example removes the tags with the specified keys from a pronunciation lexicon.
82
+ * const input = {
83
+ * ResourceArn: "arn:aws:polly:us-east-1:111122223333:lexicon/example",
84
+ * TagKeys: [
85
+ * "Environment"
86
+ * ]
87
+ * };
88
+ * const command = new UntagResourceCommand(input);
89
+ * const response = await client.send(command);
90
+ * /* response is
91
+ * { /* empty *\/ }
92
+ * *\/
93
+ * ```
94
+ *
95
+ * @public
96
+ */
97
+ export declare class UntagResourceCommand extends UntagResourceCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: UntagResourceInput;
102
+ output: {};
103
+ };
104
+ sdk: {
105
+ input: UntagResourceCommandInput;
106
+ output: UntagResourceCommandOutput;
107
+ };
108
+ };
109
+ }
@@ -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";
@@ -263,36 +263,47 @@ export type TextType = (typeof TextType)[keyof typeof TextType];
263
263
  * @public
264
264
  * @enum
265
265
  */
266
- export declare const QuotaCode: {
267
- readonly INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout";
268
- readonly INPUT_STREAM_TIMEOUT: "input-stream-timeout";
266
+ export declare const ResourceType: {
267
+ readonly LEXICON: "lexicon";
269
268
  };
270
269
  /**
271
270
  * @public
272
271
  */
273
- export type QuotaCode = (typeof QuotaCode)[keyof typeof QuotaCode];
272
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
274
273
  /**
275
274
  * @public
276
275
  * @enum
277
276
  */
278
- export declare const ServiceCode: {
279
- readonly POLLY: "polly";
277
+ export declare const ValidationExceptionReason: {
278
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
279
+ readonly INVALID_INBOUND_EVENT: "invalidInboundEvent";
280
+ readonly OTHER: "other";
281
+ readonly UNSUPPORTED_OPERATION: "unsupportedOperation";
280
282
  };
281
283
  /**
282
284
  * @public
283
285
  */
284
- export type ServiceCode = (typeof ServiceCode)[keyof typeof ServiceCode];
286
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
285
287
  /**
286
288
  * @public
287
289
  * @enum
288
290
  */
289
- export declare const ValidationExceptionReason: {
290
- readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
291
- readonly INVALID_INBOUND_EVENT: "invalidInboundEvent";
292
- readonly OTHER: "other";
293
- readonly UNSUPPORTED_OPERATION: "unsupportedOperation";
291
+ export declare const QuotaCode: {
292
+ readonly INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout";
293
+ readonly INPUT_STREAM_TIMEOUT: "input-stream-timeout";
294
294
  };
295
295
  /**
296
296
  * @public
297
297
  */
298
- export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
298
+ export type QuotaCode = (typeof QuotaCode)[keyof typeof QuotaCode];
299
+ /**
300
+ * @public
301
+ * @enum
302
+ */
303
+ export declare const ServiceCode: {
304
+ readonly POLLY: "polly";
305
+ };
306
+ /**
307
+ * @public
308
+ */
309
+ export type ServiceCode = (typeof ServiceCode)[keyof typeof ServiceCode];
@@ -1,5 +1,5 @@
1
1
  import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
- import type { QuotaCode, ServiceCode, ValidationExceptionReason } from "./enums";
2
+ import type { QuotaCode, ResourceType, ServiceCode, ValidationExceptionReason } from "./enums";
3
3
  import type { ThrottlingReason, ValidationExceptionField } from "./models_0";
4
4
  import { PollyServiceException as __BaseException } from "./PollyServiceException";
5
5
  /**
@@ -172,6 +172,23 @@ export declare class InvalidSsmlException extends __BaseException {
172
172
  */
173
173
  constructor(opts: __ExceptionOptionType<InvalidSsmlException, __BaseException>);
174
174
  }
175
+ /**
176
+ * <p>The resource ARN or a tag in the request isn't valid. Specify the ARN
177
+ * of a supported resource in the Amazon Web Services account and Region of the request.
178
+ * Tag keys can have a maximum length of 128 characters, and tag values can
179
+ * have a maximum length of 256 characters. Correct the ARN or the tags, and
180
+ * then try again.</p>
181
+ * @public
182
+ */
183
+ export declare class InvalidTagParameterException extends __BaseException {
184
+ static readonly shapeId: string;
185
+ readonly name: "InvalidTagParameterException";
186
+ readonly $fault: "client";
187
+ /**
188
+ * @internal
189
+ */
190
+ constructor(opts: __ExceptionOptionType<InvalidTagParameterException, __BaseException>);
191
+ }
175
192
  /**
176
193
  * <p>The language specified is not currently supported by Amazon Polly in this
177
194
  * capacity.</p>
@@ -200,6 +217,72 @@ export declare class LexiconSizeExceededException extends __BaseException {
200
217
  */
201
218
  constructor(opts: __ExceptionOptionType<LexiconSizeExceededException, __BaseException>);
202
219
  }
220
+ /**
221
+ * <p>Amazon Polly can't find the specified resource. Verify that the resource
222
+ * exists in the Amazon Web Services account and Region of the request and that its ARN is
223
+ * spelled correctly, and then try again.</p>
224
+ * @public
225
+ */
226
+ export declare class ResourceNotFoundException extends __BaseException {
227
+ static readonly shapeId: string;
228
+ readonly name: "ResourceNotFoundException";
229
+ readonly $fault: "client";
230
+ /**
231
+ * <p>The identifier of the resource that wasn't found.</p>
232
+ * @public
233
+ */
234
+ resourceId: string | undefined;
235
+ /**
236
+ * <p>The type of the resource that wasn't found.</p>
237
+ * @public
238
+ */
239
+ resourceType: ResourceType | undefined;
240
+ /**
241
+ * @internal
242
+ */
243
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
244
+ }
245
+ /**
246
+ * <p>The request was denied because of request throttling.</p>
247
+ * @public
248
+ */
249
+ export declare class ThrottlingException extends __BaseException {
250
+ static readonly shapeId: string;
251
+ readonly name: "ThrottlingException";
252
+ readonly $fault: "client";
253
+ /**
254
+ * <p>A list of reasons explaining why the request was throttled.</p>
255
+ * @public
256
+ */
257
+ throttlingReasons?: ThrottlingReason[] | undefined;
258
+ /**
259
+ * @internal
260
+ */
261
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
262
+ }
263
+ /**
264
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
265
+ * @public
266
+ */
267
+ export declare class ValidationException extends __BaseException {
268
+ static readonly shapeId: string;
269
+ readonly name: "ValidationException";
270
+ readonly $fault: "client";
271
+ /**
272
+ * <p>The reason the request failed validation.</p>
273
+ * @public
274
+ */
275
+ reason: ValidationExceptionReason | undefined;
276
+ /**
277
+ * <p>The fields that caused the validation error.</p>
278
+ * @public
279
+ */
280
+ fields?: ValidationExceptionField[] | undefined;
281
+ /**
282
+ * @internal
283
+ */
284
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
285
+ }
203
286
  /**
204
287
  * <p>Speech marks are not supported for the <code>OutputFormat</code>
205
288
  * selected. Speech marks are only available for content in <code>json</code>
@@ -243,6 +326,21 @@ export declare class MaxLexiconsNumberExceededException extends __BaseException
243
326
  */
244
327
  constructor(opts: __ExceptionOptionType<MaxLexiconsNumberExceededException, __BaseException>);
245
328
  }
329
+ /**
330
+ * <p>The list of tags on the resource is over the limit. The maximum number
331
+ * of tags that can be applied to a resource is 50. Remove unused tags or
332
+ * reduce the number of tags in the request, and then try again.</p>
333
+ * @public
334
+ */
335
+ export declare class TooManyTagsException extends __BaseException {
336
+ static readonly shapeId: string;
337
+ readonly name: "TooManyTagsException";
338
+ readonly $fault: "client";
339
+ /**
340
+ * @internal
341
+ */
342
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
343
+ }
246
344
  /**
247
345
  * <p>The alphabet specified by the lexicon is not a supported alphabet.
248
346
  * Valid values are <code>ipa</code>, <code>x-sampa</code>,
@@ -298,47 +396,6 @@ export declare class ServiceQuotaExceededException extends __BaseException {
298
396
  */
299
397
  constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
300
398
  }
301
- /**
302
- * <p>The request was denied because of request throttling.</p>
303
- * @public
304
- */
305
- export declare class ThrottlingException extends __BaseException {
306
- static readonly shapeId: string;
307
- readonly name: "ThrottlingException";
308
- readonly $fault: "client";
309
- /**
310
- * <p>A list of reasons explaining why the request was throttled.</p>
311
- * @public
312
- */
313
- throttlingReasons?: ThrottlingReason[] | undefined;
314
- /**
315
- * @internal
316
- */
317
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
318
- }
319
- /**
320
- * <p>The input fails to satisfy the constraints specified by the service.</p>
321
- * @public
322
- */
323
- export declare class ValidationException extends __BaseException {
324
- static readonly shapeId: string;
325
- readonly name: "ValidationException";
326
- readonly $fault: "client";
327
- /**
328
- * <p>The reason the request failed validation.</p>
329
- * @public
330
- */
331
- reason: ValidationExceptionReason | undefined;
332
- /**
333
- * <p>The fields that caused the validation error.</p>
334
- * @public
335
- */
336
- fields?: ValidationExceptionField[] | undefined;
337
- /**
338
- * @internal
339
- */
340
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
341
- }
342
399
  /**
343
400
  * <p>SSML speech marks are not supported for plain text-type
344
401
  * input.</p>
@@ -457,12 +457,66 @@ export interface ListSpeechSynthesisTasksOutput {
457
457
  */
458
458
  SynthesisTasks?: SynthesisTask[] | undefined;
459
459
  }
460
+ /**
461
+ * @public
462
+ */
463
+ export interface ListTagsForResourceInput {
464
+ /**
465
+ * <p>The Amazon Resource Name (ARN) that identifies the resource for which
466
+ * to list the tags. Currently, the only supported resource is an Amazon Polly
467
+ * lexicon.</p>
468
+ * @public
469
+ */
470
+ ResourceArn: string | undefined;
471
+ }
472
+ /**
473
+ * @public
474
+ */
475
+ export interface ListTagsForResourceOutput {
476
+ /**
477
+ * <p>The tags for the resource.</p>
478
+ * @public
479
+ */
480
+ Tags?: Record<string, string> | undefined;
481
+ }
482
+ /**
483
+ * <p>Provides information about a specific throttling reason.</p>
484
+ * @public
485
+ */
486
+ export interface ThrottlingReason {
487
+ /**
488
+ * <p>The reason code explaining why the request was throttled.</p>
489
+ * @public
490
+ */
491
+ reason?: string | undefined;
492
+ /**
493
+ * <p>The resource that caused the throttling.</p>
494
+ * @public
495
+ */
496
+ resource?: string | undefined;
497
+ }
498
+ /**
499
+ * <p>Information about a field that failed validation.</p>
500
+ * @public
501
+ */
502
+ export interface ValidationExceptionField {
503
+ /**
504
+ * <p>The name of the field that failed validation.</p>
505
+ * @public
506
+ */
507
+ name: string | undefined;
508
+ /**
509
+ * <p>A message describing why the field failed validation.</p>
510
+ * @public
511
+ */
512
+ message: string | undefined;
513
+ }
460
514
  /**
461
515
  * @public
462
516
  */
463
517
  export interface PutLexiconInput {
464
518
  /**
465
- * <p>Name of the lexicon. The name must follow the regular express
519
+ * <p>Name of the lexicon. The name must follow the regular expression
466
520
  * format [0-9A-Za-z]\{1,20\}. That is, the name is a case-sensitive
467
521
  * alphanumeric string up to 20 characters long. </p>
468
522
  * @public
@@ -473,6 +527,16 @@ export interface PutLexiconInput {
473
527
  * @public
474
528
  */
475
529
  Content: string | undefined;
530
+ /**
531
+ * <p>The metadata that you apply to the lexicon to help you categorize and
532
+ * organize it. Each tag consists of a key and an optional value, both of
533
+ * which you define. Tag keys can have a maximum character length of 128
534
+ * characters, and tag values can have a maximum length of 256
535
+ * characters. You can't replace the tags of an existing lexicon by
536
+ * overwriting it with PutLexicon.</p>
537
+ * @public
538
+ */
539
+ Tags?: Record<string, string> | undefined;
476
540
  }
477
541
  /**
478
542
  * @public
@@ -602,38 +666,6 @@ export interface StreamClosedEvent {
602
666
  */
603
667
  RequestCharacters?: number | undefined;
604
668
  }
605
- /**
606
- * <p>Provides information about a specific throttling reason.</p>
607
- * @public
608
- */
609
- export interface ThrottlingReason {
610
- /**
611
- * <p>The reason code explaining why the request was throttled.</p>
612
- * @public
613
- */
614
- reason?: string | undefined;
615
- /**
616
- * <p>The resource that caused the throttling.</p>
617
- * @public
618
- */
619
- resource?: string | undefined;
620
- }
621
- /**
622
- * <p>Information about a field that failed validation.</p>
623
- * @public
624
- */
625
- export interface ValidationExceptionField {
626
- /**
627
- * <p>The name of the field that failed validation.</p>
628
- * @public
629
- */
630
- name: string | undefined;
631
- /**
632
- * <p>A message describing why the field failed validation.</p>
633
- * @public
634
- */
635
- message: string | undefined;
636
- }
637
669
  /**
638
670
  * <p>Outbound event stream that contains synthesized audio data and stream status events.</p>
639
671
  * @public
@@ -1002,3 +1034,47 @@ export interface SynthesizeSpeechOutput {
1002
1034
  */
1003
1035
  RequestCharacters?: number | undefined;
1004
1036
  }
1037
+ /**
1038
+ * @public
1039
+ */
1040
+ export interface TagResourceInput {
1041
+ /**
1042
+ * <p>The Amazon Resource Name (ARN) of the resource to which to add tags.
1043
+ * Currently, the only supported resource is an Amazon Polly lexicon.</p>
1044
+ * @public
1045
+ */
1046
+ ResourceArn: string | undefined;
1047
+ /**
1048
+ * <p>The tags to add to the resource, as key-value pairs. Tag keys can have
1049
+ * a maximum character length of 128 characters, and tag values can have a
1050
+ * maximum length of 256 characters.</p>
1051
+ * @public
1052
+ */
1053
+ Tags: Record<string, string> | undefined;
1054
+ }
1055
+ /**
1056
+ * @public
1057
+ */
1058
+ export interface TagResourceOutput {
1059
+ }
1060
+ /**
1061
+ * @public
1062
+ */
1063
+ export interface UntagResourceInput {
1064
+ /**
1065
+ * <p>The Amazon Resource Name (ARN) of the resource from which to remove
1066
+ * tags. Currently, the only supported resource is an Amazon Polly lexicon.</p>
1067
+ * @public
1068
+ */
1069
+ ResourceArn: string | undefined;
1070
+ /**
1071
+ * <p>The keys of the tags to be removed.</p>
1072
+ * @public
1073
+ */
1074
+ TagKeys: string[] | undefined;
1075
+ }
1076
+ /**
1077
+ * @public
1078
+ */
1079
+ export interface UntagResourceOutput {
1080
+ }