@aws-sdk/client-rekognition 3.150.0 → 3.159.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 (46) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +25 -0
  3. package/dist-cjs/Rekognition.js +60 -0
  4. package/dist-cjs/commands/CopyProjectVersionCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteProjectPolicyCommand.js +36 -0
  6. package/dist-cjs/commands/ListProjectPoliciesCommand.js +36 -0
  7. package/dist-cjs/commands/PutProjectPolicyCommand.js +36 -0
  8. package/dist-cjs/commands/index.js +4 -0
  9. package/dist-cjs/models/models_0.js +111 -40
  10. package/dist-cjs/pagination/ListProjectPoliciesPaginator.js +36 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_json1_1.js +381 -3
  13. package/dist-es/Rekognition.js +60 -0
  14. package/dist-es/commands/CopyProjectVersionCommand.js +39 -0
  15. package/dist-es/commands/DeleteProjectPolicyCommand.js +39 -0
  16. package/dist-es/commands/ListProjectPoliciesCommand.js +39 -0
  17. package/dist-es/commands/PutProjectPolicyCommand.js +39 -0
  18. package/dist-es/commands/index.js +4 -0
  19. package/dist-es/models/models_0.js +86 -44
  20. package/dist-es/pagination/ListProjectPoliciesPaginator.js +75 -0
  21. package/dist-es/pagination/index.js +1 -0
  22. package/dist-es/protocols/Aws_json1_1.js +460 -1
  23. package/dist-types/Rekognition.d.ts +97 -4
  24. package/dist-types/RekognitionClient.d.ts +31 -2
  25. package/dist-types/commands/CopyProjectVersionCommand.d.ts +56 -0
  26. package/dist-types/commands/DeleteProjectCommand.d.ts +5 -4
  27. package/dist-types/commands/DeleteProjectPolicyCommand.d.ts +36 -0
  28. package/dist-types/commands/ListProjectPoliciesCommand.d.ts +36 -0
  29. package/dist-types/commands/PutProjectPolicyCommand.d.ts +51 -0
  30. package/dist-types/commands/index.d.ts +4 -0
  31. package/dist-types/models/models_0.d.ts +329 -88
  32. package/dist-types/pagination/ListProjectPoliciesPaginator.d.ts +4 -0
  33. package/dist-types/pagination/index.d.ts +1 -0
  34. package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
  35. package/dist-types/ts3.4/Rekognition.d.ts +20 -0
  36. package/dist-types/ts3.4/RekognitionClient.d.ts +6 -2
  37. package/dist-types/ts3.4/commands/CopyProjectVersionCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/DeleteProjectPolicyCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/ListProjectPoliciesCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/PutProjectPolicyCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +169 -51
  43. package/dist-types/ts3.4/pagination/ListProjectPoliciesPaginator.d.ts +4 -0
  44. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  45. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  46. package/package.json +28 -28
@@ -1,5 +1,6 @@
1
1
  import { __extends } from "tslib";
2
2
  import { CompareFacesCommand, } from "./commands/CompareFacesCommand";
3
+ import { CopyProjectVersionCommand, } from "./commands/CopyProjectVersionCommand";
3
4
  import { CreateCollectionCommand, } from "./commands/CreateCollectionCommand";
4
5
  import { CreateDatasetCommand, } from "./commands/CreateDatasetCommand";
5
6
  import { CreateProjectCommand, } from "./commands/CreateProjectCommand";
@@ -9,6 +10,7 @@ import { DeleteCollectionCommand, } from "./commands/DeleteCollectionCommand";
9
10
  import { DeleteDatasetCommand, } from "./commands/DeleteDatasetCommand";
10
11
  import { DeleteFacesCommand } from "./commands/DeleteFacesCommand";
11
12
  import { DeleteProjectCommand, } from "./commands/DeleteProjectCommand";
13
+ import { DeleteProjectPolicyCommand, } from "./commands/DeleteProjectPolicyCommand";
12
14
  import { DeleteProjectVersionCommand, } from "./commands/DeleteProjectVersionCommand";
13
15
  import { DeleteStreamProcessorCommand, } from "./commands/DeleteStreamProcessorCommand";
14
16
  import { DescribeCollectionCommand, } from "./commands/DescribeCollectionCommand";
