@aws-sdk/client-rekognition 3.350.0 → 3.351.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.
Files changed (94) hide show
  1. package/README.md +98 -7
  2. package/dist-cjs/Rekognition.js +14 -0
  3. package/dist-cjs/commands/AssociateFacesCommand.js +46 -0
  4. package/dist-cjs/commands/CreateUserCommand.js +46 -0
  5. package/dist-cjs/commands/DeleteUserCommand.js +46 -0
  6. package/dist-cjs/commands/DisassociateFacesCommand.js +46 -0
  7. package/dist-cjs/commands/ListUsersCommand.js +46 -0
  8. package/dist-cjs/commands/SearchUsersByImageCommand.js +46 -0
  9. package/dist-cjs/commands/SearchUsersCommand.js +46 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +159 -130
  12. package/dist-cjs/models/models_1.js +18 -1
  13. package/dist-cjs/pagination/ListUsersPaginator.js +29 -0
  14. package/dist-cjs/pagination/index.js +1 -0
  15. package/dist-cjs/protocols/Aws_json1_1.js +565 -4
  16. package/dist-es/Rekognition.js +14 -0
  17. package/dist-es/commands/AssociateFacesCommand.js +42 -0
  18. package/dist-es/commands/CreateUserCommand.js +42 -0
  19. package/dist-es/commands/DeleteUserCommand.js +42 -0
  20. package/dist-es/commands/DisassociateFacesCommand.js +42 -0
  21. package/dist-es/commands/ListUsersCommand.js +42 -0
  22. package/dist-es/commands/SearchUsersByImageCommand.js +42 -0
  23. package/dist-es/commands/SearchUsersCommand.js +42 -0
  24. package/dist-es/commands/index.js +7 -0
  25. package/dist-es/models/models_0.js +149 -120
  26. package/dist-es/models/models_1.js +16 -0
  27. package/dist-es/pagination/ListUsersPaginator.js +25 -0
  28. package/dist-es/pagination/index.js +1 -0
  29. package/dist-es/protocols/Aws_json1_1.js +548 -1
  30. package/dist-types/Rekognition.d.ts +84 -0
  31. package/dist-types/RekognitionClient.d.ts +44 -2
  32. package/dist-types/commands/AssociateFacesCommand.d.ts +158 -0
  33. package/dist-types/commands/CreateUserCommand.d.ts +114 -0
  34. package/dist-types/commands/DeleteFacesCommand.d.ts +9 -0
  35. package/dist-types/commands/DeleteUserCommand.d.ts +106 -0
  36. package/dist-types/commands/DescribeCollectionCommand.d.ts +1 -0
  37. package/dist-types/commands/DisassociateFacesCommand.d.ts +128 -0
  38. package/dist-types/commands/GetFaceSearchCommand.d.ts +1 -0
  39. package/dist-types/commands/IndexFacesCommand.d.ts +1 -0
  40. package/dist-types/commands/ListFacesCommand.d.ts +5 -0
  41. package/dist-types/commands/ListUsersCommand.d.ts +108 -0
  42. package/dist-types/commands/SearchFacesByImageCommand.d.ts +1 -0
  43. package/dist-types/commands/SearchFacesCommand.d.ts +1 -0
  44. package/dist-types/commands/SearchUsersByImageCommand.d.ts +294 -0
  45. package/dist-types/commands/SearchUsersCommand.d.ts +117 -0
  46. package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +2 -1
  47. package/dist-types/commands/StartContentModerationCommand.d.ts +1 -1
  48. package/dist-types/commands/StartFaceDetectionCommand.d.ts +1 -1
  49. package/dist-types/commands/StartFaceSearchCommand.d.ts +1 -1
  50. package/dist-types/commands/StartLabelDetectionCommand.d.ts +1 -1
  51. package/dist-types/commands/StartPersonTrackingCommand.d.ts +1 -1
  52. package/dist-types/commands/StartProjectVersionCommand.d.ts +1 -1
  53. package/dist-types/commands/StartSegmentDetectionCommand.d.ts +1 -1
  54. package/dist-types/commands/StartStreamProcessorCommand.d.ts +1 -1
  55. package/dist-types/commands/StartTextDetectionCommand.d.ts +1 -1
  56. package/dist-types/commands/StopProjectVersionCommand.d.ts +1 -1
  57. package/dist-types/commands/StopStreamProcessorCommand.d.ts +1 -1
  58. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  59. package/dist-types/commands/index.d.ts +7 -0
  60. package/dist-types/index.d.ts +35 -0
  61. package/dist-types/models/models_0.d.ts +668 -604
  62. package/dist-types/models/models_1.d.ts +562 -1
  63. package/dist-types/pagination/ListUsersPaginator.d.ts +7 -0
  64. package/dist-types/pagination/index.d.ts +1 -0
  65. package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
  66. package/dist-types/ts3.4/Rekognition.d.ts +119 -0
  67. package/dist-types/ts3.4/RekognitionClient.d.ts +42 -0
  68. package/dist-types/ts3.4/commands/AssociateFacesCommand.d.ts +38 -0
  69. package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +35 -0
  70. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +35 -0
  71. package/dist-types/ts3.4/commands/DisassociateFacesCommand.d.ts +39 -0
  72. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +35 -0
  73. package/dist-types/ts3.4/commands/SearchUsersByImageCommand.d.ts +39 -0
  74. package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +35 -0
  75. package/dist-types/ts3.4/commands/StartCelebrityRecognitionCommand.d.ts +2 -4
  76. package/dist-types/ts3.4/commands/StartContentModerationCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/StartFaceDetectionCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/StartFaceSearchCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/StartLabelDetectionCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/StartPersonTrackingCommand.d.ts +1 -1
  81. package/dist-types/ts3.4/commands/StartProjectVersionCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/StartSegmentDetectionCommand.d.ts +1 -1
  83. package/dist-types/ts3.4/commands/StartStreamProcessorCommand.d.ts +1 -1
  84. package/dist-types/ts3.4/commands/StartTextDetectionCommand.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/StopProjectVersionCommand.d.ts +1 -1
  86. package/dist-types/ts3.4/commands/StopStreamProcessorCommand.d.ts +1 -1
  87. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  89. package/dist-types/ts3.4/models/models_0.d.ts +236 -206
  90. package/dist-types/ts3.4/models/models_1.d.ts +150 -0
  91. package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +11 -0
  92. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  93. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
  94. package/package.json +4 -2
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./AssociateFacesCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CompareFacesCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CopyProjectVersionCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateCollectionCommand"), exports);
@@ -9,6 +10,7 @@ tslib_1.__exportStar(require("./CreateFaceLivenessSessionCommand"), exports);
9
10
  tslib_1.__exportStar(require("./CreateProjectCommand"), exports);
