@aws-sdk/client-comprehend 3.987.0 → 3.989.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/dist-cjs/index.js +104 -3215
- package/dist-cjs/models/ComprehendServiceException.js +12 -0
- package/dist-cjs/models/errors.js +248 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +2528 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +118 -112
- package/dist-types/schemas/schemas_0.d.ts +24 -17
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -17
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComprehendServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class ComprehendServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, ComprehendServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ComprehendServiceException = ComprehendServiceException;
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TooManyTagKeysException = exports.ConcurrentModificationException = exports.InvalidFilterException = exports.JobNotFoundException = exports.KmsKeyValidationException = exports.TooManyTagsException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.ResourceLimitExceededException = exports.ResourceInUseException = exports.ResourceUnavailableException = exports.UnsupportedLanguageException = exports.TextSizeLimitExceededException = exports.InvalidRequestException = exports.InternalServerException = exports.BatchSizeLimitExceededException = void 0;
|
|
4
|
+
const ComprehendServiceException_1 = require("./ComprehendServiceException");
|
|
5
|
+
class BatchSizeLimitExceededException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
6
|
+
name = "BatchSizeLimitExceededException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
Message;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "BatchSizeLimitExceededException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, BatchSizeLimitExceededException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.BatchSizeLimitExceededException = BatchSizeLimitExceededException;
|
|
20
|
+
class InternalServerException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
21
|
+
name = "InternalServerException";
|
|
22
|
+
$fault = "server";
|
|
23
|
+
Message;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: "InternalServerException",
|
|
27
|
+
$fault: "server",
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
31
|
+
this.Message = opts.Message;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.InternalServerException = InternalServerException;
|
|
35
|
+
class InvalidRequestException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
36
|
+
name = "InvalidRequestException";
|
|
37
|
+
$fault = "client";
|
|
38
|
+
Message;
|
|
39
|
+
Reason;
|
|
40
|
+
Detail;
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "InvalidRequestException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
48
|
+
this.Message = opts.Message;
|
|
49
|
+
this.Reason = opts.Reason;
|
|
50
|
+
this.Detail = opts.Detail;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
54
|
+
class TextSizeLimitExceededException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
55
|
+
name = "TextSizeLimitExceededException";
|
|
56
|
+
$fault = "client";
|
|
57
|
+
Message;
|
|
58
|
+
constructor(opts) {
|
|
59
|
+
super({
|
|
60
|
+
name: "TextSizeLimitExceededException",
|
|
61
|
+
$fault: "client",
|
|
62
|
+
...opts,
|
|
63
|
+
});
|
|
64
|
+
Object.setPrototypeOf(this, TextSizeLimitExceededException.prototype);
|
|
65
|
+
this.Message = opts.Message;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.TextSizeLimitExceededException = TextSizeLimitExceededException;
|
|
69
|
+
class UnsupportedLanguageException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
70
|
+
name = "UnsupportedLanguageException";
|
|
71
|
+
$fault = "client";
|
|
72
|
+
Message;
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "UnsupportedLanguageException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, UnsupportedLanguageException.prototype);
|
|
80
|
+
this.Message = opts.Message;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.UnsupportedLanguageException = UnsupportedLanguageException;
|
|
84
|
+
class ResourceUnavailableException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
85
|
+
name = "ResourceUnavailableException";
|
|
86
|
+
$fault = "client";
|
|
87
|
+
Message;
|
|
88
|
+
constructor(opts) {
|
|
89
|
+
super({
|
|
90
|
+
name: "ResourceUnavailableException",
|
|
91
|
+
$fault: "client",
|
|
92
|
+
...opts,
|
|
93
|
+
});
|
|
94
|
+
Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
|
|
95
|
+
this.Message = opts.Message;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.ResourceUnavailableException = ResourceUnavailableException;
|
|
99
|
+
class ResourceInUseException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
100
|
+
name = "ResourceInUseException";
|
|
101
|
+
$fault = "client";
|
|
102
|
+
Message;
|
|
103
|
+
constructor(opts) {
|
|
104
|
+
super({
|
|
105
|
+
name: "ResourceInUseException",
|
|
106
|
+
$fault: "client",
|
|
107
|
+
...opts,
|
|
108
|
+
});
|
|
109
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
110
|
+
this.Message = opts.Message;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.ResourceInUseException = ResourceInUseException;
|
|
114
|
+
class ResourceLimitExceededException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
115
|
+
name = "ResourceLimitExceededException";
|
|
116
|
+
$fault = "client";
|
|
117
|
+
Message;
|
|
118
|
+
constructor(opts) {
|
|
119
|
+
super({
|
|
120
|
+
name: "ResourceLimitExceededException",
|
|
121
|
+
$fault: "client",
|
|
122
|
+
...opts,
|
|
123
|
+
});
|
|
124
|
+
Object.setPrototypeOf(this, ResourceLimitExceededException.prototype);
|
|
125
|
+
this.Message = opts.Message;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.ResourceLimitExceededException = ResourceLimitExceededException;
|
|
129
|
+
class ResourceNotFoundException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
130
|
+
name = "ResourceNotFoundException";
|
|
131
|
+
$fault = "client";
|
|
132
|
+
Message;
|
|
133
|
+
constructor(opts) {
|
|
134
|
+
super({
|
|
135
|
+
name: "ResourceNotFoundException",
|
|
136
|
+
$fault: "client",
|
|
137
|
+
...opts,
|
|
138
|
+
});
|
|
139
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
140
|
+
this.Message = opts.Message;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
144
|
+
class TooManyRequestsException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
145
|
+
name = "TooManyRequestsException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
Message;
|
|
148
|
+
constructor(opts) {
|
|
149
|
+
super({
|
|
150
|
+
name: "TooManyRequestsException",
|
|
151
|
+
$fault: "client",
|
|
152
|
+
...opts,
|
|
153
|
+
});
|
|
154
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
155
|
+
this.Message = opts.Message;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
159
|
+
class TooManyTagsException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
160
|
+
name = "TooManyTagsException";
|
|
161
|
+
$fault = "client";
|
|
162
|
+
Message;
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "TooManyTagsException",
|
|
166
|
+
$fault: "client",
|
|
167
|
+
...opts,
|
|
168
|
+
});
|
|
169
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
170
|
+
this.Message = opts.Message;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
174
|
+
class KmsKeyValidationException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
175
|
+
name = "KmsKeyValidationException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
Message;
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "KmsKeyValidationException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, KmsKeyValidationException.prototype);
|
|
185
|
+
this.Message = opts.Message;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
exports.KmsKeyValidationException = KmsKeyValidationException;
|
|
189
|
+
class JobNotFoundException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
190
|
+
name = "JobNotFoundException";
|
|
191
|
+
$fault = "client";
|
|
192
|
+
Message;
|
|
193
|
+
constructor(opts) {
|
|
194
|
+
super({
|
|
195
|
+
name: "JobNotFoundException",
|
|
196
|
+
$fault: "client",
|
|
197
|
+
...opts,
|
|
198
|
+
});
|
|
199
|
+
Object.setPrototypeOf(this, JobNotFoundException.prototype);
|
|
200
|
+
this.Message = opts.Message;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.JobNotFoundException = JobNotFoundException;
|
|
204
|
+
class InvalidFilterException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
205
|
+
name = "InvalidFilterException";
|
|
206
|
+
$fault = "client";
|
|
207
|
+
Message;
|
|
208
|
+
constructor(opts) {
|
|
209
|
+
super({
|
|
210
|
+
name: "InvalidFilterException",
|
|
211
|
+
$fault: "client",
|
|
212
|
+
...opts,
|
|
213
|
+
});
|
|
214
|
+
Object.setPrototypeOf(this, InvalidFilterException.prototype);
|
|
215
|
+
this.Message = opts.Message;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
exports.InvalidFilterException = InvalidFilterException;
|
|
219
|
+
class ConcurrentModificationException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
220
|
+
name = "ConcurrentModificationException";
|
|
221
|
+
$fault = "client";
|
|
222
|
+
Message;
|
|
223
|
+
constructor(opts) {
|
|
224
|
+
super({
|
|
225
|
+
name: "ConcurrentModificationException",
|
|
226
|
+
$fault: "client",
|
|
227
|
+
...opts,
|
|
228
|
+
});
|
|
229
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
230
|
+
this.Message = opts.Message;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
234
|
+
class TooManyTagKeysException extends ComprehendServiceException_1.ComprehendServiceException {
|
|
235
|
+
name = "TooManyTagKeysException";
|
|
236
|
+
$fault = "client";
|
|
237
|
+
Message;
|
|
238
|
+
constructor(opts) {
|
|
239
|
+
super({
|
|
240
|
+
name: "TooManyTagKeysException",
|
|
241
|
+
$fault: "client",
|
|
242
|
+
...opts,
|
|
243
|
+
});
|
|
244
|
+
Object.setPrototypeOf(this, TooManyTagKeysException.prototype);
|
|
245
|
+
this.Message = opts.Message;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
exports.TooManyTagKeysException = TooManyTagKeysException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2017-11-27",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.comprehend",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2017-11-27",
|
|
33
35
|
serviceTarget: "Comprehend_20171127",
|
|
34
36
|
},
|