@aws-sdk/client-rekognition 3.1075.0 → 3.1077.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.
@@ -1,421 +0,0 @@
1
- const { RekognitionServiceException: __BaseException } = require("./RekognitionServiceException");
2
- exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- Message;
6
- Code;
7
- Logref;
8
- constructor(opts) {
9
- super({
10
- name: "AccessDeniedException",
11
- $fault: "client",
12
- ...opts,
13
- });
14
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
- this.Message = opts.Message;
16
- this.Code = opts.Code;
17
- this.Logref = opts.Logref;
18
- }
19
- };
20
- exports.ConflictException = class ConflictException extends __BaseException {
21
- name = "ConflictException";
22
- $fault = "client";
23
- Message;
24
- Code;
25
- Logref;
26
- constructor(opts) {
27
- super({
28
- name: "ConflictException",
29
- $fault: "client",
30
- ...opts,
31
- });
32
- Object.setPrototypeOf(this, ConflictException.prototype);
33
- this.Message = opts.Message;
34
- this.Code = opts.Code;
35
- this.Logref = opts.Logref;
36
- }
37
- };
38
- exports.IdempotentParameterMismatchException = class IdempotentParameterMismatchException extends __BaseException {
39
- name = "IdempotentParameterMismatchException";
40
- $fault = "client";
41
- Message;
42
- Code;
43
- Logref;
44
- constructor(opts) {
45
- super({
46
- name: "IdempotentParameterMismatchException",
47
- $fault: "client",
48
- ...opts,
49
- });
50
- Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
51
- this.Message = opts.Message;
52
- this.Code = opts.Code;
53
- this.Logref = opts.Logref;
54
- }
55
- };
56
- exports.InternalServerError = class InternalServerError extends __BaseException {
57
- name = "InternalServerError";
58
- $fault = "server";
59
- Message;
60
- Code;
61
- Logref;
62
- constructor(opts) {
63
- super({
64
- name: "InternalServerError",
65
- $fault: "server",
66
- ...opts,
67
- });
68
- Object.setPrototypeOf(this, InternalServerError.prototype);
69
- this.Message = opts.Message;
70
- this.Code = opts.Code;
71
- this.Logref = opts.Logref;
72
- }
73
- };
74
- exports.InvalidParameterException = class InvalidParameterException extends __BaseException {
75
- name = "InvalidParameterException";
76
- $fault = "client";
77
- Message;
78
- Code;
79
- Logref;
80
- constructor(opts) {
81
- super({
82
- name: "InvalidParameterException",
83
- $fault: "client",
84
- ...opts,
85
- });
86
- Object.setPrototypeOf(this, InvalidParameterException.prototype);
87
- this.Message = opts.Message;
88
- this.Code = opts.Code;
89
- this.Logref = opts.Logref;
90
- }
91
- };
92
- exports.ProvisionedThroughputExceededException = class ProvisionedThroughputExceededException extends __BaseException {
93
- name = "ProvisionedThroughputExceededException";
94
- $fault = "client";
95
- Message;
96
- Code;
97
- Logref;
98
- constructor(opts) {
99
- super({
100
- name: "ProvisionedThroughputExceededException",
101
- $fault: "client",
102
- ...opts,
103
- });
104
- Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
105
- this.Message = opts.Message;
106
- this.Code = opts.Code;
107
- this.Logref = opts.Logref;
108
- }
109
- };
110
- exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
111
- name = "ResourceNotFoundException";
112
- $fault = "client";
113
- Message;
114
- Code;
115
- Logref;
116
- constructor(opts) {
117
- super({
118
- name: "ResourceNotFoundException",
119
- $fault: "client",
120
- ...opts,
121
- });
122
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
123
- this.Message = opts.Message;
124
- this.Code = opts.Code;
125
- this.Logref = opts.Logref;
126
- }
127
- };
128
- exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
129
- name = "ServiceQuotaExceededException";
130
- $fault = "client";
131
- Message;
132
- Code;
133
- Logref;
134
- constructor(opts) {
135
- super({
136
- name: "ServiceQuotaExceededException",
137
- $fault: "client",
138
- ...opts,
139
- });
140
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
141
- this.Message = opts.Message;
142
- this.Code = opts.Code;
143
- this.Logref = opts.Logref;
144
- }
145
- };
146
- exports.ThrottlingException = class ThrottlingException extends __BaseException {
147
- name = "ThrottlingException";
148
- $fault = "server";
149
- Message;
150
- Code;
151
- Logref;
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
- this.Logref = opts.Logref;
162
- }
163
- };
164
- exports.ImageTooLargeException = class ImageTooLargeException extends __BaseException {
165
- name = "ImageTooLargeException";
166
- $fault = "client";
167
- Message;
168
- Code;
169
- Logref;
170
- constructor(opts) {
171
- super({
172
- name: "ImageTooLargeException",
173
- $fault: "client",
174
- ...opts,
175
- });
176
- Object.setPrototypeOf(this, ImageTooLargeException.prototype);
177
- this.Message = opts.Message;
178
- this.Code = opts.Code;
179
- this.Logref = opts.Logref;
180
- }
181
- };
182
- exports.InvalidImageFormatException = class InvalidImageFormatException extends __BaseException {
183
- name = "InvalidImageFormatException";
184
- $fault = "client";
185
- Message;
186
- Code;
187
- Logref;
188
- constructor(opts) {
189
- super({
190
- name: "InvalidImageFormatException",
191
- $fault: "client",
192
- ...opts,
193
- });
194
- Object.setPrototypeOf(this, InvalidImageFormatException.prototype);
195
- this.Message = opts.Message;
196
- this.Code = opts.Code;
197
- this.Logref = opts.Logref;
198
- }
199
- };
200
- exports.InvalidS3ObjectException = class InvalidS3ObjectException extends __BaseException {
201
- name = "InvalidS3ObjectException";
202
- $fault = "client";
203
- Message;
204
- Code;
205
- Logref;
206
- constructor(opts) {
207
- super({
208
- name: "InvalidS3ObjectException",
209
- $fault: "client",
210
- ...opts,
211
- });
212
- Object.setPrototypeOf(this, InvalidS3ObjectException.prototype);
213
- this.Message = opts.Message;
214
- this.Code = opts.Code;
215
- this.Logref = opts.Logref;
216
- }
217
- };
218
- exports.LimitExceededException = class LimitExceededException extends __BaseException {
219
- name = "LimitExceededException";
220
- $fault = "client";
221
- Message;
222
- Code;
223
- Logref;
224
- constructor(opts) {
225
- super({
226
- name: "LimitExceededException",
227
- $fault: "client",
228
- ...opts,
229
- });
230
- Object.setPrototypeOf(this, LimitExceededException.prototype);
231
- this.Message = opts.Message;
232
- this.Code = opts.Code;
233
- this.Logref = opts.Logref;
234
- }
235
- };
236
- exports.ResourceInUseException = class ResourceInUseException extends __BaseException {
237
- name = "ResourceInUseException";
238
- $fault = "client";
239
- Message;
240
- Code;
241
- Logref;
242
- constructor(opts) {
243
- super({
244
- name: "ResourceInUseException",
245
- $fault: "client",
246
- ...opts,
247
- });
248
- Object.setPrototypeOf(this, ResourceInUseException.prototype);
249
- this.Message = opts.Message;
250
- this.Code = opts.Code;
251
- this.Logref = opts.Logref;
252
- }
253
- };
254
- exports.ResourceAlreadyExistsException = class ResourceAlreadyExistsException extends __BaseException {
255
- name = "ResourceAlreadyExistsException";
256
- $fault = "client";
257
- Message;
258
- Code;
259
- Logref;
260
- constructor(opts) {
261
- super({
262
- name: "ResourceAlreadyExistsException",
263
- $fault: "client",
264
- ...opts,
265
- });
266
- Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
267
- this.Message = opts.Message;
268
- this.Code = opts.Code;
269
- this.Logref = opts.Logref;
270
- }
271
- };
272
- exports.InvalidPolicyRevisionIdException = class InvalidPolicyRevisionIdException extends __BaseException {
273
- name = "InvalidPolicyRevisionIdException";
274
- $fault = "client";
275
- Message;
276
- Code;
277
- Logref;
278
- constructor(opts) {
279
- super({
280
- name: "InvalidPolicyRevisionIdException",
281
- $fault: "client",
282
- ...opts,
283
- });
284
- Object.setPrototypeOf(this, InvalidPolicyRevisionIdException.prototype);
285
- this.Message = opts.Message;
286
- this.Code = opts.Code;
287
- this.Logref = opts.Logref;
288
- }
289
- };
290
- exports.InvalidPaginationTokenException = class InvalidPaginationTokenException extends __BaseException {
291
- name = "InvalidPaginationTokenException";
292
- $fault = "client";
293
- Message;
294
- Code;
295
- Logref;
296
- constructor(opts) {
297
- super({
298
- name: "InvalidPaginationTokenException",
299
- $fault: "client",
300
- ...opts,
301
- });
302
- Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
303
- this.Message = opts.Message;
304
- this.Code = opts.Code;
305
- this.Logref = opts.Logref;
306
- }
307
- };
308
- exports.ResourceNotReadyException = class ResourceNotReadyException extends __BaseException {
309
- name = "ResourceNotReadyException";
310
- $fault = "client";
311
- Message;
312
- Code;
313
- Logref;
314
- constructor(opts) {
315
- super({
316
- name: "ResourceNotReadyException",
317
- $fault: "client",
318
- ...opts,
319
- });
320
- Object.setPrototypeOf(this, ResourceNotReadyException.prototype);
321
- this.Message = opts.Message;
322
- this.Code = opts.Code;
323
- this.Logref = opts.Logref;
324
- }
325
- };
326
- exports.HumanLoopQuotaExceededException = class HumanLoopQuotaExceededException extends __BaseException {
327
- name = "HumanLoopQuotaExceededException";
328
- $fault = "client";
329
- ResourceType;
330
- QuotaCode;
331
- ServiceCode;
332
- Message;
333
- Code;
334
- Logref;
335
- constructor(opts) {
336
- super({
337
- name: "HumanLoopQuotaExceededException",
338
- $fault: "client",
339
- ...opts,
340
- });
341
- Object.setPrototypeOf(this, HumanLoopQuotaExceededException.prototype);
342
- this.ResourceType = opts.ResourceType;
343
- this.QuotaCode = opts.QuotaCode;
344
- this.ServiceCode = opts.ServiceCode;
345
- this.Message = opts.Message;
346
- this.Code = opts.Code;
347
- this.Logref = opts.Logref;
348
- }
349
- };
350
- exports.SessionNotFoundException = class SessionNotFoundException extends __BaseException {
351
- name = "SessionNotFoundException";
352
- $fault = "client";
353
- Message;
354
- Code;
355
- Logref;
356
- constructor(opts) {
357
- super({
358
- name: "SessionNotFoundException",
359
- $fault: "client",
360
- ...opts,
361
- });
362
- Object.setPrototypeOf(this, SessionNotFoundException.prototype);
363
- this.Message = opts.Message;
364
- this.Code = opts.Code;
365
- this.Logref = opts.Logref;
366
- }
367
- };
368
- exports.InvalidManifestException = class InvalidManifestException extends __BaseException {
369
- name = "InvalidManifestException";
370
- $fault = "client";
371
- Message;
372
- Code;
373
- Logref;
374
- constructor(opts) {
375
- super({
376
- name: "InvalidManifestException",
377
- $fault: "client",
378
- ...opts,
379
- });
380
- Object.setPrototypeOf(this, InvalidManifestException.prototype);
381
- this.Message = opts.Message;
382
- this.Code = opts.Code;
383
- this.Logref = opts.Logref;
384
- }
385
- };
386
- exports.MalformedPolicyDocumentException = class MalformedPolicyDocumentException extends __BaseException {
387
- name = "MalformedPolicyDocumentException";
388
- $fault = "client";
389
- Message;
390
- Code;
391
- Logref;
392
- constructor(opts) {
393
- super({
394
- name: "MalformedPolicyDocumentException",
395
- $fault: "client",
396
- ...opts,
397
- });
398
- Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
399
- this.Message = opts.Message;
400
- this.Code = opts.Code;
401
- this.Logref = opts.Logref;
402
- }
403
- };
404
- exports.VideoTooLargeException = class VideoTooLargeException extends __BaseException {
405
- name = "VideoTooLargeException";
406
- $fault = "client";
407
- Message;
408
- Code;
409
- Logref;
410
- constructor(opts) {
411
- super({
412
- name: "VideoTooLargeException",
413
- $fault: "client",
414
- ...opts,
415
- });
416
- Object.setPrototypeOf(this, VideoTooLargeException.prototype);
417
- this.Message = opts.Message;
418
- this.Code = opts.Code;
419
- this.Logref = opts.Logref;
420
- }
421
- };
@@ -1,32 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { Sha256 } = require("@aws-crypto/sha256-browser");
3
- const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
- const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
- const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
- const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
- const { calculateBodyLength } = require("@smithy/core/serde");
8
- const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
10
- const getRuntimeConfig = (config) => {
11
- const defaultsMode = resolveDefaultsModeConfig(config);
12
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
- const clientSharedValues = getSharedRuntimeConfig(config);
14
- return {
15
- ...clientSharedValues,
16
- ...config,
17
- runtime: "browser",
18
- defaultsMode,
19
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
20
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
21
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
- region: config?.region ?? invalidProvider("Region is missing"),
24
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
- streamCollector: config?.streamCollector ?? streamCollector,
28
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
30
- };
31
- };
32
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,45 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
- const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
- const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
- const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
- const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
- const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
8
- const { calculateBodyLength, Hash } = require("@smithy/core/serde");
9
- const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
10
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
11
- const getRuntimeConfig = (config) => {
12
- emitWarningIfUnsupportedVersion(process.version);
13
- const defaultsMode = resolveDefaultsModeConfig(config);
14
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
- const clientSharedValues = getSharedRuntimeConfig(config);
16
- awsCheckVersion(process.version);
17
- const loaderConfig = {
18
- profile: config?.profile,
19
- logger: clientSharedValues.logger,
20
- };
21
- return {
22
- ...clientSharedValues,
23
- ...config,
24
- runtime: "node",
25
- defaultsMode,
26
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
33
- retryMode: config?.retryMode ??
34
- loadNodeConfig({
35
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
- }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
- streamCollector: config?.streamCollector ?? streamCollector,
40
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
43
- };
44
- };
45
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,12 +0,0 @@
1
- const { Sha256 } = require("@aws-crypto/sha256-js");
2
- const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
3
- const getRuntimeConfig = (config) => {
4
- const browserDefaults = getBrowserRuntimeConfig(config);
5
- return {
6
- ...browserDefaults,
7
- ...config,
8
- runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
- };
11
- };
12
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,38 +0,0 @@
1
- const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
3
- const { NoOpLogger } = require("@smithy/core/client");
4
- const { parseUrl } = require("@smithy/core/protocols");
5
- const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
6
- const { defaultRekognitionHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
- const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
- const { errorTypeRegistries } = require("./schemas/schemas_0");
9
- exports.getRuntimeConfig = (config) => {
10
- return {
11
- apiVersion: "2016-06-27",
12
- base64Decoder: config?.base64Decoder ?? fromBase64,
13
- base64Encoder: config?.base64Encoder ?? toBase64,
14
- disableHostPrefix: config?.disableHostPrefix ?? false,
15
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
16
- extensions: config?.extensions ?? [],
17
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRekognitionHttpAuthSchemeProvider,
18
- httpAuthSchemes: config?.httpAuthSchemes ?? [
19
- {
20
- schemeId: "aws.auth#sigv4",
21
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
- signer: new AwsSdkSigV4Signer(),
23
- },
24
- ],
25
- logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? AwsJson1_1Protocol,
27
- protocolSettings: config?.protocolSettings ?? {
28
- defaultNamespace: "com.amazonaws.rekognition",
29
- errorTypeRegistries,
30
- version: "2016-06-27",
31
- serviceTarget: "RekognitionService",
32
- },
33
- serviceId: config?.serviceId ?? "Rekognition",
34
- urlParser: config?.urlParser ?? parseUrl,
35
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
37
- };
38
- };