@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
|
@@ -9,6 +9,7 @@ export declare var InvalidS3KeyException$: StaticErrorSchema;
|
|
|
9
9
|
export declare var InvalidSampleRateException$: StaticErrorSchema;
|
|
10
10
|
export declare var InvalidSnsTopicArnException$: StaticErrorSchema;
|
|
11
11
|
export declare var InvalidSsmlException$: StaticErrorSchema;
|
|
12
|
+
export declare var InvalidTagParameterException$: StaticErrorSchema;
|
|
12
13
|
export declare var InvalidTaskIdException$: StaticErrorSchema;
|
|
13
14
|
export declare var LanguageNotSupportedException$: StaticErrorSchema;
|
|
14
15
|
export declare var LexiconNotFoundException$: StaticErrorSchema;
|
|
@@ -16,12 +17,14 @@ export declare var LexiconSizeExceededException$: StaticErrorSchema;
|
|
|
16
17
|
export declare var MarksNotSupportedForFormatException$: StaticErrorSchema;
|
|
17
18
|
export declare var MaxLexemeLengthExceededException$: StaticErrorSchema;
|
|
18
19
|
export declare var MaxLexiconsNumberExceededException$: StaticErrorSchema;
|
|
20
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
19
21
|
export declare var ServiceFailureException$: StaticErrorSchema;
|
|
20
22
|
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
21
23
|
export declare var SsmlMarksNotSupportedForTextTypeException$: StaticErrorSchema;
|
|
22
24
|
export declare var SynthesisTaskNotFoundException$: StaticErrorSchema;
|
|
23
25
|
export declare var TextLengthExceededException$: StaticErrorSchema;
|
|
24
26
|
export declare var ThrottlingException$: StaticErrorSchema;
|
|
27
|
+
export declare var TooManyTagsException$: StaticErrorSchema;
|
|
25
28
|
export declare var UnsupportedPlsAlphabetException$: StaticErrorSchema;
|
|
26
29
|
export declare var UnsupportedPlsLanguageException$: StaticErrorSchema;
|
|
27
30
|
export declare var ValidationException$: StaticErrorSchema;
|
|
@@ -49,6 +52,8 @@ export declare var ListLexiconsInput$: StaticStructureSchema;
|
|
|
49
52
|
export declare var ListLexiconsOutput$: StaticStructureSchema;
|
|
50
53
|
export declare var ListSpeechSynthesisTasksInput$: StaticStructureSchema;
|
|
51
54
|
export declare var ListSpeechSynthesisTasksOutput$: StaticStructureSchema;
|
|
55
|
+
export declare var ListTagsForResourceInput$: StaticStructureSchema;
|
|
56
|
+
export declare var ListTagsForResourceOutput$: StaticStructureSchema;
|
|
52
57
|
export declare var PutLexiconInput$: StaticStructureSchema;
|
|
53
58
|
export declare var PutLexiconOutput$: StaticStructureSchema;
|
|
54
59
|
export declare var StartSpeechSynthesisStreamInput$: StaticStructureSchema;
|
|
@@ -59,8 +64,12 @@ export declare var StreamClosedEvent$: StaticStructureSchema;
|
|
|
59
64
|
export declare var SynthesisTask$: StaticStructureSchema;
|
|
60
65
|
export declare var SynthesizeSpeechInput$: StaticStructureSchema;
|
|
61
66
|
export declare var SynthesizeSpeechOutput$: StaticStructureSchema;
|
|
67
|
+
export declare var TagResourceInput$: StaticStructureSchema;
|
|
68
|
+
export declare var TagResourceOutput$: StaticStructureSchema;
|
|
62
69
|
export declare var TextEvent$: StaticStructureSchema;
|
|
63
70
|
export declare var ThrottlingReason$: StaticStructureSchema;
|
|
71
|
+
export declare var UntagResourceInput$: StaticStructureSchema;
|
|
72
|
+
export declare var UntagResourceOutput$: StaticStructureSchema;
|
|
64
73
|
export declare var ValidationExceptionField$: StaticStructureSchema;
|
|
65
74
|
export declare var Voice$: StaticStructureSchema;
|
|
66
75
|
export declare var StartSpeechSynthesisStreamActionStream$: StaticUnionSchema;
|
|
@@ -71,7 +80,10 @@ export declare var GetLexicon$: StaticOperationSchema;
|
|
|
71
80
|
export declare var GetSpeechSynthesisTask$: StaticOperationSchema;
|
|
72
81
|
export declare var ListLexicons$: StaticOperationSchema;
|
|
73
82
|
export declare var ListSpeechSynthesisTasks$: StaticOperationSchema;
|
|
83
|
+
export declare var ListTagsForResource$: StaticOperationSchema;
|
|
74
84
|
export declare var PutLexicon$: StaticOperationSchema;
|
|
75
85
|
export declare var StartSpeechSynthesisStream$: StaticOperationSchema;
|
|
76
86
|
export declare var StartSpeechSynthesisTask$: StaticOperationSchema;
|
|
77
87
|
export declare var SynthesizeSpeech$: StaticOperationSchema;
|
|
88
|
+
export declare var TagResource$: StaticOperationSchema;
|
|
89
|
+
export declare var UntagResource$: StaticOperationSchema;
|
|
@@ -25,6 +25,10 @@ import {
|
|
|
25
25
|
ListSpeechSynthesisTasksCommandInput,
|
|
26
26
|
ListSpeechSynthesisTasksCommandOutput,
|
|
27
27
|
} from "./commands/ListSpeechSynthesisTasksCommand";
|
|
28
|
+
import {
|
|
29
|
+
ListTagsForResourceCommandInput,
|
|
30
|
+
ListTagsForResourceCommandOutput,
|
|
31
|
+
} from "./commands/ListTagsForResourceCommand";
|
|
28
32
|
import { PutLexiconCommandInput, PutLexiconCommandOutput } from "./commands/PutLexiconCommand";
|
|
29
33
|
import {
|
|
30
34
|
StartSpeechSynthesisStreamCommandInput,
|
|
@@ -38,6 +42,11 @@ import {
|
|
|
38
42
|
SynthesizeSpeechCommandInput,
|
|
39
43
|
SynthesizeSpeechCommandOutput,
|
|
40
44
|
} from "./commands/SynthesizeSpeechCommand";
|
|
45
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
46
|
+
import {
|
|
47
|
+
UntagResourceCommandInput,
|
|
48
|
+
UntagResourceCommandOutput,
|
|
49
|
+
} from "./commands/UntagResourceCommand";
|
|
41
50
|
import { PollyClient } from "./PollyClient";
|
|
42
51
|
export interface PollyRequestOptions extends __HttpHandlerOptions {
|
|
43
52
|
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
@@ -124,6 +133,19 @@ export interface Polly {
|
|
|
124
133
|
options: PollyRequestOptions,
|
|
125
134
|
cb: (err: any, data?: ListSpeechSynthesisTasksCommandOutput) => void,
|
|
126
135
|
): void;
|
|
136
|
+
listTagsForResource(
|
|
137
|
+
args: ListTagsForResourceCommandInput,
|
|
138
|
+
options?: PollyRequestOptions,
|
|
139
|
+
): Promise<ListTagsForResourceCommandOutput>;
|
|
140
|
+
listTagsForResource(
|
|
141
|
+
args: ListTagsForResourceCommandInput,
|
|
142
|
+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void,
|
|
143
|
+
): void;
|
|
144
|
+
listTagsForResource(
|
|
145
|
+
args: ListTagsForResourceCommandInput,
|
|
146
|
+
options: PollyRequestOptions,
|
|
147
|
+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void,
|
|
148
|
+
): void;
|
|
127
149
|
putLexicon(
|
|
128
150
|
args: PutLexiconCommandInput,
|
|
129
151
|
options?: PollyRequestOptions,
|
|
@@ -176,6 +198,32 @@ export interface Polly {
|
|
|
176
198
|
options: PollyRequestOptions,
|
|
177
199
|
cb: (err: any, data?: SynthesizeSpeechCommandOutput) => void,
|
|
178
200
|
): void;
|
|
201
|
+
tagResource(
|
|
202
|
+
args: TagResourceCommandInput,
|
|
203
|
+
options?: PollyRequestOptions,
|
|
204
|
+
): Promise<TagResourceCommandOutput>;
|
|
205
|
+
tagResource(
|
|
206
|
+
args: TagResourceCommandInput,
|
|
207
|
+
cb: (err: any, data?: TagResourceCommandOutput) => void,
|
|
208
|
+
): void;
|
|
209
|
+
tagResource(
|
|
210
|
+
args: TagResourceCommandInput,
|
|
211
|
+
options: PollyRequestOptions,
|
|
212
|
+
cb: (err: any, data?: TagResourceCommandOutput) => void,
|
|
213
|
+
): void;
|
|
214
|
+
untagResource(
|
|
215
|
+
args: UntagResourceCommandInput,
|
|
216
|
+
options?: PollyRequestOptions,
|
|
217
|
+
): Promise<UntagResourceCommandOutput>;
|
|
218
|
+
untagResource(
|
|
219
|
+
args: UntagResourceCommandInput,
|
|
220
|
+
cb: (err: any, data?: UntagResourceCommandOutput) => void,
|
|
221
|
+
): void;
|
|
222
|
+
untagResource(
|
|
223
|
+
args: UntagResourceCommandInput,
|
|
224
|
+
options: PollyRequestOptions,
|
|
225
|
+
cb: (err: any, data?: UntagResourceCommandOutput) => void,
|
|
226
|
+
): void;
|
|
179
227
|
paginateListSpeechSynthesisTasks(
|
|
180
228
|
args?: ListSpeechSynthesisTasksCommandInput,
|
|
181
229
|
paginationConfig?: Pick<
|
|
@@ -62,6 +62,10 @@ import {
|
|
|
62
62
|
ListSpeechSynthesisTasksCommandInput,
|
|
63
63
|
ListSpeechSynthesisTasksCommandOutput,
|
|
64
64
|
} from "./commands/ListSpeechSynthesisTasksCommand";
|
|
65
|
+
import {
|
|
66
|
+
ListTagsForResourceCommandInput,
|
|
67
|
+
ListTagsForResourceCommandOutput,
|
|
68
|
+
} from "./commands/ListTagsForResourceCommand";
|
|
65
69
|
import { PutLexiconCommandInput, PutLexiconCommandOutput } from "./commands/PutLexiconCommand";
|
|
66
70
|
import {
|
|
67
71
|
StartSpeechSynthesisStreamCommandInput,
|
|
@@ -75,6 +79,11 @@ import {
|
|
|
75
79
|
SynthesizeSpeechCommandInput,
|
|
76
80
|
SynthesizeSpeechCommandOutput,
|
|
77
81
|
} from "./commands/SynthesizeSpeechCommand";
|
|
82
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
83
|
+
import {
|
|
84
|
+
UntagResourceCommandInput,
|
|
85
|
+
UntagResourceCommandOutput,
|
|
86
|
+
} from "./commands/UntagResourceCommand";
|
|
78
87
|
import {
|
|
79
88
|
ClientInputEndpointParameters,
|
|
80
89
|
ClientResolvedEndpointParameters,
|
|
@@ -89,10 +98,13 @@ export type ServiceInputTypes =
|
|
|
89
98
|
| GetSpeechSynthesisTaskCommandInput
|
|
90
99
|
| ListLexiconsCommandInput
|
|
91
100
|
| ListSpeechSynthesisTasksCommandInput
|
|
101
|
+
| ListTagsForResourceCommandInput
|
|
92
102
|
| PutLexiconCommandInput
|
|
93
103
|
| StartSpeechSynthesisStreamCommandInput
|
|
94
104
|
| StartSpeechSynthesisTaskCommandInput
|
|
95
|
-
| SynthesizeSpeechCommandInput
|
|
105
|
+
| SynthesizeSpeechCommandInput
|
|
106
|
+
| TagResourceCommandInput
|
|
107
|
+
| UntagResourceCommandInput;
|
|
96
108
|
export type ServiceOutputTypes =
|
|
97
109
|
| DeleteLexiconCommandOutput
|
|
98
110
|
| DescribeVoicesCommandOutput
|
|
@@ -100,10 +112,13 @@ export type ServiceOutputTypes =
|
|
|
100
112
|
| GetSpeechSynthesisTaskCommandOutput
|
|
101
113
|
| ListLexiconsCommandOutput
|
|
102
114
|
| ListSpeechSynthesisTasksCommandOutput
|
|
115
|
+
| ListTagsForResourceCommandOutput
|
|
103
116
|
| PutLexiconCommandOutput
|
|
104
117
|
| StartSpeechSynthesisStreamCommandOutput
|
|
105
118
|
| StartSpeechSynthesisTaskCommandOutput
|
|
106
|
-
| SynthesizeSpeechCommandOutput
|
|
119
|
+
| SynthesizeSpeechCommandOutput
|
|
120
|
+
| TagResourceCommandOutput
|
|
121
|
+
| UntagResourceCommandOutput;
|
|
107
122
|
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
108
123
|
requestHandler?: __HttpHandlerUserInput;
|
|
109
124
|
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { ListTagsForResourceInput, ListTagsForResourceOutput } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceInput {}
|
|
5
|
+
export interface ListTagsForResourceCommandOutput
|
|
6
|
+
extends ListTagsForResourceOutput, __MetadataBearer {}
|
|
7
|
+
declare const ListTagsForResourceCommand_base: {
|
|
8
|
+
new (
|
|
9
|
+
input: ListTagsForResourceCommandInput,
|
|
10
|
+
): import("@smithy/core/client").CommandImpl<
|
|
11
|
+
ListTagsForResourceCommandInput,
|
|
12
|
+
ListTagsForResourceCommandOutput,
|
|
13
|
+
import("..").PollyClientResolvedConfig,
|
|
14
|
+
import("..").ServiceInputTypes,
|
|
15
|
+
import("..").ServiceOutputTypes
|
|
16
|
+
>;
|
|
17
|
+
new (
|
|
18
|
+
input: ListTagsForResourceCommandInput,
|
|
19
|
+
): import("@smithy/core/client").CommandImpl<
|
|
20
|
+
ListTagsForResourceCommandInput,
|
|
21
|
+
ListTagsForResourceCommandOutput,
|
|
22
|
+
import("..").PollyClientResolvedConfig,
|
|
23
|
+
import("..").ServiceInputTypes,
|
|
24
|
+
import("..").ServiceOutputTypes
|
|
25
|
+
>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
|
|
29
|
+
protected static __types: {
|
|
30
|
+
api: {
|
|
31
|
+
input: ListTagsForResourceInput;
|
|
32
|
+
output: ListTagsForResourceOutput;
|
|
33
|
+
};
|
|
34
|
+
sdk: {
|
|
35
|
+
input: ListTagsForResourceCommandInput;
|
|
36
|
+
output: ListTagsForResourceCommandOutput;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { TagResourceInput, TagResourceOutput } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface TagResourceCommandInput extends TagResourceInput {}
|
|
5
|
+
export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataBearer {}
|
|
6
|
+
declare const TagResourceCommand_base: {
|
|
7
|
+
new (
|
|
8
|
+
input: TagResourceCommandInput,
|
|
9
|
+
): import("@smithy/core/client").CommandImpl<
|
|
10
|
+
TagResourceCommandInput,
|
|
11
|
+
TagResourceCommandOutput,
|
|
12
|
+
import("..").PollyClientResolvedConfig,
|
|
13
|
+
import("..").ServiceInputTypes,
|
|
14
|
+
import("..").ServiceOutputTypes
|
|
15
|
+
>;
|
|
16
|
+
new (
|
|
17
|
+
input: TagResourceCommandInput,
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
19
|
+
TagResourceCommandInput,
|
|
20
|
+
TagResourceCommandOutput,
|
|
21
|
+
import("..").PollyClientResolvedConfig,
|
|
22
|
+
import("..").ServiceInputTypes,
|
|
23
|
+
import("..").ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
export declare class TagResourceCommand extends TagResourceCommand_base {
|
|
28
|
+
protected static __types: {
|
|
29
|
+
api: {
|
|
30
|
+
input: TagResourceInput;
|
|
31
|
+
output: {};
|
|
32
|
+
};
|
|
33
|
+
sdk: {
|
|
34
|
+
input: TagResourceCommandInput;
|
|
35
|
+
output: TagResourceCommandOutput;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { UntagResourceInput, UntagResourceOutput } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface UntagResourceCommandInput extends UntagResourceInput {}
|
|
5
|
+
export interface UntagResourceCommandOutput extends UntagResourceOutput, __MetadataBearer {}
|
|
6
|
+
declare const UntagResourceCommand_base: {
|
|
7
|
+
new (
|
|
8
|
+
input: UntagResourceCommandInput,
|
|
9
|
+
): import("@smithy/core/client").CommandImpl<
|
|
10
|
+
UntagResourceCommandInput,
|
|
11
|
+
UntagResourceCommandOutput,
|
|
12
|
+
import("..").PollyClientResolvedConfig,
|
|
13
|
+
import("..").ServiceInputTypes,
|
|
14
|
+
import("..").ServiceOutputTypes
|
|
15
|
+
>;
|
|
16
|
+
new (
|
|
17
|
+
input: UntagResourceCommandInput,
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
19
|
+
UntagResourceCommandInput,
|
|
20
|
+
UntagResourceCommandOutput,
|
|
21
|
+
import("..").PollyClientResolvedConfig,
|
|
22
|
+
import("..").ServiceInputTypes,
|
|
23
|
+
import("..").ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
export declare class UntagResourceCommand extends UntagResourceCommand_base {
|
|
28
|
+
protected static __types: {
|
|
29
|
+
api: {
|
|
30
|
+
input: UntagResourceInput;
|
|
31
|
+
output: {};
|
|
32
|
+
};
|
|
33
|
+
sdk: {
|
|
34
|
+
input: UntagResourceCommandInput;
|
|
35
|
+
output: UntagResourceCommandOutput;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -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";
|
|
@@ -203,15 +203,10 @@ export declare const TextType: {
|
|
|
203
203
|
readonly TEXT: "text";
|
|
204
204
|
};
|
|
205
205
|
export type TextType = (typeof TextType)[keyof typeof TextType];
|
|
206
|
-
export declare const
|
|
207
|
-
readonly
|
|
208
|
-
readonly INPUT_STREAM_TIMEOUT: "input-stream-timeout";
|
|
206
|
+
export declare const ResourceType: {
|
|
207
|
+
readonly LEXICON: "lexicon";
|
|
209
208
|
};
|
|
210
|
-
export type
|
|
211
|
-
export declare const ServiceCode: {
|
|
212
|
-
readonly POLLY: "polly";
|
|
213
|
-
};
|
|
214
|
-
export type ServiceCode = (typeof ServiceCode)[keyof typeof ServiceCode];
|
|
209
|
+
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
215
210
|
export declare const ValidationExceptionReason: {
|
|
216
211
|
readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
|
|
217
212
|
readonly INVALID_INBOUND_EVENT: "invalidInboundEvent";
|
|
@@ -220,3 +215,12 @@ export declare const ValidationExceptionReason: {
|
|
|
220
215
|
};
|
|
221
216
|
export type ValidationExceptionReason =
|
|
222
217
|
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
218
|
+
export declare const QuotaCode: {
|
|
219
|
+
readonly INPUT_STREAM_INBOUND_EVENT_TIMEOUT: "input-stream-inbound-event-timeout";
|
|
220
|
+
readonly INPUT_STREAM_TIMEOUT: "input-stream-timeout";
|
|
221
|
+
};
|
|
222
|
+
export type QuotaCode = (typeof QuotaCode)[keyof typeof QuotaCode];
|
|
223
|
+
export declare const ServiceCode: {
|
|
224
|
+
readonly POLLY: "polly";
|
|
225
|
+
};
|
|
226
|
+
export type ServiceCode = (typeof ServiceCode)[keyof typeof ServiceCode];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
|
-
import { QuotaCode, ServiceCode, ValidationExceptionReason } from "./enums";
|
|
2
|
+
import { QuotaCode, ResourceType, ServiceCode, ValidationExceptionReason } from "./enums";
|
|
3
3
|
import { ThrottlingReason, ValidationExceptionField } from "./models_0";
|
|
4
4
|
import { PollyServiceException as __BaseException } from "./PollyServiceException";
|
|
5
5
|
export declare class LexiconNotFoundException extends __BaseException {
|
|
@@ -74,6 +74,12 @@ export declare class InvalidSsmlException extends __BaseException {
|
|
|
74
74
|
readonly $fault: "client";
|
|
75
75
|
constructor(opts: __ExceptionOptionType<InvalidSsmlException, __BaseException>);
|
|
76
76
|
}
|
|
77
|
+
export declare class InvalidTagParameterException extends __BaseException {
|
|
78
|
+
static readonly shapeId: string;
|
|
79
|
+
readonly name: "InvalidTagParameterException";
|
|
80
|
+
readonly $fault: "client";
|
|
81
|
+
constructor(opts: __ExceptionOptionType<InvalidTagParameterException, __BaseException>);
|
|
82
|
+
}
|
|
77
83
|
export declare class LanguageNotSupportedException extends __BaseException {
|
|
78
84
|
static readonly shapeId: string;
|
|
79
85
|
readonly name: "LanguageNotSupportedException";
|
|
@@ -86,6 +92,29 @@ export declare class LexiconSizeExceededException extends __BaseException {
|
|
|
86
92
|
readonly $fault: "client";
|
|
87
93
|
constructor(opts: __ExceptionOptionType<LexiconSizeExceededException, __BaseException>);
|
|
88
94
|
}
|
|
95
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
96
|
+
static readonly shapeId: string;
|
|
97
|
+
readonly name: "ResourceNotFoundException";
|
|
98
|
+
readonly $fault: "client";
|
|
99
|
+
resourceId: string | undefined;
|
|
100
|
+
resourceType: ResourceType | undefined;
|
|
101
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
102
|
+
}
|
|
103
|
+
export declare class ThrottlingException extends __BaseException {
|
|
104
|
+
static readonly shapeId: string;
|
|
105
|
+
readonly name: "ThrottlingException";
|
|
106
|
+
readonly $fault: "client";
|
|
107
|
+
throttlingReasons?: ThrottlingReason[] | undefined;
|
|
108
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
109
|
+
}
|
|
110
|
+
export declare class ValidationException extends __BaseException {
|
|
111
|
+
static readonly shapeId: string;
|
|
112
|
+
readonly name: "ValidationException";
|
|
113
|
+
readonly $fault: "client";
|
|
114
|
+
reason: ValidationExceptionReason | undefined;
|
|
115
|
+
fields?: ValidationExceptionField[] | undefined;
|
|
116
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
117
|
+
}
|
|
89
118
|
export declare class MarksNotSupportedForFormatException extends __BaseException {
|
|
90
119
|
static readonly shapeId: string;
|
|
91
120
|
readonly name: "MarksNotSupportedForFormatException";
|
|
@@ -104,6 +133,12 @@ export declare class MaxLexiconsNumberExceededException extends __BaseException
|
|
|
104
133
|
readonly $fault: "client";
|
|
105
134
|
constructor(opts: __ExceptionOptionType<MaxLexiconsNumberExceededException, __BaseException>);
|
|
106
135
|
}
|
|
136
|
+
export declare class TooManyTagsException extends __BaseException {
|
|
137
|
+
static readonly shapeId: string;
|
|
138
|
+
readonly name: "TooManyTagsException";
|
|
139
|
+
readonly $fault: "client";
|
|
140
|
+
constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
|
|
141
|
+
}
|
|
107
142
|
export declare class UnsupportedPlsAlphabetException extends __BaseException {
|
|
108
143
|
static readonly shapeId: string;
|
|
109
144
|
readonly name: "UnsupportedPlsAlphabetException";
|
|
@@ -124,21 +159,6 @@ export declare class ServiceQuotaExceededException extends __BaseException {
|
|
|
124
159
|
serviceCode: ServiceCode | undefined;
|
|
125
160
|
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
126
161
|
}
|
|
127
|
-
export declare class ThrottlingException extends __BaseException {
|
|
128
|
-
static readonly shapeId: string;
|
|
129
|
-
readonly name: "ThrottlingException";
|
|
130
|
-
readonly $fault: "client";
|
|
131
|
-
throttlingReasons?: ThrottlingReason[] | undefined;
|
|
132
|
-
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
133
|
-
}
|
|
134
|
-
export declare class ValidationException extends __BaseException {
|
|
135
|
-
static readonly shapeId: string;
|
|
136
|
-
readonly name: "ValidationException";
|
|
137
|
-
readonly $fault: "client";
|
|
138
|
-
reason: ValidationExceptionReason | undefined;
|
|
139
|
-
fields?: ValidationExceptionField[] | undefined;
|
|
140
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
141
|
-
}
|
|
142
162
|
export declare class SsmlMarksNotSupportedForTextTypeException extends __BaseException {
|
|
143
163
|
static readonly shapeId: string;
|
|
144
164
|
readonly name: "SsmlMarksNotSupportedForTextTypeException";
|
|
@@ -107,9 +107,24 @@ export interface ListSpeechSynthesisTasksOutput {
|
|
|
107
107
|
NextToken?: string | undefined;
|
|
108
108
|
SynthesisTasks?: SynthesisTask[] | undefined;
|
|
109
109
|
}
|
|
110
|
+
export interface ListTagsForResourceInput {
|
|
111
|
+
ResourceArn: string | undefined;
|
|
112
|
+
}
|
|
113
|
+
export interface ListTagsForResourceOutput {
|
|
114
|
+
Tags?: Record<string, string> | undefined;
|
|
115
|
+
}
|
|
116
|
+
export interface ThrottlingReason {
|
|
117
|
+
reason?: string | undefined;
|
|
118
|
+
resource?: string | undefined;
|
|
119
|
+
}
|
|
120
|
+
export interface ValidationExceptionField {
|
|
121
|
+
name: string | undefined;
|
|
122
|
+
message: string | undefined;
|
|
123
|
+
}
|
|
110
124
|
export interface PutLexiconInput {
|
|
111
125
|
Name: string | undefined;
|
|
112
126
|
Content: string | undefined;
|
|
127
|
+
Tags?: Record<string, string> | undefined;
|
|
113
128
|
}
|
|
114
129
|
export interface PutLexiconOutput {}
|
|
115
130
|
export interface TextEvent {
|
|
@@ -155,14 +170,6 @@ export interface StartSpeechSynthesisStreamInput {
|
|
|
155
170
|
export interface StreamClosedEvent {
|
|
156
171
|
RequestCharacters?: number | undefined;
|
|
157
172
|
}
|
|
158
|
-
export interface ThrottlingReason {
|
|
159
|
-
reason?: string | undefined;
|
|
160
|
-
resource?: string | undefined;
|
|
161
|
-
}
|
|
162
|
-
export interface ValidationExceptionField {
|
|
163
|
-
name: string | undefined;
|
|
164
|
-
message: string | undefined;
|
|
165
|
-
}
|
|
166
173
|
export type StartSpeechSynthesisStreamEventStream =
|
|
167
174
|
| StartSpeechSynthesisStreamEventStream.AudioEventMember
|
|
168
175
|
| StartSpeechSynthesisStreamEventStream.ServiceFailureExceptionMember
|
|
@@ -281,3 +288,13 @@ export interface SynthesizeSpeechOutput {
|
|
|
281
288
|
ContentType?: string | undefined;
|
|
282
289
|
RequestCharacters?: number | undefined;
|
|
283
290
|
}
|
|
291
|
+
export interface TagResourceInput {
|
|
292
|
+
ResourceArn: string | undefined;
|
|
293
|
+
Tags: Record<string, string> | undefined;
|
|
294
|
+
}
|
|
295
|
+
export interface TagResourceOutput {}
|
|
296
|
+
export interface UntagResourceInput {
|
|
297
|
+
ResourceArn: string | undefined;
|
|
298
|
+
TagKeys: string[] | undefined;
|
|
299
|
+
}
|
|
300
|
+
export interface UntagResourceOutput {}
|
|
@@ -14,6 +14,7 @@ export declare var InvalidS3KeyException$: StaticErrorSchema;
|
|
|
14
14
|
export declare var InvalidSampleRateException$: StaticErrorSchema;
|
|
15
15
|
export declare var InvalidSnsTopicArnException$: StaticErrorSchema;
|
|
16
16
|
export declare var InvalidSsmlException$: StaticErrorSchema;
|
|
17
|
+
export declare var InvalidTagParameterException$: StaticErrorSchema;
|
|
17
18
|
export declare var InvalidTaskIdException$: StaticErrorSchema;
|
|
18
19
|
export declare var LanguageNotSupportedException$: StaticErrorSchema;
|
|
19
20
|
export declare var LexiconNotFoundException$: StaticErrorSchema;
|
|
@@ -21,12 +22,14 @@ export declare var LexiconSizeExceededException$: StaticErrorSchema;
|
|
|
21
22
|
export declare var MarksNotSupportedForFormatException$: StaticErrorSchema;
|
|
22
23
|
export declare var MaxLexemeLengthExceededException$: StaticErrorSchema;
|
|
23
24
|
export declare var MaxLexiconsNumberExceededException$: StaticErrorSchema;
|
|
25
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
24
26
|
export declare var ServiceFailureException$: StaticErrorSchema;
|
|
25
27
|
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
26
28
|
export declare var SsmlMarksNotSupportedForTextTypeException$: StaticErrorSchema;
|
|
27
29
|
export declare var SynthesisTaskNotFoundException$: StaticErrorSchema;
|
|
28
30
|
export declare var TextLengthExceededException$: StaticErrorSchema;
|
|
29
31
|
export declare var ThrottlingException$: StaticErrorSchema;
|
|
32
|
+
export declare var TooManyTagsException$: StaticErrorSchema;
|
|
30
33
|
export declare var UnsupportedPlsAlphabetException$: StaticErrorSchema;
|
|
31
34
|
export declare var UnsupportedPlsLanguageException$: StaticErrorSchema;
|
|
32
35
|
export declare var ValidationException$: StaticErrorSchema;
|
|
@@ -49,6 +52,8 @@ export declare var ListLexiconsInput$: StaticStructureSchema;
|
|
|
49
52
|
export declare var ListLexiconsOutput$: StaticStructureSchema;
|
|
50
53
|
export declare var ListSpeechSynthesisTasksInput$: StaticStructureSchema;
|
|
51
54
|
export declare var ListSpeechSynthesisTasksOutput$: StaticStructureSchema;
|
|
55
|
+
export declare var ListTagsForResourceInput$: StaticStructureSchema;
|
|
56
|
+
export declare var ListTagsForResourceOutput$: StaticStructureSchema;
|
|
52
57
|
export declare var PutLexiconInput$: StaticStructureSchema;
|
|
53
58
|
export declare var PutLexiconOutput$: StaticStructureSchema;
|
|
54
59
|
export declare var StartSpeechSynthesisStreamInput$: StaticStructureSchema;
|
|
@@ -59,8 +64,12 @@ export declare var StreamClosedEvent$: StaticStructureSchema;
|
|
|
59
64
|
export declare var SynthesisTask$: StaticStructureSchema;
|
|
60
65
|
export declare var SynthesizeSpeechInput$: StaticStructureSchema;
|
|
61
66
|
export declare var SynthesizeSpeechOutput$: StaticStructureSchema;
|
|
67
|
+
export declare var TagResourceInput$: StaticStructureSchema;
|
|
68
|
+
export declare var TagResourceOutput$: StaticStructureSchema;
|
|
62
69
|
export declare var TextEvent$: StaticStructureSchema;
|
|
63
70
|
export declare var ThrottlingReason$: StaticStructureSchema;
|
|
71
|
+
export declare var UntagResourceInput$: StaticStructureSchema;
|
|
72
|
+
export declare var UntagResourceOutput$: StaticStructureSchema;
|
|
64
73
|
export declare var ValidationExceptionField$: StaticStructureSchema;
|
|
65
74
|
export declare var Voice$: StaticStructureSchema;
|
|
66
75
|
export declare var StartSpeechSynthesisStreamActionStream$: StaticUnionSchema;
|
|
@@ -71,7 +80,10 @@ export declare var GetLexicon$: StaticOperationSchema;
|
|
|
71
80
|
export declare var GetSpeechSynthesisTask$: StaticOperationSchema;
|
|
72
81
|
export declare var ListLexicons$: StaticOperationSchema;
|
|
73
82
|
export declare var ListSpeechSynthesisTasks$: StaticOperationSchema;
|
|
83
|
+
export declare var ListTagsForResource$: StaticOperationSchema;
|
|
74
84
|
export declare var PutLexicon$: StaticOperationSchema;
|
|
75
85
|
export declare var StartSpeechSynthesisStream$: StaticOperationSchema;
|
|
76
86
|
export declare var StartSpeechSynthesisTask$: StaticOperationSchema;
|
|
77
87
|
export declare var SynthesizeSpeech$: StaticOperationSchema;
|
|
88
|
+
export declare var TagResource$: StaticOperationSchema;
|
|
89
|
+
export declare var UntagResource$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-polly",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1162.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Polly Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-polly",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aws-sdk/core": "^3.
|
|
54
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
53
|
+
"@aws-sdk/core": "^3.980.0",
|
|
54
|
+
"@aws-sdk/credential-provider-node": "^3.972.93",
|
|
55
55
|
"@aws-sdk/eventstream-handler-node": "^3.972.40",
|
|
56
56
|
"@aws-sdk/middleware-eventstream": "^3.972.36",
|
|
57
57
|
"@aws-sdk/types": "^3.975.0",
|