10
11
  tslib_1.__exportStar(require("./CreateProjectVersionCommand"), exports);
11
12
  tslib_1.__exportStar(require("./CreateStreamProcessorCommand"), exports);
13
+ tslib_1.__exportStar(require("./CreateUserCommand"), exports);
12
14
  tslib_1.__exportStar(require("./DeleteCollectionCommand"), exports);
13
15
  tslib_1.__exportStar(require("./DeleteDatasetCommand"), exports);
14
16
  tslib_1.__exportStar(require("./DeleteFacesCommand"), exports);
@@ -16,6 +18,7 @@ tslib_1.__exportStar(require("./DeleteProjectCommand"), exports);
16
18
  tslib_1.__exportStar(require("./DeleteProjectPolicyCommand"), exports);
17
19
  tslib_1.__exportStar(require("./DeleteProjectVersionCommand"), exports);
18
20
  tslib_1.__exportStar(require("./DeleteStreamProcessorCommand"), exports);
21
+ tslib_1.__exportStar(require("./DeleteUserCommand"), exports);
19
22
  tslib_1.__exportStar(require("./DescribeCollectionCommand"), exports);
20
23
  tslib_1.__exportStar(require("./DescribeDatasetCommand"), exports);
21
24
  tslib_1.__exportStar(require("./DescribeProjectVersionsCommand"), exports);
@@ -27,6 +30,7 @@ tslib_1.__exportStar(require("./DetectLabelsCommand"), exports);
27
30
  tslib_1.__exportStar(require("./DetectModerationLabelsCommand"), exports);
28
31
  tslib_1.__exportStar(require("./DetectProtectiveEquipmentCommand"), exports);
29
32
  tslib_1.__exportStar(require("./DetectTextCommand"), exports);
33
+ tslib_1.__exportStar(require("./DisassociateFacesCommand"), exports);
30
34
  tslib_1.__exportStar(require("./DistributeDatasetEntriesCommand"), exports);
