@aws-sdk/client-rekognition 3.350.0 → 3.352.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 +98 -7
- package/dist-cjs/Rekognition.js +14 -0
- package/dist-cjs/commands/AssociateFacesCommand.js +46 -0
- package/dist-cjs/commands/CreateUserCommand.js +46 -0
- package/dist-cjs/commands/DeleteUserCommand.js +46 -0
- package/dist-cjs/commands/DisassociateFacesCommand.js +46 -0
- package/dist-cjs/commands/ListUsersCommand.js +46 -0
- package/dist-cjs/commands/SearchUsersByImageCommand.js +46 -0
- package/dist-cjs/commands/SearchUsersCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +159 -130
- package/dist-cjs/models/models_1.js +18 -1
- package/dist-cjs/pagination/ListUsersPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +565 -4
- package/dist-es/Rekognition.js +14 -0
- package/dist-es/commands/AssociateFacesCommand.js +42 -0
- package/dist-es/commands/CreateUserCommand.js +42 -0
- package/dist-es/commands/DeleteUserCommand.js +42 -0
- package/dist-es/commands/DisassociateFacesCommand.js +42 -0
- package/dist-es/commands/ListUsersCommand.js +42 -0
- package/dist-es/commands/SearchUsersByImageCommand.js +42 -0
- package/dist-es/commands/SearchUsersCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +149 -120
- package/dist-es/models/models_1.js +16 -0
- package/dist-es/pagination/ListUsersPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +548 -1
- package/dist-types/Rekognition.d.ts +84 -0
- package/dist-types/RekognitionClient.d.ts +44 -2
- package/dist-types/commands/AssociateFacesCommand.d.ts +203 -0
- package/dist-types/commands/CreateUserCommand.d.ts +126 -0
- package/dist-types/commands/DeleteFacesCommand.d.ts +9 -0
- package/dist-types/commands/DeleteUserCommand.d.ts +119 -0
- package/dist-types/commands/DescribeCollectionCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateFacesCommand.d.ts +164 -0
- package/dist-types/commands/GetFaceSearchCommand.d.ts +1 -0
- package/dist-types/commands/IndexFacesCommand.d.ts +1 -0
- package/dist-types/commands/ListFacesCommand.d.ts +5 -0
- package/dist-types/commands/ListUsersCommand.d.ts +134 -0
- package/dist-types/commands/SearchFacesByImageCommand.d.ts +1 -0
- package/dist-types/commands/SearchFacesCommand.d.ts +1 -0
- package/dist-types/commands/SearchUsersByImageCommand.d.ts +366 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +148 -0
- package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +2 -1
- package/dist-types/commands/StartContentModerationCommand.d.ts +1 -1
- package/dist-types/commands/StartFaceDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartFaceSearchCommand.d.ts +1 -1
- package/dist-types/commands/StartLabelDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartPersonTrackingCommand.d.ts +1 -1
- package/dist-types/commands/StartProjectVersionCommand.d.ts +1 -1
- package/dist-types/commands/StartSegmentDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/StartTextDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StopProjectVersionCommand.d.ts +1 -1
- package/dist-types/commands/StopStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/index.d.ts +35 -0
- package/dist-types/models/models_0.d.ts +668 -604
- package/dist-types/models/models_1.d.ts +562 -1
- package/dist-types/pagination/ListUsersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
- package/dist-types/ts3.4/Rekognition.d.ts +119 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/AssociateFacesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DisassociateFacesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/SearchUsersByImageCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StartCelebrityRecognitionCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/StartContentModerationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartFaceDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartFaceSearchCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartLabelDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartPersonTrackingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartProjectVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartSegmentDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartStreamProcessorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartTextDetectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopProjectVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopStreamProcessorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +236 -206
- package/dist-types/ts3.4/models/models_1.d.ts +150 -0
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
- package/package.json +8 -6
|
@@ -15,6 +15,137 @@ export class AccessDeniedException extends __BaseException {
|
|
|
15
15
|
this.Logref = opts.Logref;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
export const UnsuccessfulFaceAssociationReason = {
|
|
19
|
+
ASSOCIATED_TO_A_DIFFERENT_USER: "ASSOCIATED_TO_A_DIFFERENT_USER",
|
|
20
|
+
FACE_NOT_FOUND: "FACE_NOT_FOUND",
|
|
21
|
+
LOW_MATCH_CONFIDENCE: "LOW_MATCH_CONFIDENCE",
|
|
22
|
+
};
|
|
23
|
+
export const UserStatus = {
|
|
24
|
+
ACTIVE: "ACTIVE",
|
|
25
|
+
CREATED: "CREATED",
|
|
26
|
+
CREATING: "CREATING",
|
|
27
|
+
UPDATING: "UPDATING",
|
|
28
|
+
};
|
|
29
|
+
export class ConflictException extends __BaseException {
|
|
30
|
+
constructor(opts) {
|
|
31
|
+
super({
|
|
32
|
+
name: "ConflictException",
|
|
33
|
+
$fault: "client",
|
|
34
|
+
...opts,
|
|
35
|
+
});
|
|
36
|
+
this.name = "ConflictException";
|
|
37
|
+
this.$fault = "client";
|
|
38
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
39
|
+
this.Message = opts.Message;
|
|
40
|
+
this.Code = opts.Code;
|
|
41
|
+
this.Logref = opts.Logref;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export class IdempotentParameterMismatchException extends __BaseException {
|
|
45
|
+
constructor(opts) {
|
|
46
|
+
super({
|
|
47
|
+
name: "IdempotentParameterMismatchException",
|
|
48
|
+
$fault: "client",
|
|
49
|
+
...opts,
|
|
50
|
+
});
|
|
51
|
+
this.name = "IdempotentParameterMismatchException";
|
|
52
|
+
this.$fault = "client";
|
|
53
|
+
Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
|
|
54
|
+
this.Message = opts.Message;
|
|
55
|
+
this.Code = opts.Code;
|
|
56
|
+
this.Logref = opts.Logref;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export class InternalServerError extends __BaseException {
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "InternalServerError",
|
|
63
|
+
$fault: "server",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
this.name = "InternalServerError";
|
|
67
|
+
this.$fault = "server";
|
|
68
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
69
|
+
this.Message = opts.Message;
|
|
70
|
+
this.Code = opts.Code;
|
|
71
|
+
this.Logref = opts.Logref;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class InvalidParameterException extends __BaseException {
|
|
75
|
+
constructor(opts) {
|
|
76
|
+
super({
|
|
77
|
+
name: "InvalidParameterException",
|
|
78
|
+
$fault: "client",
|
|
79
|
+
...opts,
|
|
80
|
+
});
|
|
81
|
+
this.name = "InvalidParameterException";
|
|
82
|
+
this.$fault = "client";
|
|
83
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
84
|
+
this.Message = opts.Message;
|
|
85
|
+
this.Code = opts.Code;
|
|
86
|
+
this.Logref = opts.Logref;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export class ProvisionedThroughputExceededException extends __BaseException {
|
|
90
|
+
constructor(opts) {
|
|
91
|
+
super({
|
|
92
|
+
name: "ProvisionedThroughputExceededException",
|
|
93
|
+
$fault: "client",
|
|
94
|
+
...opts,
|
|
95
|
+
});
|
|
96
|
+
this.name = "ProvisionedThroughputExceededException";
|
|
97
|
+
this.$fault = "client";
|
|
98
|
+
Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
|
|
99
|
+
this.Message = opts.Message;
|
|
100
|
+
this.Code = opts.Code;
|
|
101
|
+
this.Logref = opts.Logref;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super({
|
|
107
|
+
name: "ResourceNotFoundException",
|
|
108
|
+
$fault: "client",
|
|
109
|
+
...opts,
|
|
110
|
+
});
|
|
111
|
+
this.name = "ResourceNotFoundException";
|
|
112
|
+
this.$fault = "client";
|
|
113
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
114
|
+
this.Message = opts.Message;
|
|
115
|
+
this.Code = opts.Code;
|
|
116
|
+
this.Logref = opts.Logref;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
120
|
+
constructor(opts) {
|
|
121
|
+
super({
|
|
122
|
+
name: "ServiceQuotaExceededException",
|
|
123
|
+
$fault: "client",
|
|
124
|
+
...opts,
|
|
125
|
+
});
|
|
126
|
+
this.name = "ServiceQuotaExceededException";
|
|
127
|
+
this.$fault = "client";
|
|
128
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
129
|
+
this.Message = opts.Message;
|
|
130
|
+
this.Code = opts.Code;
|
|
131
|
+
this.Logref = opts.Logref;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export class ThrottlingException extends __BaseException {
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "ThrottlingException",
|
|
138
|
+
$fault: "server",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
this.name = "ThrottlingException";
|
|
142
|
+
this.$fault = "server";
|
|
143
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
144
|
+
this.Message = opts.Message;
|
|
145
|
+
this.Code = opts.Code;
|
|
146
|
+
this.Logref = opts.Logref;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
18
149
|
export const Attribute = {
|
|
19
150
|
AGE_RANGE: "AGE_RANGE",
|
|
20
151
|
ALL: "ALL",
|
|
@@ -127,21 +258,6 @@ export class ImageTooLargeException extends __BaseException {
|
|
|
127
258
|
this.Logref = opts.Logref;
|
|
128
259
|
}
|
|
129
260
|
}
|
|
130
|
-
export class InternalServerError extends __BaseException {
|
|
131
|
-
constructor(opts) {
|
|
132
|
-
super({
|
|
133
|
-
name: "InternalServerError",
|
|
134
|
-
$fault: "server",
|
|
135
|
-
...opts,
|
|
136
|
-
});
|
|
137
|
-
this.name = "InternalServerError";
|
|
138
|
-
this.$fault = "server";
|
|
139
|
-
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
140
|
-
this.Message = opts.Message;
|
|
141
|
-
this.Code = opts.Code;
|
|
142
|
-
this.Logref = opts.Logref;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
261
|
export class InvalidImageFormatException extends __BaseException {
|
|
146
262
|
constructor(opts) {
|
|
147
263
|
super({
|
|
@@ -157,21 +273,6 @@ export class InvalidImageFormatException extends __BaseException {
|
|
|
157
273
|
this.Logref = opts.Logref;
|
|
158
274
|
}
|
|
159
275
|
}
|
|
160
|
-
export class InvalidParameterException extends __BaseException {
|
|
161
|
-
constructor(opts) {
|
|
162
|
-
super({
|
|
163
|
-
name: "InvalidParameterException",
|
|
164
|
-
$fault: "client",
|
|
165
|
-
...opts,
|
|
166
|
-
});
|
|
167
|
-
this.name = "InvalidParameterException";
|
|
168
|
-
this.$fault = "client";
|
|
169
|
-
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
170
|
-
this.Message = opts.Message;
|
|
171
|
-
this.Code = opts.Code;
|
|
172
|
-
this.Logref = opts.Logref;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
276
|
export class InvalidS3ObjectException extends __BaseException {
|
|
176
277
|
constructor(opts) {
|
|
177
278
|
super({
|
|
@@ -187,36 +288,6 @@ export class InvalidS3ObjectException extends __BaseException {
|
|
|
187
288
|
this.Logref = opts.Logref;
|
|
188
289
|
}
|
|
189
290
|
}
|
|
190
|
-
export class ProvisionedThroughputExceededException extends __BaseException {
|
|
191
|
-
constructor(opts) {
|
|
192
|
-
super({
|
|
193
|
-
name: "ProvisionedThroughputExceededException",
|
|
194
|
-
$fault: "client",
|
|
195
|
-
...opts,
|
|
196
|
-
});
|
|
197
|
-
this.name = "ProvisionedThroughputExceededException";
|
|
198
|
-
this.$fault = "client";
|
|
199
|
-
Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
|
|
200
|
-
this.Message = opts.Message;
|
|
201
|
-
this.Code = opts.Code;
|
|
202
|
-
this.Logref = opts.Logref;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
export class ThrottlingException extends __BaseException {
|
|
206
|
-
constructor(opts) {
|
|
207
|
-
super({
|
|
208
|
-
name: "ThrottlingException",
|
|
209
|
-
$fault: "server",
|
|
210
|
-
...opts,
|
|
211
|
-
});
|
|
212
|
-
this.name = "ThrottlingException";
|
|
213
|
-
this.$fault = "server";
|
|
214
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
215
|
-
this.Message = opts.Message;
|
|
216
|
-
this.Code = opts.Code;
|
|
217
|
-
this.Logref = opts.Logref;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
291
|
export const ContentClassifier = {
|
|
221
292
|
FREE_OF_ADULT_CONTENT: "FreeOfAdultContent",
|
|
222
293
|
FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation",
|
|
@@ -259,36 +330,6 @@ export class ResourceInUseException extends __BaseException {
|
|
|
259
330
|
this.Logref = opts.Logref;
|
|
260
331
|
}
|
|
261
332
|
}
|
|
262
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
263
|
-
constructor(opts) {
|
|
264
|
-
super({
|
|
265
|
-
name: "ResourceNotFoundException",
|
|
266
|
-
$fault: "client",
|
|
267
|
-
...opts,
|
|
268
|
-
});
|
|
269
|
-
this.name = "ResourceNotFoundException";
|
|
270
|
-
this.$fault = "client";
|
|
271
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
272
|
-
this.Message = opts.Message;
|
|
273
|
-
this.Code = opts.Code;
|
|
274
|
-
this.Logref = opts.Logref;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
278
|
-
constructor(opts) {
|
|
279
|
-
super({
|
|
280
|
-
name: "ServiceQuotaExceededException",
|
|
281
|
-
$fault: "client",
|
|
282
|
-
...opts,
|
|
283
|
-
});
|
|
284
|
-
this.name = "ServiceQuotaExceededException";
|
|
285
|
-
this.$fault = "client";
|
|
286
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
287
|
-
this.Message = opts.Message;
|
|
288
|
-
this.Code = opts.Code;
|
|
289
|
-
this.Logref = opts.Logref;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
333
|
export class ResourceAlreadyExistsException extends __BaseException {
|
|
293
334
|
constructor(opts) {
|
|
294
335
|
super({
|
|
@@ -322,6 +363,10 @@ export const DatasetStatusMessageCode = {
|
|
|
322
363
|
SERVICE_ERROR: "SERVICE_ERROR",
|
|
323
364
|
SUCCESS: "SUCCESS",
|
|
324
365
|
};
|
|
366
|
+
export const UnsuccessfulFaceDeletionReason = {
|
|
367
|
+
ASSOCIATED_TO_AN_EXISTING_USER: "ASSOCIATED_TO_AN_EXISTING_USER",
|
|
368
|
+
FACE_NOT_FOUND: "FACE_NOT_FOUND",
|
|
369
|
+
};
|
|
325
370
|
export const ProjectStatus = {
|
|
326
371
|
CREATED: "CREATED",
|
|
327
372
|
CREATING: "CREATING",
|
|
@@ -420,6 +465,10 @@ export const TextTypes = {
|
|
|
420
465
|
LINE: "LINE",
|
|
421
466
|
WORD: "WORD",
|
|
422
467
|
};
|
|
468
|
+
export const UnsuccessfulFaceDisassociationReason = {
|
|
469
|
+
ASSOCIATED_TO_A_DIFFERENT_USER: "ASSOCIATED_TO_A_DIFFERENT_USER",
|
|
470
|
+
FACE_NOT_FOUND: "FACE_NOT_FOUND",
|
|
471
|
+
};
|
|
423
472
|
export const FaceAttributes = {
|
|
424
473
|
ALL: "ALL",
|
|
425
474
|
DEFAULT: "DEFAULT",
|
|
@@ -484,21 +533,6 @@ export const SegmentType = {
|
|
|
484
533
|
SHOT: "SHOT",
|
|
485
534
|
TECHNICAL_CUE: "TECHNICAL_CUE",
|
|
486
535
|
};
|
|
487
|
-
export class IdempotentParameterMismatchException extends __BaseException {
|
|
488
|
-
constructor(opts) {
|
|
489
|
-
super({
|
|
490
|
-
name: "IdempotentParameterMismatchException",
|
|
491
|
-
$fault: "client",
|
|
492
|
-
...opts,
|
|
493
|
-
});
|
|
494
|
-
this.name = "IdempotentParameterMismatchException";
|
|
495
|
-
this.$fault = "client";
|
|
496
|
-
Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
|
|
497
|
-
this.Message = opts.Message;
|
|
498
|
-
this.Code = opts.Code;
|
|
499
|
-
this.Logref = opts.Logref;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
536
|
export const Reason = {
|
|
503
537
|
EXCEEDS_MAX_FACES: "EXCEEDS_MAX_FACES",
|
|
504
538
|
EXTREME_POSE: "EXTREME_POSE",
|
|
@@ -526,21 +560,16 @@ export class MalformedPolicyDocumentException extends __BaseException {
|
|
|
526
560
|
this.Logref = opts.Logref;
|
|
527
561
|
}
|
|
528
562
|
}
|
|
529
|
-
export
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
this.Message = opts.Message;
|
|
540
|
-
this.Code = opts.Code;
|
|
541
|
-
this.Logref = opts.Logref;
|
|
542
|
-
}
|
|
543
|
-
}
|
|
563
|
+
export const UnsearchedFaceReason = {
|
|
564
|
+
EXCEEDS_MAX_FACES: "EXCEEDS_MAX_FACES",
|
|
565
|
+
EXTREME_POSE: "EXTREME_POSE",
|
|
566
|
+
FACE_NOT_LARGEST: "FACE_NOT_LARGEST",
|
|
567
|
+
LOW_BRIGHTNESS: "LOW_BRIGHTNESS",
|
|
568
|
+
LOW_CONFIDENCE: "LOW_CONFIDENCE",
|
|
569
|
+
LOW_FACE_QUALITY: "LOW_FACE_QUALITY",
|
|
570
|
+
LOW_SHARPNESS: "LOW_SHARPNESS",
|
|
571
|
+
SMALL_BOUNDING_BOX: "SMALL_BOUNDING_BOX",
|
|
572
|
+
};
|
|
544
573
|
export const AuditImageFilterSensitiveLog = (obj) => ({
|
|
545
574
|
...obj,
|
|
546
575
|
...(obj.Bytes && { Bytes: SENSITIVE_STRING }),
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException";
|
|
2
|
+
export class VideoTooLargeException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "VideoTooLargeException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "VideoTooLargeException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, VideoTooLargeException.prototype);
|
|
12
|
+
this.Message = opts.Message;
|
|
13
|
+
this.Code = opts.Code;
|
|
14
|
+
this.Logref = opts.Logref;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
1
17
|
export const StreamProcessorParameterToDelete = {
|
|
2
18
|
ConnectedHomeMinConfidence: "ConnectedHomeMinConfidence",
|
|
3
19
|
RegionsOfInterest: "RegionsOfInterest",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListUsersCommand } from "../commands/ListUsersCommand";
|
|
2
|
+
import { RekognitionClient } from "../RekognitionClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListUsersCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListUsers(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof RekognitionClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Rekognition | RekognitionClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|