@aws-sdk/client-rekognition 3.987.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.RekognitionServiceException = 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 RekognitionServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, RekognitionServiceException.prototype);
10
+ }
11
+ }
12
+ exports.RekognitionServiceException = RekognitionServiceException;
@@ -0,0 +1,447 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoTooLargeException = exports.MalformedPolicyDocumentException = exports.InvalidManifestException = exports.SessionNotFoundException = exports.HumanLoopQuotaExceededException = exports.ResourceNotReadyException = exports.InvalidPaginationTokenException = exports.InvalidPolicyRevisionIdException = exports.ResourceAlreadyExistsException = exports.ResourceInUseException = exports.LimitExceededException = exports.InvalidS3ObjectException = exports.InvalidImageFormatException = exports.ImageTooLargeException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ProvisionedThroughputExceededException = exports.InvalidParameterException = exports.InternalServerError = exports.IdempotentParameterMismatchException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const RekognitionServiceException_1 = require("./RekognitionServiceException");
5
+ class AccessDeniedException extends RekognitionServiceException_1.RekognitionServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ Message;
9
+ Code;
10
+ Logref;
11
+ constructor(opts) {
12
+ super({
13
+ name: "AccessDeniedException",
14
+ $fault: "client",
15
+ ...opts,
16
+ });
17
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
18
+ this.Message = opts.Message;
19
+ this.Code = opts.Code;
20
+ this.Logref = opts.Logref;
21
+ }
22
+ }
23
+ exports.AccessDeniedException = AccessDeniedException;
24
+ class ConflictException extends RekognitionServiceException_1.RekognitionServiceException {
25
+ name = "ConflictException";
26
+ $fault = "client";
27
+ Message;
28
+ Code;
29
+ Logref;
30
+ constructor(opts) {
31
+ super({
32
+ name: "ConflictException",
33
+ $fault: "client",
34
+ ...opts,
35
+ });
36
+ Object.setPrototypeOf(this, ConflictException.prototype);
37
+ this.Message = opts.Message;
38
+ this.Code = opts.Code;
39
+ this.Logref = opts.Logref;
40
+ }
41
+ }
42
+ exports.ConflictException = ConflictException;
43
+ class IdempotentParameterMismatchException extends RekognitionServiceException_1.RekognitionServiceException {
44
+ name = "IdempotentParameterMismatchException";
45
+ $fault = "client";
46
+ Message;
47
+ Code;
48
+ Logref;
49
+ constructor(opts) {
50
+ super({
51
+ name: "IdempotentParameterMismatchException",
52
+ $fault: "client",
53
+ ...opts,
54
+ });
55
+ Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
56
+ this.Message = opts.Message;
57
+ this.Code = opts.Code;
58
+ this.Logref = opts.Logref;
59
+ }
60
+ }
61
+ exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException;
62
+ class InternalServerError extends RekognitionServiceException_1.RekognitionServiceException {
63
+ name = "InternalServerError";
64
+ $fault = "server";
65
+ Message;
66
+ Code;
67
+ Logref;
68
+ constructor(opts) {
69
+ super({
70
+ name: "InternalServerError",
71
+ $fault: "server",
72
+ ...opts,
73
+ });
74
+ Object.setPrototypeOf(this, InternalServerError.prototype);
75
+ this.Message = opts.Message;
76
+ this.Code = opts.Code;
77
+ this.Logref = opts.Logref;
78
+ }
79
+ }
80
+ exports.InternalServerError = InternalServerError;
81
+ class InvalidParameterException extends RekognitionServiceException_1.RekognitionServiceException {
82
+ name = "InvalidParameterException";
83
+ $fault = "client";
84
+ Message;
85
+ Code;
86
+ Logref;
87
+ constructor(opts) {
88
+ super({
89
+ name: "InvalidParameterException",
90
+ $fault: "client",
91
+ ...opts,
92
+ });
93
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
94
+ this.Message = opts.Message;
95
+ this.Code = opts.Code;
96
+ this.Logref = opts.Logref;
97
+ }
98
+ }
99
+ exports.InvalidParameterException = InvalidParameterException;
100
+ class ProvisionedThroughputExceededException extends RekognitionServiceException_1.RekognitionServiceException {
101
+ name = "ProvisionedThroughputExceededException";
102
+ $fault = "client";
103
+ Message;
104
+ Code;
105
+ Logref;
106
+ constructor(opts) {
107
+ super({
108
+ name: "ProvisionedThroughputExceededException",
109
+ $fault: "client",
110
+ ...opts,
111
+ });
112
+ Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
113
+ this.Message = opts.Message;
114
+ this.Code = opts.Code;
115
+ this.Logref = opts.Logref;
116
+ }
117
+ }
118
+ exports.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException;
119
+ class ResourceNotFoundException extends RekognitionServiceException_1.RekognitionServiceException {
120
+ name = "ResourceNotFoundException";
121
+ $fault = "client";
122
+ Message;
123
+ Code;
124
+ Logref;
125
+ constructor(opts) {
126
+ super({
127
+ name: "ResourceNotFoundException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
132
+ this.Message = opts.Message;
133
+ this.Code = opts.Code;
134
+ this.Logref = opts.Logref;
135
+ }
136
+ }
137
+ exports.ResourceNotFoundException = ResourceNotFoundException;
138
+ class ServiceQuotaExceededException extends RekognitionServiceException_1.RekognitionServiceException {
139
+ name = "ServiceQuotaExceededException";
140
+ $fault = "client";
141
+ Message;
142
+ Code;
143
+ Logref;
144
+ constructor(opts) {
145
+ super({
146
+ name: "ServiceQuotaExceededException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
151
+ this.Message = opts.Message;
152
+ this.Code = opts.Code;
153
+ this.Logref = opts.Logref;
154
+ }
155
+ }
156
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
157
+ class ThrottlingException extends RekognitionServiceException_1.RekognitionServiceException {
158
+ name = "ThrottlingException";
159
+ $fault = "server";
160
+ Message;
161
+ Code;
162
+ Logref;
163
+ constructor(opts) {
164
+ super({
165
+ name: "ThrottlingException",
166
+ $fault: "server",
167
+ ...opts,
168
+ });
169
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
170
+ this.Message = opts.Message;
171
+ this.Code = opts.Code;
172
+ this.Logref = opts.Logref;
173
+ }
174
+ }
175
+ exports.ThrottlingException = ThrottlingException;
176
+ class ImageTooLargeException extends RekognitionServiceException_1.RekognitionServiceException {
177
+ name = "ImageTooLargeException";
178
+ $fault = "client";
179
+ Message;
180
+ Code;
181
+ Logref;
182
+ constructor(opts) {
183
+ super({
184
+ name: "ImageTooLargeException",
185
+ $fault: "client",
186
+ ...opts,
187
+ });
188
+ Object.setPrototypeOf(this, ImageTooLargeException.prototype);
189
+ this.Message = opts.Message;
190
+ this.Code = opts.Code;
191
+ this.Logref = opts.Logref;
192
+ }
193
+ }
194
+ exports.ImageTooLargeException = ImageTooLargeException;
195
+ class InvalidImageFormatException extends RekognitionServiceException_1.RekognitionServiceException {
196
+ name = "InvalidImageFormatException";
197
+ $fault = "client";
198
+ Message;
199
+ Code;
200
+ Logref;
201
+ constructor(opts) {
202
+ super({
203
+ name: "InvalidImageFormatException",
204
+ $fault: "client",
205
+ ...opts,
206
+ });
207
+ Object.setPrototypeOf(this, InvalidImageFormatException.prototype);
208
+ this.Message = opts.Message;
209
+ this.Code = opts.Code;
210
+ this.Logref = opts.Logref;
211
+ }
212
+ }
213
+ exports.InvalidImageFormatException = InvalidImageFormatException;
214
+ class InvalidS3ObjectException extends RekognitionServiceException_1.RekognitionServiceException {
215
+ name = "InvalidS3ObjectException";
216
+ $fault = "client";
217
+ Message;
218
+ Code;
219
+ Logref;
220
+ constructor(opts) {
221
+ super({
222
+ name: "InvalidS3ObjectException",
223
+ $fault: "client",
224
+ ...opts,
225
+ });
226
+ Object.setPrototypeOf(this, InvalidS3ObjectException.prototype);
227
+ this.Message = opts.Message;
228
+ this.Code = opts.Code;
229
+ this.Logref = opts.Logref;
230
+ }
231
+ }
232
+ exports.InvalidS3ObjectException = InvalidS3ObjectException;
233
+ class LimitExceededException extends RekognitionServiceException_1.RekognitionServiceException {
234
+ name = "LimitExceededException";
235
+ $fault = "client";
236
+ Message;
237
+ Code;
238
+ Logref;
239
+ constructor(opts) {
240
+ super({
241
+ name: "LimitExceededException",
242
+ $fault: "client",
243
+ ...opts,
244
+ });
245
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
246
+ this.Message = opts.Message;
247
+ this.Code = opts.Code;
248
+ this.Logref = opts.Logref;
249
+ }
250
+ }
251
+ exports.LimitExceededException = LimitExceededException;
252
+ class ResourceInUseException extends RekognitionServiceException_1.RekognitionServiceException {
253
+ name = "ResourceInUseException";
254
+ $fault = "client";
255
+ Message;
256
+ Code;
257
+ Logref;
258
+ constructor(opts) {
259
+ super({
260
+ name: "ResourceInUseException",
261
+ $fault: "client",
262
+ ...opts,
263
+ });
264
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
265
+ this.Message = opts.Message;
266
+ this.Code = opts.Code;
267
+ this.Logref = opts.Logref;
268
+ }
269
+ }
270
+ exports.ResourceInUseException = ResourceInUseException;
271
+ class ResourceAlreadyExistsException extends RekognitionServiceException_1.RekognitionServiceException {
272
+ name = "ResourceAlreadyExistsException";
273
+ $fault = "client";
274
+ Message;
275
+ Code;
276
+ Logref;
277
+ constructor(opts) {
278
+ super({
279
+ name: "ResourceAlreadyExistsException",
280
+ $fault: "client",
281
+ ...opts,
282
+ });
283
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
284
+ this.Message = opts.Message;
285
+ this.Code = opts.Code;
286
+ this.Logref = opts.Logref;
287
+ }
288
+ }
289
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
290
+ class InvalidPolicyRevisionIdException extends RekognitionServiceException_1.RekognitionServiceException {
291
+ name = "InvalidPolicyRevisionIdException";
292
+ $fault = "client";
293
+ Message;
294
+ Code;
295
+ Logref;
296
+ constructor(opts) {
297
+ super({
298
+ name: "InvalidPolicyRevisionIdException",
299
+ $fault: "client",
300
+ ...opts,
301
+ });
302
+ Object.setPrototypeOf(this, InvalidPolicyRevisionIdException.prototype);
303
+ this.Message = opts.Message;
304
+ this.Code = opts.Code;
305
+ this.Logref = opts.Logref;
306
+ }
307
+ }
308
+ exports.InvalidPolicyRevisionIdException = InvalidPolicyRevisionIdException;
309
+ class InvalidPaginationTokenException extends RekognitionServiceException_1.RekognitionServiceException {
310
+ name = "InvalidPaginationTokenException";
311
+ $fault = "client";
312
+ Message;
313
+ Code;
314
+ Logref;
315
+ constructor(opts) {
316
+ super({
317
+ name: "InvalidPaginationTokenException",
318
+ $fault: "client",
319
+ ...opts,
320
+ });
321
+ Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
322
+ this.Message = opts.Message;
323
+ this.Code = opts.Code;
324
+ this.Logref = opts.Logref;
325
+ }
326
+ }
327
+ exports.InvalidPaginationTokenException = InvalidPaginationTokenException;
328
+ class ResourceNotReadyException extends RekognitionServiceException_1.RekognitionServiceException {
329
+ name = "ResourceNotReadyException";
330
+ $fault = "client";
331
+ Message;
332
+ Code;
333
+ Logref;
334
+ constructor(opts) {
335
+ super({
336
+ name: "ResourceNotReadyException",
337
+ $fault: "client",
338
+ ...opts,
339
+ });
340
+ Object.setPrototypeOf(this, ResourceNotReadyException.prototype);
341
+ this.Message = opts.Message;
342
+ this.Code = opts.Code;
343
+ this.Logref = opts.Logref;
344
+ }
345
+ }
346
+ exports.ResourceNotReadyException = ResourceNotReadyException;
347
+ class HumanLoopQuotaExceededException extends RekognitionServiceException_1.RekognitionServiceException {
348
+ name = "HumanLoopQuotaExceededException";
349
+ $fault = "client";
350
+ ResourceType;
351
+ QuotaCode;
352
+ ServiceCode;
353
+ Message;
354
+ Code;
355
+ Logref;
356
+ constructor(opts) {
357
+ super({
358
+ name: "HumanLoopQuotaExceededException",
359
+ $fault: "client",
360
+ ...opts,
361
+ });
362
+ Object.setPrototypeOf(this, HumanLoopQuotaExceededException.prototype);
363
+ this.ResourceType = opts.ResourceType;
364
+ this.QuotaCode = opts.QuotaCode;
365
+ this.ServiceCode = opts.ServiceCode;
366
+ this.Message = opts.Message;
367
+ this.Code = opts.Code;
368
+ this.Logref = opts.Logref;
369
+ }
370
+ }
371
+ exports.HumanLoopQuotaExceededException = HumanLoopQuotaExceededException;
372
+ class SessionNotFoundException extends RekognitionServiceException_1.RekognitionServiceException {
373
+ name = "SessionNotFoundException";
374
+ $fault = "client";
375
+ Message;
376
+ Code;
377
+ Logref;
378
+ constructor(opts) {
379
+ super({
380
+ name: "SessionNotFoundException",
381
+ $fault: "client",
382
+ ...opts,
383
+ });
384
+ Object.setPrototypeOf(this, SessionNotFoundException.prototype);
385
+ this.Message = opts.Message;
386
+ this.Code = opts.Code;
387
+ this.Logref = opts.Logref;
388
+ }
389
+ }
390
+ exports.SessionNotFoundException = SessionNotFoundException;
391
+ class InvalidManifestException extends RekognitionServiceException_1.RekognitionServiceException {
392
+ name = "InvalidManifestException";
393
+ $fault = "client";
394
+ Message;
395
+ Code;
396
+ Logref;
397
+ constructor(opts) {
398
+ super({
399
+ name: "InvalidManifestException",
400
+ $fault: "client",
401
+ ...opts,
402
+ });
403
+ Object.setPrototypeOf(this, InvalidManifestException.prototype);
404
+ this.Message = opts.Message;
405
+ this.Code = opts.Code;
406
+ this.Logref = opts.Logref;
407
+ }
408
+ }
409
+ exports.InvalidManifestException = InvalidManifestException;
410
+ class MalformedPolicyDocumentException extends RekognitionServiceException_1.RekognitionServiceException {
411
+ name = "MalformedPolicyDocumentException";
412
+ $fault = "client";
413
+ Message;
414
+ Code;
415
+ Logref;
416
+ constructor(opts) {
417
+ super({
418
+ name: "MalformedPolicyDocumentException",
419
+ $fault: "client",
420
+ ...opts,
421
+ });
422
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
423
+ this.Message = opts.Message;
424
+ this.Code = opts.Code;
425
+ this.Logref = opts.Logref;
426
+ }
427
+ }
428
+ exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
429
+ class VideoTooLargeException extends RekognitionServiceException_1.RekognitionServiceException {
430
+ name = "VideoTooLargeException";
431
+ $fault = "client";
432
+ Message;
433
+ Code;
434
+ Logref;
435
+ constructor(opts) {
436
+ super({
437
+ name: "VideoTooLargeException",
438
+ $fault: "client",
439
+ ...opts,
440
+ });
441
+ Object.setPrototypeOf(this, VideoTooLargeException.prototype);
442
+ this.Message = opts.Message;
443
+ this.Code = opts.Code;
444
+ this.Logref = opts.Logref;
445
+ }
446
+ }
447
+ exports.VideoTooLargeException = VideoTooLargeException;
@@ -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: "2016-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.rekognition",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2016-06-27",
33
35
  serviceTarget: "RekognitionService",
34
36
  },