@aws-sdk/client-textract 3.986.0 → 3.988.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextractServiceException = 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 TextractServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, TextractServiceException.prototype);
10
+ }
11
+ }
12
+ exports.TextractServiceException = TextractServiceException;
@@ -0,0 +1,316 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidJobIdException = exports.ResourceNotFoundException = exports.InvalidKMSKeyException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.LimitExceededException = exports.IdempotentParameterMismatchException = exports.ConflictException = exports.UnsupportedDocumentException = exports.ThrottlingException = exports.ProvisionedThroughputExceededException = exports.InvalidS3ObjectException = exports.InvalidParameterException = exports.InternalServerError = exports.HumanLoopQuotaExceededException = exports.DocumentTooLargeException = exports.BadDocumentException = exports.AccessDeniedException = void 0;
4
+ const TextractServiceException_1 = require("./TextractServiceException");
5
+ class AccessDeniedException extends TextractServiceException_1.TextractServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ Message;
9
+ Code;
10
+ constructor(opts) {
11
+ super({
12
+ name: "AccessDeniedException",
13
+ $fault: "client",
14
+ ...opts,
15
+ });
16
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
17
+ this.Message = opts.Message;
18
+ this.Code = opts.Code;
19
+ }
20
+ }
21
+ exports.AccessDeniedException = AccessDeniedException;
22
+ class BadDocumentException extends TextractServiceException_1.TextractServiceException {
23
+ name = "BadDocumentException";
24
+ $fault = "client";
25
+ Message;
26
+ Code;
27
+ constructor(opts) {
28
+ super({
29
+ name: "BadDocumentException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ Object.setPrototypeOf(this, BadDocumentException.prototype);
34
+ this.Message = opts.Message;
35
+ this.Code = opts.Code;
36
+ }
37
+ }
38
+ exports.BadDocumentException = BadDocumentException;
39
+ class DocumentTooLargeException extends TextractServiceException_1.TextractServiceException {
40
+ name = "DocumentTooLargeException";
41
+ $fault = "client";
42
+ Message;
43
+ Code;
44
+ constructor(opts) {
45
+ super({
46
+ name: "DocumentTooLargeException",
47
+ $fault: "client",
48
+ ...opts,
49
+ });
50
+ Object.setPrototypeOf(this, DocumentTooLargeException.prototype);
51
+ this.Message = opts.Message;
52
+ this.Code = opts.Code;
53
+ }
54
+ }
55
+ exports.DocumentTooLargeException = DocumentTooLargeException;
56
+ class HumanLoopQuotaExceededException extends TextractServiceException_1.TextractServiceException {
57
+ name = "HumanLoopQuotaExceededException";
58
+ $fault = "client";
59
+ ResourceType;
60
+ QuotaCode;
61
+ ServiceCode;
62
+ Message;
63
+ Code;
64
+ constructor(opts) {
65
+ super({
66
+ name: "HumanLoopQuotaExceededException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ Object.setPrototypeOf(this, HumanLoopQuotaExceededException.prototype);
71
+ this.ResourceType = opts.ResourceType;
72
+ this.QuotaCode = opts.QuotaCode;
73
+ this.ServiceCode = opts.ServiceCode;
74
+ this.Message = opts.Message;
75
+ this.Code = opts.Code;
76
+ }
77
+ }
78
+ exports.HumanLoopQuotaExceededException = HumanLoopQuotaExceededException;
79
+ class InternalServerError extends TextractServiceException_1.TextractServiceException {
80
+ name = "InternalServerError";
81
+ $fault = "server";
82
+ Message;
83
+ Code;
84
+ constructor(opts) {
85
+ super({
86
+ name: "InternalServerError",
87
+ $fault: "server",
88
+ ...opts,
89
+ });
90
+ Object.setPrototypeOf(this, InternalServerError.prototype);
91
+ this.Message = opts.Message;
92
+ this.Code = opts.Code;
93
+ }
94
+ }
95
+ exports.InternalServerError = InternalServerError;
96
+ class InvalidParameterException extends TextractServiceException_1.TextractServiceException {
97
+ name = "InvalidParameterException";
98
+ $fault = "client";
99
+ Message;
100
+ Code;
101
+ constructor(opts) {
102
+ super({
103
+ name: "InvalidParameterException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
108
+ this.Message = opts.Message;
109
+ this.Code = opts.Code;
110
+ }
111
+ }
112
+ exports.InvalidParameterException = InvalidParameterException;
113
+ class InvalidS3ObjectException extends TextractServiceException_1.TextractServiceException {
114
+ name = "InvalidS3ObjectException";
115
+ $fault = "client";
116
+ Message;
117
+ Code;
118
+ constructor(opts) {
119
+ super({
120
+ name: "InvalidS3ObjectException",
121
+ $fault: "client",
122
+ ...opts,
123
+ });
124
+ Object.setPrototypeOf(this, InvalidS3ObjectException.prototype);
125
+ this.Message = opts.Message;
126
+ this.Code = opts.Code;
127
+ }
128
+ }
129
+ exports.InvalidS3ObjectException = InvalidS3ObjectException;
130
+ class ProvisionedThroughputExceededException extends TextractServiceException_1.TextractServiceException {
131
+ name = "ProvisionedThroughputExceededException";
132
+ $fault = "client";
133
+ Message;
134
+ Code;
135
+ constructor(opts) {
136
+ super({
137
+ name: "ProvisionedThroughputExceededException",
138
+ $fault: "client",
139
+ ...opts,
140
+ });
141
+ Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
142
+ this.Message = opts.Message;
143
+ this.Code = opts.Code;
144
+ }
145
+ }
146
+ exports.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException;
147
+ class ThrottlingException extends TextractServiceException_1.TextractServiceException {
148
+ name = "ThrottlingException";
149
+ $fault = "server";
150
+ Message;
151
+ Code;
152
+ constructor(opts) {
153
+ super({
154
+ name: "ThrottlingException",
155
+ $fault: "server",
156
+ ...opts,
157
+ });
158
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
159
+ this.Message = opts.Message;
160
+ this.Code = opts.Code;
161
+ }
162
+ }
163
+ exports.ThrottlingException = ThrottlingException;
164
+ class UnsupportedDocumentException extends TextractServiceException_1.TextractServiceException {
165
+ name = "UnsupportedDocumentException";
166
+ $fault = "client";
167
+ Message;
168
+ Code;
169
+ constructor(opts) {
170
+ super({
171
+ name: "UnsupportedDocumentException",
172
+ $fault: "client",
173
+ ...opts,
174
+ });
175
+ Object.setPrototypeOf(this, UnsupportedDocumentException.prototype);
176
+ this.Message = opts.Message;
177
+ this.Code = opts.Code;
178
+ }
179
+ }
180
+ exports.UnsupportedDocumentException = UnsupportedDocumentException;
181
+ class ConflictException extends TextractServiceException_1.TextractServiceException {
182
+ name = "ConflictException";
183
+ $fault = "client";
184
+ Message;
185
+ Code;
186
+ constructor(opts) {
187
+ super({
188
+ name: "ConflictException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, ConflictException.prototype);
193
+ this.Message = opts.Message;
194
+ this.Code = opts.Code;
195
+ }
196
+ }
197
+ exports.ConflictException = ConflictException;
198
+ class IdempotentParameterMismatchException extends TextractServiceException_1.TextractServiceException {
199
+ name = "IdempotentParameterMismatchException";
200
+ $fault = "client";
201
+ Message;
202
+ Code;
203
+ constructor(opts) {
204
+ super({
205
+ name: "IdempotentParameterMismatchException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
210
+ this.Message = opts.Message;
211
+ this.Code = opts.Code;
212
+ }
213
+ }
214
+ exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException;
215
+ class LimitExceededException extends TextractServiceException_1.TextractServiceException {
216
+ name = "LimitExceededException";
217
+ $fault = "client";
218
+ Message;
219
+ Code;
220
+ constructor(opts) {
221
+ super({
222
+ name: "LimitExceededException",
223
+ $fault: "client",
224
+ ...opts,
225
+ });
226
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
227
+ this.Message = opts.Message;
228
+ this.Code = opts.Code;
229
+ }
230
+ }
231
+ exports.LimitExceededException = LimitExceededException;
232
+ class ServiceQuotaExceededException extends TextractServiceException_1.TextractServiceException {
233
+ name = "ServiceQuotaExceededException";
234
+ $fault = "client";
235
+ Message;
236
+ Code;
237
+ constructor(opts) {
238
+ super({
239
+ name: "ServiceQuotaExceededException",
240
+ $fault: "client",
241
+ ...opts,
242
+ });
243
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
244
+ this.Message = opts.Message;
245
+ this.Code = opts.Code;
246
+ }
247
+ }
248
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
249
+ class ValidationException extends TextractServiceException_1.TextractServiceException {
250
+ name = "ValidationException";
251
+ $fault = "client";
252
+ Message;
253
+ Code;
254
+ constructor(opts) {
255
+ super({
256
+ name: "ValidationException",
257
+ $fault: "client",
258
+ ...opts,
259
+ });
260
+ Object.setPrototypeOf(this, ValidationException.prototype);
261
+ this.Message = opts.Message;
262
+ this.Code = opts.Code;
263
+ }
264
+ }
265
+ exports.ValidationException = ValidationException;
266
+ class InvalidKMSKeyException extends TextractServiceException_1.TextractServiceException {
267
+ name = "InvalidKMSKeyException";
268
+ $fault = "client";
269
+ Message;
270
+ Code;
271
+ constructor(opts) {
272
+ super({
273
+ name: "InvalidKMSKeyException",
274
+ $fault: "client",
275
+ ...opts,
276
+ });
277
+ Object.setPrototypeOf(this, InvalidKMSKeyException.prototype);
278
+ this.Message = opts.Message;
279
+ this.Code = opts.Code;
280
+ }
281
+ }
282
+ exports.InvalidKMSKeyException = InvalidKMSKeyException;
283
+ class ResourceNotFoundException extends TextractServiceException_1.TextractServiceException {
284
+ name = "ResourceNotFoundException";
285
+ $fault = "client";
286
+ Message;
287
+ Code;
288
+ constructor(opts) {
289
+ super({
290
+ name: "ResourceNotFoundException",
291
+ $fault: "client",
292
+ ...opts,
293
+ });
294
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
295
+ this.Message = opts.Message;
296
+ this.Code = opts.Code;
297
+ }
298
+ }
299
+ exports.ResourceNotFoundException = ResourceNotFoundException;
300
+ class InvalidJobIdException extends TextractServiceException_1.TextractServiceException {
301
+ name = "InvalidJobIdException";
302
+ $fault = "client";
303
+ Message;
304
+ Code;
305
+ constructor(opts) {
306
+ super({
307
+ name: "InvalidJobIdException",
308
+ $fault: "client",
309
+ ...opts,
310
+ });
311
+ Object.setPrototypeOf(this, InvalidJobIdException.prototype);
312
+ this.Message = opts.Message;
313
+ this.Code = opts.Code;
314
+ }
315
+ }
316
+ exports.InvalidJobIdException = InvalidJobIdException;
@@ -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: "2018-06-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.textract",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-06-27",
33
35
  serviceTarget: "Textract",
34
36
  },