@@ -37,8 +39,10 @@ import { ListCollectionsCommand, } from "./commands/ListCollectionsCommand";
37
39
  import { ListDatasetEntriesCommand, } from "./commands/ListDatasetEntriesCommand";
38
40
  import { ListDatasetLabelsCommand, } from "./commands/ListDatasetLabelsCommand";
39
41
  import { ListFacesCommand } from "./commands/ListFacesCommand";
42
+ import { ListProjectPoliciesCommand, } from "./commands/ListProjectPoliciesCommand";
40
43
  import { ListStreamProcessorsCommand, } from "./commands/ListStreamProcessorsCommand";
41
44
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
45
+ import { PutProjectPolicyCommand, } from "./commands/PutProjectPolicyCommand";
42
46
  import { RecognizeCelebritiesCommand, } from "./commands/RecognizeCelebritiesCommand";
43
47
  import { SearchFacesByImageCommand, } from "./commands/SearchFacesByImageCommand";
44
48
  import { SearchFacesCommand } from "./commands/SearchFacesCommand";
@@ -78,6 +82,20 @@ var Rekognition = (function (_super) {
78
82
  return this.send(command, optionsOrCb);
79
83
  }
80
84
  };
85
+ Rekognition.prototype.copyProjectVersion = function (args, optionsOrCb, cb) {
86
+ var command = new CopyProjectVersionCommand(args);
87
+ if (typeof optionsOrCb === "function") {
88
+ this.send(command, optionsOrCb);
89
+ }
90
+ else if (typeof cb === "function") {
91
+ if (typeof optionsOrCb !== "object")
92
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
+ this.send(command, optionsOrCb || {}, cb);
94
+ }
95
+ else {
96
+ return this.send(command, optionsOrCb);
97
+ }
98
+ };
81
99
  Rekognition.prototype.createCollection = function (args, optionsOrCb, cb) {
82
100
  var command = new CreateCollectionCommand(args);
83
101
  if (typeof optionsOrCb === "function") {
@@ -204,6 +222,20 @@ var Rekognition = (function (_super) {
204
222
  return this.send(command, optionsOrCb);
205
223
  }
206
224
  };
225
+ Rekognition.prototype.deleteProjectPolicy = function (args, optionsOrCb, cb) {
226
+ var command = new DeleteProjectPolicyCommand(args);
227
+ if (typeof optionsOrCb === "function") {
228
+ this.send(command, optionsOrCb);
229
+ }
230
+ else if (typeof cb === "function") {
231
+ if (typeof optionsOrCb !== "object")
232
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
233
+ this.send(command, optionsOrCb || {}, cb);
234
+ }
235
+ else {
236
+ return this.send(command, optionsOrCb);
237
+ }
238
+ };
207
239
  Rekognition.prototype.deleteProjectVersion = function (args, optionsOrCb, cb) {
208
240
  var command = new DeleteProjectVersionCommand(args);
209
241
  if (typeof optionsOrCb === "function") {
@@ -596,6 +628,20 @@ var Rekognition = (function (_super) {
596
628
  return this.send(command, optionsOrCb);
597
629
  }
598
630
  };
631
+ Rekognition.prototype.listProjectPolicies = function (args, optionsOrCb, cb) {
632
+ var command = new ListProjectPoliciesCommand(args);
633
+ if (typeof optionsOrCb === "function") {
634
+ this.send(command, optionsOrCb);
635
+ }
636
+ else if (typeof cb === "function") {
637
+ if (typeof optionsOrCb !== "object")
638
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
639
+ this.send(command, optionsOrCb || {}, cb);
640
+ }
641
+ else {
642
+ return this.send(command, optionsOrCb);
643
+ }
644
+ };
599
645
  Rekognition.prototype.listStreamProcessors = function (args, optionsOrCb, cb) {
600
646
  var command = new ListStreamProcessorsCommand(args);
601
647
  if (typeof optionsOrCb === "function") {
@@ -624,6 +670,20 @@ var Rekognition = (function (_super) {
624
670
  return this.send(command, optionsOrCb);
625
671
  }
626
672
  };
673
+ Rekognition.prototype.putProjectPolicy = function (args, optionsOrCb, cb) {
674
+ var command = new PutProjectPolicyCommand(args);
675
+ if (typeof optionsOrCb === "function") {
676
+ this.send(command, optionsOrCb);
677
+ }
678
+ else if (typeof cb === "function") {
679
+ if (typeof optionsOrCb !== "object")
680
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
681
+ this.send(command, optionsOrCb || {}, cb);
682
+ }
683
+ else {
684
+ return this.send(command, optionsOrCb);
685
+ }
686
+ };
627
687
  Rekognition.prototype.recognizeCelebrities = function (args, optionsOrCb, cb) {
628
688
  var command = new RecognizeCelebritiesCommand(args);
629
689
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CopyProjectVersionRequestFilterSensitiveLog, CopyProjectVersionResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1CopyProjectVersionCommand, serializeAws_json1_1CopyProjectVersionCommand, } from "../protocols/Aws_json1_1";
6
+ var CopyProjectVersionCommand = (function (_super) {
7
+ __extends(CopyProjectVersionCommand, _super);
8
+ function CopyProjectVersionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CopyProjectVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "CopyProjectVersionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CopyProjectVersionRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: CopyProjectVersionResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CopyProjectVersionCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CopyProjectVersionCommand(input, context);
33
+ };
34
+ CopyProjectVersionCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CopyProjectVersionCommand(output, context);
36
+ };
37
+ return CopyProjectVersionCommand;
38
+ }($Command));
39
+ export { CopyProjectVersionCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteProjectPolicyRequestFilterSensitiveLog, DeleteProjectPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1DeleteProjectPolicyCommand, serializeAws_json1_1DeleteProjectPolicyCommand, } from "../protocols/Aws_json1_1";
6
+ var DeleteProjectPolicyCommand = (function (_super) {
7
+ __extends(DeleteProjectPolicyCommand, _super);
8
+ function DeleteProjectPolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteProjectPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "DeleteProjectPolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteProjectPolicyRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteProjectPolicyResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteProjectPolicyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DeleteProjectPolicyCommand(input, context);
33
+ };
34
+ DeleteProjectPolicyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DeleteProjectPolicyCommand(output, context);
36
+ };
37
+ return DeleteProjectPolicyCommand;
38
+ }($Command));
39
+ export { DeleteProjectPolicyCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListProjectPoliciesRequestFilterSensitiveLog, ListProjectPoliciesResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListProjectPoliciesCommand, serializeAws_json1_1ListProjectPoliciesCommand, } from "../protocols/Aws_json1_1";
6
+ var ListProjectPoliciesCommand = (function (_super) {
7
+ __extends(ListProjectPoliciesCommand, _super);
8
+ function ListProjectPoliciesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListProjectPoliciesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "ListProjectPoliciesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListProjectPoliciesRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: ListProjectPoliciesResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListProjectPoliciesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListProjectPoliciesCommand(input, context);
33
+ };
34
+ ListProjectPoliciesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListProjectPoliciesCommand(output, context);
36
+ };
37
+ return ListProjectPoliciesCommand;
38
+ }($Command));
39
+ export { ListProjectPoliciesCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { PutProjectPolicyRequestFilterSensitiveLog, PutProjectPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1PutProjectPolicyCommand, serializeAws_json1_1PutProjectPolicyCommand, } from "../protocols/Aws_json1_1";
6
+ var PutProjectPolicyCommand = (function (_super) {
7
+ __extends(PutProjectPolicyCommand, _super);
8
+ function PutProjectPolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ PutProjectPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "PutProjectPolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: PutProjectPolicyRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: PutProjectPolicyResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ PutProjectPolicyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1PutProjectPolicyCommand(input, context);
33
+ };
34
+ PutProjectPolicyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1PutProjectPolicyCommand(output, context);
36
+ };
37
+ return PutProjectPolicyCommand;
38
+ }($Command));
39
+ export { PutProjectPolicyCommand };
@@ -1,4 +1,5 @@
1
1
  export * from "./CompareFacesCommand";