31
35
  tslib_1.__exportStar(require("./GetCelebrityInfoCommand"), exports);
32
36
  tslib_1.__exportStar(require("./GetCelebrityRecognitionCommand"), exports);
@@ -46,10 +50,13 @@ tslib_1.__exportStar(require("./ListFacesCommand"), exports);
46
50
  tslib_1.__exportStar(require("./ListProjectPoliciesCommand"), exports);
47
51
  tslib_1.__exportStar(require("./ListStreamProcessorsCommand"), exports);
48
52
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
53
+ tslib_1.__exportStar(require("./ListUsersCommand"), exports);
49
54
  tslib_1.__exportStar(require("./PutProjectPolicyCommand"), exports);
50
55
  tslib_1.__exportStar(require("./RecognizeCelebritiesCommand"), exports);
51
56
  tslib_1.__exportStar(require("./SearchFacesByImageCommand"), exports);
52
57
  tslib_1.__exportStar(require("./SearchFacesCommand"), exports);
58
+ tslib_1.__exportStar(require("./SearchUsersByImageCommand"), exports);
59
+ tslib_1.__exportStar(require("./SearchUsersCommand"), exports);
53
60
  tslib_1.__exportStar(require("./StartCelebrityRecognitionCommand"), exports);
54
61
  tslib_1.__exportStar(require("./StartContentModerationCommand"), exports);