2
+ export * from "./CopyProjectVersionCommand";
2
3
  export * from "./CreateCollectionCommand";
3
4
  export * from "./CreateDatasetCommand";
4
5
  export * from "./CreateProjectCommand";
@@ -8,6 +9,7 @@ export * from "./DeleteCollectionCommand";
8
9
  export * from "./DeleteDatasetCommand";
9
10
  export * from "./DeleteFacesCommand";
10
11
  export * from "./DeleteProjectCommand";
12
+ export * from "./DeleteProjectPolicyCommand";
11
13
  export * from "./DeleteProjectVersionCommand";
12
14
  export * from "./DeleteStreamProcessorCommand";
13
15
  export * from "./DescribeCollectionCommand";
@@ -36,8 +38,10 @@ export * from "./ListCollectionsCommand";
36
38
  export * from "./ListDatasetEntriesCommand";
37
39
  export * from "./ListDatasetLabelsCommand";
38
40
  export * from "./ListFacesCommand";
41
+ export * from "./ListProjectPoliciesCommand";
39
42
  export * from "./ListStreamProcessorsCommand";
40
43
  export * from "./ListTagsForResourceCommand";
44
+ export * from "./PutProjectPolicyCommand";
41
45
  export * from "./RecognizeCelebritiesCommand";
42
46
  export * from "./SearchFacesByImageCommand";
43
47
  export * from "./SearchFacesCommand";
@@ -213,41 +213,6 @@ export var ContentModerationSortBy;
213
213
  ContentModerationSortBy["NAME"] = "NAME";
214
214
  ContentModerationSortBy["TIMESTAMP"] = "TIMESTAMP";
215
215
  })(ContentModerationSortBy || (ContentModerationSortBy = {}));
216
- var ResourceAlreadyExistsException = (function (_super) {
217
- __extends(ResourceAlreadyExistsException, _super);
218
- function ResourceAlreadyExistsException(opts) {
219
- var _this = _super.call(this, __assign({ name: "ResourceAlreadyExistsException", $fault: "client" }, opts)) || this;
220
- _this.name = "ResourceAlreadyExistsException";
221
- _this.$fault = "client";
222
- Object.setPrototypeOf(_this, ResourceAlreadyExistsException.prototype);
223
- _this.Message = opts.Message;
224
- _this.Code = opts.Code;
225
- _this.Logref = opts.Logref;
226
- return _this;
227
- }
228
- return ResourceAlreadyExistsException;
229
- }(__BaseException));
230
- export { ResourceAlreadyExistsException };
231
- var ServiceQuotaExceededException = (function (_super) {
232
- __extends(ServiceQuotaExceededException, _super);
233
- function ServiceQuotaExceededException(opts) {
234
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
235
- _this.name = "ServiceQuotaExceededException";
236
- _this.$fault = "client";
237
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
238
- _this.Message = opts.Message;
239
- _this.Code = opts.Code;
240
- _this.Logref = opts.Logref;
241
- return _this;
242
- }
243
- return ServiceQuotaExceededException;
244
- }(__BaseException));
245
- export { ServiceQuotaExceededException };
246
- export var DatasetType;
247
- (function (DatasetType) {
248
- DatasetType["TEST"] = "TEST";
249
- DatasetType["TRAIN"] = "TRAIN";
250
- })(DatasetType || (DatasetType = {}));
251
216
  var LimitExceededException = (function (_super) {
252
217
  __extends(LimitExceededException, _super);
253
218
  function LimitExceededException(opts) {
@@ -263,6 +228,21 @@ var LimitExceededException = (function (_super) {
263
228
  return LimitExceededException;
264
229
  }(__BaseException));
265
230
  export { LimitExceededException };
231
+ var ResourceInUseException = (function (_super) {
232
+ __extends(ResourceInUseException, _super);
233
+ function ResourceInUseException(opts) {
234
+ var _this = _super.call(this, __assign({ name: "ResourceInUseException", $fault: "client" }, opts)) || this;
235
+ _this.name = "ResourceInUseException";
236
+ _this.$fault = "client";
237
+ Object.setPrototypeOf(_this, ResourceInUseException.prototype);
238
+ _this.Message = opts.Message;
239
+ _this.Code = opts.Code;
240
+ _this.Logref = opts.Logref;
241
+ return _this;
242
+ }
243
+ return ResourceInUseException;
244
+ }(__BaseException));
245
+ export { ResourceInUseException };
266
246
  var ResourceNotFoundException = (function (_super) {
267
247
  __extends(ResourceNotFoundException, _super);
268
248
  function ResourceNotFoundException(opts) {
@@ -278,21 +258,41 @@ var ResourceNotFoundException = (function (_super) {
278
258
  return ResourceNotFoundException;
279
259
  }(__BaseException));
280
260
  export { ResourceNotFoundException };
281
- var ResourceInUseException = (function (_super) {
282
- __extends(ResourceInUseException, _super);
283
- function ResourceInUseException(opts) {
284
- var _this = _super.call(this, __assign({ name: "ResourceInUseException", $fault: "client" }, opts)) || this;
285
- _this.name = "ResourceInUseException";
261
+ var ServiceQuotaExceededException = (function (_super) {
262
+ __extends(ServiceQuotaExceededException, _super);
263
+ function ServiceQuotaExceededException(opts) {
264
+ var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
265
+ _this.name = "ServiceQuotaExceededException";
286
266
  _this.$fault = "client";
287
- Object.setPrototypeOf(_this, ResourceInUseException.prototype);
267
+ Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
288
268
  _this.Message = opts.Message;
289
269
  _this.Code = opts.Code;
290
270
  _this.Logref = opts.Logref;
291
271
  return _this;
292
272
  }
293
- return ResourceInUseException;
273
+ return ServiceQuotaExceededException;
294
274
  }(__BaseException));
295
- export { ResourceInUseException };
275
+ export { ServiceQuotaExceededException };
276
+ var ResourceAlreadyExistsException = (function (_super) {
277
+ __extends(ResourceAlreadyExistsException, _super);
278
+ function ResourceAlreadyExistsException(opts) {
279
+ var _this = _super.call(this, __assign({ name: "ResourceAlreadyExistsException", $fault: "client" }, opts)) || this;
280
+ _this.name = "ResourceAlreadyExistsException";
281
+ _this.$fault = "client";
282
+ Object.setPrototypeOf(_this, ResourceAlreadyExistsException.prototype);
283
+ _this.Message = opts.Message;
284
+ _this.Code = opts.Code;
285
+ _this.Logref = opts.Logref;
286
+ return _this;
287
+ }
288
+ return ResourceAlreadyExistsException;
289
+ }(__BaseException));
290
+ export { ResourceAlreadyExistsException };
291
+ export var DatasetType;
292
+ (function (DatasetType) {
293
+ DatasetType["TEST"] = "TEST";
294
+ DatasetType["TRAIN"] = "TRAIN";
295
+ })(DatasetType || (DatasetType = {}));
296
296
  export var DatasetStatus;
297
297
  (function (DatasetStatus) {
298
298
  DatasetStatus["CREATE_COMPLETE"] = "CREATE_COMPLETE";
@@ -315,8 +315,26 @@ export var ProjectStatus;
315
315
  ProjectStatus["CREATING"] = "CREATING";
316
316
  ProjectStatus["DELETING"] = "DELETING";
317
317
  })(ProjectStatus || (ProjectStatus = {}));
318
+ var InvalidPolicyRevisionIdException = (function (_super) {
319
+ __extends(InvalidPolicyRevisionIdException, _super);
320
+ function InvalidPolicyRevisionIdException(opts) {
321
+ var _this = _super.call(this, __assign({ name: "InvalidPolicyRevisionIdException", $fault: "client" }, opts)) || this;
322
+ _this.name = "InvalidPolicyRevisionIdException";
323
+ _this.$fault = "client";
324
+ Object.setPrototypeOf(_this, InvalidPolicyRevisionIdException.prototype);
325
+ _this.Message = opts.Message;
326
+ _this.Code = opts.Code;
327
+ _this.Logref = opts.Logref;
328
+ return _this;
329
+ }
330
+ return InvalidPolicyRevisionIdException;
331
+ }(__BaseException));
332
+ export { InvalidPolicyRevisionIdException };
318
333
  export var ProjectVersionStatus;
319
334
  (function (ProjectVersionStatus) {
335
+ ProjectVersionStatus["COPYING_COMPLETED"] = "COPYING_COMPLETED";
336
+ ProjectVersionStatus["COPYING_FAILED"] = "COPYING_FAILED";
337
+ ProjectVersionStatus["COPYING_IN_PROGRESS"] = "COPYING_IN_PROGRESS";
320
338
  ProjectVersionStatus["DELETING"] = "DELETING";
321
339
  ProjectVersionStatus["FAILED"] = "FAILED";
322
340
  ProjectVersionStatus["RUNNING"] = "RUNNING";
@@ -460,6 +478,21 @@ export var Reason;
460
478
  Reason["LOW_SHARPNESS"] = "LOW_SHARPNESS";
461
479
  Reason["SMALL_BOUNDING_BOX"] = "SMALL_BOUNDING_BOX";
462
480
  })(Reason || (Reason = {}));
481
+ var MalformedPolicyDocumentException = (function (_super) {
482
+ __extends(MalformedPolicyDocumentException, _super);
483
+ function MalformedPolicyDocumentException(opts) {
484
+ var _this = _super.call(this, __assign({ name: "MalformedPolicyDocumentException", $fault: "client" }, opts)) || this;
485
+ _this.name = "MalformedPolicyDocumentException";
486
+ _this.$fault = "client";
487
+ Object.setPrototypeOf(_this, MalformedPolicyDocumentException.prototype);
488
+ _this.Message = opts.Message;
489
+ _this.Code = opts.Code;
490
+ _this.Logref = opts.Logref;
491
+ return _this;
492
+ }
493
+ return MalformedPolicyDocumentException;
494
+ }(__BaseException));
495
+ export { MalformedPolicyDocumentException };
463
496
  var VideoTooLargeException = (function (_super) {
464
497
  __extends(VideoTooLargeException, _super);
465
498
  function VideoTooLargeException(opts) {
@@ -517,6 +550,9 @@ export var ConnectedHomeSettingsFilterSensitiveLog = function (obj) { return (__
517
550
  export var ConnectedHomeSettingsForUpdateFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
518
551
  export var ModerationLabelFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
519
552
  export var ContentModerationDetectionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
553
+ export var OutputConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
554
+ export var CopyProjectVersionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
555
+ export var CopyProjectVersionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
520
556
  export var CreateCollectionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
521
557
  export var CreateCollectionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
522
558
  export var DatasetSourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -524,7 +560,6 @@ export var CreateDatasetRequestFilterSensitiveLog = function (obj) { return (__a
524
560
  export var CreateDatasetResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
525
561
  export var CreateProjectRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
526
562
  export var CreateProjectResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
527
- export var OutputConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
528
563
  export var TestingDataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
529
564
  export var TrainingDataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
530
565
  export var CreateProjectVersionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -558,6 +593,8 @@ export var DeleteFacesRequestFilterSensitiveLog = function (obj) { return (__ass
558
593
  export var DeleteFacesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
559
594
  export var DeleteProjectRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
560
595
  export var DeleteProjectResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
596
+ export var DeleteProjectPolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
597
+ export var DeleteProjectPolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
561
598
  export var DeleteProjectVersionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
562
599
  export var DeleteProjectVersionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
563
600
  export var DeleteStreamProcessorRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -650,12 +687,17 @@ export var ListDatasetLabelsRequestFilterSensitiveLog = function (obj) { return
650
687
  export var ListDatasetLabelsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
651
688
  export var ListFacesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
652
689
  export var ListFacesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
690
+ export var ListProjectPoliciesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
691
+ export var ProjectPolicyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
692
+ export var ListProjectPoliciesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
653
693
  export var ListStreamProcessorsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
654
694
  export var StreamProcessorFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
655
695
  export var ListStreamProcessorsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
656
696
  export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
657
697
  export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
658
698
  export var NotificationChannelFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
699
+ export var PutProjectPolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
700
+ export var PutProjectPolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
659
701
  export var RecognizeCelebritiesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
660
702
  export var RecognizeCelebritiesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
661
703
  export var SearchFacesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListProjectPoliciesCommand, } from "../commands/ListProjectPoliciesCommand";
3
+ import { Rekognition } from "../Rekognition";
4
+ import { RekognitionClient } from "../RekognitionClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListProjectPoliciesCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listProjectPolicies.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListProjectPolicies(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListProjectPolicies_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof Rekognition)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof RekognitionClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Rekognition | RekognitionClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.NextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
75
+ }
@@ -13,4 +13,5 @@ export * from "./ListCollectionsPaginator";
13
13
  export * from "./ListDatasetEntriesPaginator";
14
14
  export * from "./ListDatasetLabelsPaginator";
15
15
  export * from "./ListFacesPaginator";
16
+ export * from "./ListProjectPoliciesPaginator";
16
17
  export * from "./ListStreamProcessorsPaginator";