55
62
  tslib_1.__exportStar(require("./StartFaceDetectionCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IdempotentParameterMismatchException = exports.SegmentType = exports.TechnicalCueType = exports.PersonTrackingSortBy = exports.LabelDetectionSortBy = exports.LabelDetectionAggregateBy = exports.SessionNotFoundException = exports.LivenessSessionStatus = exports.VideoColorRange = exports.VideoJobStatus = exports.FaceSearchSortBy = exports.FaceAttributes = exports.TextTypes = exports.HumanLoopQuotaExceededException = exports.DetectLabelsFeatureName = exports.ResourceNotReadyException = exports.StreamProcessorStatus = exports.InvalidPaginationTokenException = exports.ProjectVersionStatus = exports.InvalidPolicyRevisionIdException = exports.ProjectStatus = exports.DatasetStatusMessageCode = exports.DatasetStatus = exports.DatasetType = exports.ResourceAlreadyExistsException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.LimitExceededException = exports.ContentModerationSortBy = exports.ContentModerationAggregateBy = exports.ContentClassifier = exports.ThrottlingException = exports.ProvisionedThroughputExceededException = exports.InvalidS3ObjectException = exports.InvalidParameterException = exports.InvalidImageFormatException = exports.InternalServerError = exports.ImageTooLargeException = exports.OrientationCorrection = exports.QualityFilter = exports.CelebrityRecognitionSortBy = exports.GenderType = exports.KnownGenderType = exports.LandmarkType = exports.EmotionName = exports.ProtectiveEquipmentType = exports.BodyPart = exports.Attribute = exports.AccessDeniedException = void 0;
4
- exports.GetFaceLivenessSessionResultsResponseFilterSensitiveLog = exports.AuditImageFilterSensitiveLog = exports.VideoTooLargeException = exports.MalformedPolicyDocumentException = exports.LabelDetectionFeatureName = exports.Reason = void 0;
3
+ exports.SessionNotFoundException = exports.LivenessSessionStatus = exports.VideoColorRange = exports.VideoJobStatus = exports.FaceSearchSortBy = exports.FaceAttributes = exports.UnsuccessfulFaceDisassociationReason = exports.TextTypes = exports.HumanLoopQuotaExceededException = exports.DetectLabelsFeatureName = exports.ResourceNotReadyException = exports.StreamProcessorStatus = exports.InvalidPaginationTokenException = exports.ProjectVersionStatus = exports.InvalidPolicyRevisionIdException = exports.ProjectStatus = exports.UnsuccessfulFaceDeletionReason = exports.DatasetStatusMessageCode = exports.DatasetStatus = exports.DatasetType = exports.ResourceAlreadyExistsException = exports.ResourceInUseException = exports.LimitExceededException = exports.ContentModerationSortBy = exports.ContentModerationAggregateBy = exports.ContentClassifier = exports.InvalidS3ObjectException = exports.InvalidImageFormatException = exports.ImageTooLargeException = exports.OrientationCorrection = exports.QualityFilter = exports.CelebrityRecognitionSortBy = exports.GenderType = exports.KnownGenderType = exports.LandmarkType = exports.EmotionName = exports.ProtectiveEquipmentType = exports.BodyPart = exports.Attribute = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ProvisionedThroughputExceededException = exports.InvalidParameterException = exports.InternalServerError = exports.IdempotentParameterMismatchException = exports.ConflictException = exports.UserStatus = exports.UnsuccessfulFaceAssociationReason = exports.AccessDeniedException = void 0;
4
+ exports.GetFaceLivenessSessionResultsResponseFilterSensitiveLog = exports.AuditImageFilterSensitiveLog = exports.UnsearchedFaceReason = exports.MalformedPolicyDocumentException = exports.LabelDetectionFeatureName = exports.Reason = exports.SegmentType = exports.TechnicalCueType = exports.PersonTrackingSortBy = exports.LabelDetectionSortBy = exports.LabelDetectionAggregateBy = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const RekognitionServiceException_1 = require("./RekognitionServiceException");
7
7
  class AccessDeniedException extends RekognitionServiceException_1.RekognitionServiceException {
@@ -20,6 +20,145 @@ class AccessDeniedException extends RekognitionServiceException_1.RekognitionSer
20
20
  }
21
21
  }
22
22
  exports.AccessDeniedException = AccessDeniedException;
23
+ exports.UnsuccessfulFaceAssociationReason = {
24
+ ASSOCIATED_TO_A_DIFFERENT_USER: "ASSOCIATED_TO_A_DIFFERENT_USER",
25
+ FACE_NOT_FOUND: "FACE_NOT_FOUND",
26
+ LOW_MATCH_CONFIDENCE: "LOW_MATCH_CONFIDENCE",
27
+ };
28
+ exports.UserStatus = {
29
+ ACTIVE: "ACTIVE",
30
+ CREATED: "CREATED",
31
+ CREATING: "CREATING",
32
+ UPDATING: "UPDATING",
33
+ };
34
+ class ConflictException extends RekognitionServiceException_1.RekognitionServiceException {
35
+ constructor(opts) {
36
+ super({
37
+ name: "ConflictException",
38
+ $fault: "client",
39
+ ...opts,
40
+ });
41
+ this.name = "ConflictException";
42
+ this.$fault = "client";
43
+ Object.setPrototypeOf(this, ConflictException.prototype);
44
+ this.Message = opts.Message;
45
+ this.Code = opts.Code;
46
+ this.Logref = opts.Logref;
47
+ }
48
+ }
49
+ exports.ConflictException = ConflictException;
50
+ class IdempotentParameterMismatchException extends RekognitionServiceException_1.RekognitionServiceException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "IdempotentParameterMismatchException",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ this.name = "IdempotentParameterMismatchException";
58
+ this.$fault = "client";
59
+ Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
60
+ this.Message = opts.Message;
61
+ this.Code = opts.Code;
62
+ this.Logref = opts.Logref;
63
+ }
64
+ }
65
+ exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException;
66
+ class InternalServerError extends RekognitionServiceException_1.RekognitionServiceException {
67
+ constructor(opts) {
68
+ super({
69
+ name: "InternalServerError",
70
+ $fault: "server",
71
+ ...opts,
72
+ });
73
+ this.name = "InternalServerError";
74
+ this.$fault = "server";
75
+ Object.setPrototypeOf(this, InternalServerError.prototype);
76
+ this.Message = opts.Message;
77
+ this.Code = opts.Code;
78
+ this.Logref = opts.Logref;
79
+ }
80
+ }
81
+ exports.InternalServerError = InternalServerError;
82
+ class InvalidParameterException extends RekognitionServiceException_1.RekognitionServiceException {
83
+ constructor(opts) {
84
+ super({
85
+ name: "InvalidParameterException",
86
+ $fault: "client",
87
+ ...opts,
88
+ });
89
+ this.name = "InvalidParameterException";
90
+ this.$fault = "client";
91
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
92
+ this.Message = opts.Message;
93
+ this.Code = opts.Code;
94
+ this.Logref = opts.Logref;
95
+ }
96
+ }
97
+ exports.InvalidParameterException = InvalidParameterException;
98
+ class ProvisionedThroughputExceededException extends RekognitionServiceException_1.RekognitionServiceException {
99
+ constructor(opts) {
100
+ super({
101
+ name: "ProvisionedThroughputExceededException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ this.name = "ProvisionedThroughputExceededException";
106
+ this.$fault = "client";
107
+ Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
108
+ this.Message = opts.Message;
109
+ this.Code = opts.Code;
110
+ this.Logref = opts.Logref;
111
+ }
112
+ }
113
+ exports.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException;
114
+ class ResourceNotFoundException extends RekognitionServiceException_1.RekognitionServiceException {
115
+ constructor(opts) {
116
+ super({
117
+ name: "ResourceNotFoundException",
118
+ $fault: "client",
119
+ ...opts,
120
+ });
121
+ this.name = "ResourceNotFoundException";
122
+ this.$fault = "client";
123
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
124
+ this.Message = opts.Message;
125
+ this.Code = opts.Code;
126
+ this.Logref = opts.Logref;
127
+ }
128
+ }
129
+ exports.ResourceNotFoundException = ResourceNotFoundException;
130
+ class ServiceQuotaExceededException extends RekognitionServiceException_1.RekognitionServiceException {
131
+ constructor(opts) {
132
+ super({
133
+ name: "ServiceQuotaExceededException",
134
+ $fault: "client",
135
+ ...opts,
136
+ });
137
+ this.name = "ServiceQuotaExceededException";
138
+ this.$fault = "client";
139
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
140
+ this.Message = opts.Message;
141
+ this.Code = opts.Code;
142
+ this.Logref = opts.Logref;
143
+ }
144
+ }
145
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
146
+ class ThrottlingException extends RekognitionServiceException_1.RekognitionServiceException {
147
+ constructor(opts) {
148
+ super({
149
+ name: "ThrottlingException",
150
+ $fault: "server",
151
+ ...opts,
152
+ });
153
+ this.name = "ThrottlingException";
154
+ this.$fault = "server";
155
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
156
+ this.Message = opts.Message;
157
+ this.Code = opts.Code;
158
+ this.Logref = opts.Logref;
159
+ }
160
+ }
161
+ exports.ThrottlingException = ThrottlingException;
23
162
  exports.Attribute = {
24
163
  AGE_RANGE: "AGE_RANGE",
25
164
  ALL: "ALL",
@@ -133,22 +272,6 @@ class ImageTooLargeException extends RekognitionServiceException_1.RekognitionSe
133
272
  }
134
273
  }
135
274
  exports.ImageTooLargeException = ImageTooLargeException;
136
- class InternalServerError extends RekognitionServiceException_1.RekognitionServiceException {
137
- constructor(opts) {
138
- super({
139
- name: "InternalServerError",
140
- $fault: "server",
141
- ...opts,
142
- });
143
- this.name = "InternalServerError";
144
- this.$fault = "server";
145
- Object.setPrototypeOf(this, InternalServerError.prototype);
146
- this.Message = opts.Message;
147
- this.Code = opts.Code;
148
- this.Logref = opts.Logref;
149
- }
150
- }
151
- exports.InternalServerError = InternalServerError;
152
275
  class InvalidImageFormatException extends RekognitionServiceException_1.RekognitionServiceException {
153
276
  constructor(opts) {
154
277
  super({
@@ -165,22 +288,6 @@ class InvalidImageFormatException extends RekognitionServiceException_1.Rekognit
165
288
  }
166
289
  }
167
290
  exports.InvalidImageFormatException = InvalidImageFormatException;
168
- class InvalidParameterException extends RekognitionServiceException_1.RekognitionServiceException {
169
- constructor(opts) {
170
- super({
171
- name: "InvalidParameterException",
172
- $fault: "client",
173
- ...opts,
174
- });
175
- this.name = "InvalidParameterException";
176
- this.$fault = "client";
177
- Object.setPrototypeOf(this, InvalidParameterException.prototype);
178
- this.Message = opts.Message;
179
- this.Code = opts.Code;
180
- this.Logref = opts.Logref;
181
- }
182
- }
183
- exports.InvalidParameterException = InvalidParameterException;
184
291
  class InvalidS3ObjectException extends RekognitionServiceException_1.RekognitionServiceException {
185
292
  constructor(opts) {
186
293
  super({
@@ -197,38 +304,6 @@ class InvalidS3ObjectException extends RekognitionServiceException_1.Rekognition
197
304
  }
198
305
  }
199
306
  exports.InvalidS3ObjectException = InvalidS3ObjectException;
200
- class ProvisionedThroughputExceededException extends RekognitionServiceException_1.RekognitionServiceException {
201
- constructor(opts) {
202
- super({
203
- name: "ProvisionedThroughputExceededException",
204
- $fault: "client",
205
- ...opts,
206
- });
207
- this.name = "ProvisionedThroughputExceededException";
208
- this.$fault = "client";
209
- Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
210
- this.Message = opts.Message;
211
- this.Code = opts.Code;
212
- this.Logref = opts.Logref;
213
- }
214
- }
215
- exports.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException;
216
- class ThrottlingException extends RekognitionServiceException_1.RekognitionServiceException {
217
- constructor(opts) {
218
- super({
219
- name: "ThrottlingException",
220
- $fault: "server",
221
- ...opts,
222
- });
223
- this.name = "ThrottlingException";
224
- this.$fault = "server";
225
- Object.setPrototypeOf(this, ThrottlingException.prototype);
226
- this.Message = opts.Message;
227
- this.Code = opts.Code;
228
- this.Logref = opts.Logref;
229
- }
230
- }
231
- exports.ThrottlingException = ThrottlingException;
232
307
  exports.ContentClassifier = {
233
308
  FREE_OF_ADULT_CONTENT: "FreeOfAdultContent",
234
309
  FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation",
@@ -273,38 +348,6 @@ class ResourceInUseException extends RekognitionServiceException_1.RekognitionSe
273
348
  }
274
349
  }
275
350
  exports.ResourceInUseException = ResourceInUseException;
276
- class ResourceNotFoundException extends RekognitionServiceException_1.RekognitionServiceException {
277
- constructor(opts) {
278
- super({
279
- name: "ResourceNotFoundException",
280
- $fault: "client",
281
- ...opts,
282
- });
283
- this.name = "ResourceNotFoundException";
284
- this.$fault = "client";
285
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
286
- this.Message = opts.Message;
287
- this.Code = opts.Code;
288
- this.Logref = opts.Logref;
289
- }
290
- }
291
- exports.ResourceNotFoundException = ResourceNotFoundException;
292
- class ServiceQuotaExceededException extends RekognitionServiceException_1.RekognitionServiceException {
293
- constructor(opts) {
294
- super({
295
- name: "ServiceQuotaExceededException",
296
- $fault: "client",
297
- ...opts,
298
- });
299
- this.name = "ServiceQuotaExceededException";
300
- this.$fault = "client";
301
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
302
- this.Message = opts.Message;
303
- this.Code = opts.Code;
304
- this.Logref = opts.Logref;
305
- }
306
- }
307
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
308
351
  class ResourceAlreadyExistsException extends RekognitionServiceException_1.RekognitionServiceException {
309
352
  constructor(opts) {
310
353
  super({
@@ -339,6 +382,10 @@ exports.DatasetStatusMessageCode = {
339
382
  SERVICE_ERROR: "SERVICE_ERROR",
340
383
  SUCCESS: "SUCCESS",
341
384
  };
385
+ exports.UnsuccessfulFaceDeletionReason = {
386
+ ASSOCIATED_TO_AN_EXISTING_USER: "ASSOCIATED_TO_AN_EXISTING_USER",
387
+ FACE_NOT_FOUND: "FACE_NOT_FOUND",
388
+ };
342
389
  exports.ProjectStatus = {
343
390
  CREATED: "CREATED",
344
391
  CREATING: "CREATING",
@@ -441,6 +488,10 @@ exports.TextTypes = {
441
488
  LINE: "LINE",
442
489
  WORD: "WORD",
443
490
  };
491
+ exports.UnsuccessfulFaceDisassociationReason = {
492
+ ASSOCIATED_TO_A_DIFFERENT_USER: "ASSOCIATED_TO_A_DIFFERENT_USER",
493
+ FACE_NOT_FOUND: "FACE_NOT_FOUND",
494
+ };
444
495
  exports.FaceAttributes = {
445
496
  ALL: "ALL",
446
497
  DEFAULT: "DEFAULT",
@@ -506,22 +557,6 @@ exports.SegmentType = {
506
557
  SHOT: "SHOT",
507
558
  TECHNICAL_CUE: "TECHNICAL_CUE",
508
559
  };
509
- class IdempotentParameterMismatchException extends RekognitionServiceException_1.RekognitionServiceException {
510
- constructor(opts) {
511
- super({
512
- name: "IdempotentParameterMismatchException",
513
- $fault: "client",
514
- ...opts,
515
- });
516
- this.name = "IdempotentParameterMismatchException";
517
- this.$fault = "client";
518
- Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
519
- this.Message = opts.Message;
520
- this.Code = opts.Code;
521
- this.Logref = opts.Logref;
522
- }
523
- }
524
- exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException;
525
560
  exports.Reason = {
526
561
  EXCEEDS_MAX_FACES: "EXCEEDS_MAX_FACES",
527
562
  EXTREME_POSE: "EXTREME_POSE",
@@ -550,22 +585,16 @@ class MalformedPolicyDocumentException extends RekognitionServiceException_1.Rek
550
585
  }
551
586
  }
552
587
  exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
553
- class VideoTooLargeException extends RekognitionServiceException_1.RekognitionServiceException {
554
- constructor(opts) {
555
- super({
556
- name: "VideoTooLargeException",
557
- $fault: "client",
558
- ...opts,
559
- });
560
- this.name = "VideoTooLargeException";
561
- this.$fault = "client";
562
- Object.setPrototypeOf(this, VideoTooLargeException.prototype);
563
- this.Message = opts.Message;
564
- this.Code = opts.Code;
565
- this.Logref = opts.Logref;
566
- }
567
- }
568
- exports.VideoTooLargeException = VideoTooLargeException;
588
+ exports.UnsearchedFaceReason = {
589
+ EXCEEDS_MAX_FACES: "EXCEEDS_MAX_FACES",
590
+ EXTREME_POSE: "EXTREME_POSE",
591
+ FACE_NOT_LARGEST: "FACE_NOT_LARGEST",
592
+ LOW_BRIGHTNESS: "LOW_BRIGHTNESS",
593
+ LOW_CONFIDENCE: "LOW_CONFIDENCE",
594
+ LOW_FACE_QUALITY: "LOW_FACE_QUALITY",
595
+ LOW_SHARPNESS: "LOW_SHARPNESS",
596
+ SMALL_BOUNDING_BOX: "SMALL_BOUNDING_BOX",
597
+ };
569
598
  const AuditImageFilterSensitiveLog = (obj) => ({
570
599
  ...obj,
571
600
  ...(obj.Bytes && { Bytes: smithy_client_1.SENSITIVE_STRING }),
@@ -1,6 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StreamProcessorParameterToDelete = void 0;
3
+ exports.StreamProcessorParameterToDelete = exports.VideoTooLargeException = void 0;
4
+ const RekognitionServiceException_1 = require("./RekognitionServiceException");
5
+ class VideoTooLargeException extends RekognitionServiceException_1.RekognitionServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "VideoTooLargeException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "VideoTooLargeException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, VideoTooLargeException.prototype);
15
+ this.Message = opts.Message;
16
+ this.Code = opts.Code;
17
+ this.Logref = opts.Logref;
18
+ }
19
+ }
20
+ exports.VideoTooLargeException = VideoTooLargeException;
4
21
  exports.StreamProcessorParameterToDelete = {
5
22
  ConnectedHomeMinConfidence: "ConnectedHomeMinConfidence",
6
23
  RegionsOfInterest: "RegionsOfInterest",
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListUsers = void 0;
4
+ const ListUsersCommand_1 = require("../commands/ListUsersCommand");
5
+ const RekognitionClient_1 = require("../RekognitionClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListUsersCommand_1.ListUsersCommand(input), ...args);
8
+ };
9
+ async function* paginateListUsers(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof RekognitionClient_1.RekognitionClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected Rekognition | RekognitionClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListUsers = paginateListUsers;
@@ -18,3 +18,4 @@ tslib_1.__exportStar(require("./ListDatasetLabelsPaginator"), exports);
18
18
  tslib_1.__exportStar(require("./ListFacesPaginator"), exports);
19
19
  tslib_1.__exportStar(require("./ListProjectPoliciesPaginator"), exports);
20
20
  tslib_1.__exportStar(require("./ListStreamProcessorsPaginator"), exports);
21
+ tslib_1.__exportStar(require("./ListUsersPaginator"), exports);