@aws-sdk/client-rekognition 3.39.0 → 3.43.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 (123) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist-cjs/Rekognition.js +105 -0
  3. package/dist-cjs/commands/CreateDatasetCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteDatasetCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeDatasetCommand.js +36 -0
  6. package/dist-cjs/commands/DistributeDatasetEntriesCommand.js +36 -0
  7. package/dist-cjs/commands/ListDatasetEntriesCommand.js +36 -0
  8. package/dist-cjs/commands/ListDatasetLabelsCommand.js +36 -0
  9. package/dist-cjs/commands/UpdateDatasetEntriesCommand.js +36 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/endpoints.js +157 -24
  12. package/dist-cjs/models/models_0.js +170 -16
  13. package/dist-cjs/pagination/ListDatasetEntriesPaginator.js +35 -0
  14. package/dist-cjs/pagination/ListDatasetLabelsPaginator.js +35 -0
  15. package/dist-cjs/pagination/index.js +2 -0
  16. package/dist-cjs/protocols/Aws_json1_1.js +1077 -54
  17. package/dist-cjs/runtimeConfig.browser.js +6 -3
  18. package/dist-cjs/runtimeConfig.js +5 -3
  19. package/dist-es/Rekognition.js +105 -0
  20. package/dist-es/commands/CreateDatasetCommand.js +39 -0
  21. package/dist-es/commands/DeleteDatasetCommand.js +39 -0
  22. package/dist-es/commands/DescribeDatasetCommand.js +39 -0
  23. package/dist-es/commands/DistributeDatasetEntriesCommand.js +39 -0
  24. package/dist-es/commands/ListDatasetEntriesCommand.js +39 -0
  25. package/dist-es/commands/ListDatasetLabelsCommand.js +39 -0
  26. package/dist-es/commands/UpdateDatasetEntriesCommand.js +39 -0
  27. package/dist-es/commands/index.js +7 -0
  28. package/dist-es/endpoints.js +157 -24
  29. package/dist-es/models/models_0.js +117 -8
  30. package/dist-es/pagination/ListDatasetEntriesPaginator.js +74 -0
  31. package/dist-es/pagination/ListDatasetLabelsPaginator.js +74 -0
  32. package/dist-es/pagination/index.js +2 -0
  33. package/dist-es/protocols/Aws_json1_1.js +1111 -51
  34. package/dist-es/runtimeConfig.browser.js +3 -2
  35. package/dist-es/runtimeConfig.js +3 -3
  36. package/dist-types/Rekognition.d.ts +209 -29
  37. package/dist-types/RekognitionClient.d.ts +17 -2
  38. package/dist-types/commands/CompareFacesCommand.d.ts +1 -1
  39. package/dist-types/commands/CreateCollectionCommand.d.ts +1 -1
  40. package/dist-types/commands/CreateDatasetCommand.d.ts +59 -0
  41. package/dist-types/commands/CreateProjectCommand.d.ts +3 -3
  42. package/dist-types/commands/CreateProjectVersionCommand.d.ts +33 -5
  43. package/dist-types/commands/CreateStreamProcessorCommand.d.ts +1 -1
  44. package/dist-types/commands/DeleteCollectionCommand.d.ts +1 -1
  45. package/dist-types/commands/DeleteDatasetCommand.d.ts +44 -0
  46. package/dist-types/commands/DeleteFacesCommand.d.ts +1 -1
  47. package/dist-types/commands/DeleteProjectCommand.d.ts +5 -1
  48. package/dist-types/commands/DeleteProjectVersionCommand.d.ts +1 -1
  49. package/dist-types/commands/DeleteStreamProcessorCommand.d.ts +1 -1
  50. package/dist-types/commands/DescribeCollectionCommand.d.ts +1 -1
  51. package/dist-types/commands/DescribeDatasetCommand.d.ts +39 -0
  52. package/dist-types/commands/DescribeProjectVersionsCommand.d.ts +3 -3
  53. package/dist-types/commands/DescribeProjectsCommand.d.ts +2 -2
  54. package/dist-types/commands/DescribeStreamProcessorCommand.d.ts +1 -1
  55. package/dist-types/commands/DetectCustomLabelsCommand.d.ts +1 -1
  56. package/dist-types/commands/DetectFacesCommand.d.ts +1 -1
  57. package/dist-types/commands/DetectLabelsCommand.d.ts +1 -1
  58. package/dist-types/commands/DetectModerationLabelsCommand.d.ts +1 -1
  59. package/dist-types/commands/DetectProtectiveEquipmentCommand.d.ts +1 -1
  60. package/dist-types/commands/DetectTextCommand.d.ts +1 -1
  61. package/dist-types/commands/DistributeDatasetEntriesCommand.d.ts +46 -0
  62. package/dist-types/commands/GetCelebrityInfoCommand.d.ts +1 -1
  63. package/dist-types/commands/GetCelebrityRecognitionCommand.d.ts +23 -18
  64. package/dist-types/commands/GetContentModerationCommand.d.ts +1 -1
  65. package/dist-types/commands/GetFaceDetectionCommand.d.ts +1 -1
  66. package/dist-types/commands/GetFaceSearchCommand.d.ts +1 -1
  67. package/dist-types/commands/GetLabelDetectionCommand.d.ts +1 -1
  68. package/dist-types/commands/GetPersonTrackingCommand.d.ts +1 -1
  69. package/dist-types/commands/GetSegmentDetectionCommand.d.ts +1 -1
  70. package/dist-types/commands/GetTextDetectionCommand.d.ts +1 -1
  71. package/dist-types/commands/IndexFacesCommand.d.ts +1 -1
  72. package/dist-types/commands/ListCollectionsCommand.d.ts +1 -1
  73. package/dist-types/commands/ListDatasetEntriesCommand.d.ts +49 -0
  74. package/dist-types/commands/ListDatasetLabelsCommand.d.ts +40 -0
  75. package/dist-types/commands/ListFacesCommand.d.ts +1 -1
  76. package/dist-types/commands/ListStreamProcessorsCommand.d.ts +1 -1
  77. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  78. package/dist-types/commands/RecognizeCelebritiesCommand.d.ts +4 -4
  79. package/dist-types/commands/SearchFacesByImageCommand.d.ts +1 -1
  80. package/dist-types/commands/SearchFacesCommand.d.ts +1 -1
  81. package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +1 -1
  82. package/dist-types/commands/StartContentModerationCommand.d.ts +1 -1
  83. package/dist-types/commands/StartFaceDetectionCommand.d.ts +1 -1
  84. package/dist-types/commands/StartFaceSearchCommand.d.ts +1 -1
  85. package/dist-types/commands/StartLabelDetectionCommand.d.ts +1 -1
  86. package/dist-types/commands/StartPersonTrackingCommand.d.ts +1 -1
  87. package/dist-types/commands/StartProjectVersionCommand.d.ts +1 -1
  88. package/dist-types/commands/StartSegmentDetectionCommand.d.ts +1 -1
  89. package/dist-types/commands/StartStreamProcessorCommand.d.ts +1 -1
  90. package/dist-types/commands/StartTextDetectionCommand.d.ts +1 -1
  91. package/dist-types/commands/StopProjectVersionCommand.d.ts +1 -1
  92. package/dist-types/commands/StopStreamProcessorCommand.d.ts +1 -1
  93. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  94. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  95. package/dist-types/commands/UpdateDatasetEntriesCommand.d.ts +62 -0
  96. package/dist-types/commands/index.d.ts +7 -0
  97. package/dist-types/models/models_0.d.ts +622 -51
  98. package/dist-types/pagination/ListDatasetEntriesPaginator.d.ts +4 -0
  99. package/dist-types/pagination/ListDatasetLabelsPaginator.d.ts +4 -0
  100. package/dist-types/pagination/index.d.ts +2 -0
  101. package/dist-types/protocols/Aws_json1_1.d.ts +21 -0
  102. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  103. package/dist-types/runtimeConfig.d.ts +2 -0
  104. package/dist-types/runtimeConfig.native.d.ts +2 -0
  105. package/dist-types/ts3.4/Rekognition.d.ts +35 -0
  106. package/dist-types/ts3.4/RekognitionClient.d.ts +13 -2
  107. package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +17 -0
  108. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +17 -0
  109. package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +17 -0
  110. package/dist-types/ts3.4/commands/DistributeDatasetEntriesCommand.d.ts +17 -0
  111. package/dist-types/ts3.4/commands/ListDatasetEntriesCommand.d.ts +17 -0
  112. package/dist-types/ts3.4/commands/ListDatasetLabelsCommand.d.ts +17 -0
  113. package/dist-types/ts3.4/commands/UpdateDatasetEntriesCommand.d.ts +17 -0
  114. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  115. package/dist-types/ts3.4/models/models_0.d.ts +283 -23
  116. package/dist-types/ts3.4/pagination/ListDatasetEntriesPaginator.d.ts +4 -0
  117. package/dist-types/ts3.4/pagination/ListDatasetLabelsPaginator.d.ts +4 -0
  118. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  119. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +21 -0
  120. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  121. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  122. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  123. package/package.json +24 -24
package/CHANGELOG.md CHANGED
@@ -3,6 +3,45 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-rekognition
9
+
10
+
11
+
12
+
13
+
14
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-rekognition
17
+
18
+
19
+
20
+
21
+
22
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
28
+
29
+
30
+
31
+
32
+
33
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
34
+
35
+
36
+ ### Features
37
+
38
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
39
+ * **clients:** update clients as of 2021/11/05 ([#2994](https://github.com/aws/aws-sdk-js-v3/issues/2994)) ([f5ecc31](https://github.com/aws/aws-sdk-js-v3/commit/f5ecc3147035a1f3d2d74cfed147999927ea8256))
40
+
41
+
42
+
43
+
44
+
6
45
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
46
 
8
47
  **Note:** Version bump only for package @aws-sdk/client-rekognition
@@ -3,15 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Rekognition = void 0;
4
4
  const CompareFacesCommand_1 = require("./commands/CompareFacesCommand");
5
5
  const CreateCollectionCommand_1 = require("./commands/CreateCollectionCommand");
6
+ const CreateDatasetCommand_1 = require("./commands/CreateDatasetCommand");
6
7
  const CreateProjectCommand_1 = require("./commands/CreateProjectCommand");
7
8
  const CreateProjectVersionCommand_1 = require("./commands/CreateProjectVersionCommand");
8
9
  const CreateStreamProcessorCommand_1 = require("./commands/CreateStreamProcessorCommand");
9
10
  const DeleteCollectionCommand_1 = require("./commands/DeleteCollectionCommand");
11
+ const DeleteDatasetCommand_1 = require("./commands/DeleteDatasetCommand");
10
12
  const DeleteFacesCommand_1 = require("./commands/DeleteFacesCommand");
11
13
  const DeleteProjectCommand_1 = require("./commands/DeleteProjectCommand");
12
14
  const DeleteProjectVersionCommand_1 = require("./commands/DeleteProjectVersionCommand");
13
15
  const DeleteStreamProcessorCommand_1 = require("./commands/DeleteStreamProcessorCommand");
14
16
  const DescribeCollectionCommand_1 = require("./commands/DescribeCollectionCommand");
17
+ const DescribeDatasetCommand_1 = require("./commands/DescribeDatasetCommand");
15
18
  const DescribeProjectsCommand_1 = require("./commands/DescribeProjectsCommand");
16
19
  const DescribeProjectVersionsCommand_1 = require("./commands/DescribeProjectVersionsCommand");
17
20
  const DescribeStreamProcessorCommand_1 = require("./commands/DescribeStreamProcessorCommand");
@@ -21,6 +24,7 @@ const DetectLabelsCommand_1 = require("./commands/DetectLabelsCommand");
21
24
  const DetectModerationLabelsCommand_1 = require("./commands/DetectModerationLabelsCommand");
22
25
  const DetectProtectiveEquipmentCommand_1 = require("./commands/DetectProtectiveEquipmentCommand");
23
26
  const DetectTextCommand_1 = require("./commands/DetectTextCommand");
27
+ const DistributeDatasetEntriesCommand_1 = require("./commands/DistributeDatasetEntriesCommand");
24
28
  const GetCelebrityInfoCommand_1 = require("./commands/GetCelebrityInfoCommand");
25
29
  const GetCelebrityRecognitionCommand_1 = require("./commands/GetCelebrityRecognitionCommand");
26
30
  const GetContentModerationCommand_1 = require("./commands/GetContentModerationCommand");
@@ -32,6 +36,8 @@ const GetSegmentDetectionCommand_1 = require("./commands/GetSegmentDetectionComm
32
36
  const GetTextDetectionCommand_1 = require("./commands/GetTextDetectionCommand");
33
37
  const IndexFacesCommand_1 = require("./commands/IndexFacesCommand");
34
38
  const ListCollectionsCommand_1 = require("./commands/ListCollectionsCommand");
39
+ const ListDatasetEntriesCommand_1 = require("./commands/ListDatasetEntriesCommand");
40
+ const ListDatasetLabelsCommand_1 = require("./commands/ListDatasetLabelsCommand");
35
41
  const ListFacesCommand_1 = require("./commands/ListFacesCommand");
36
42
  const ListStreamProcessorsCommand_1 = require("./commands/ListStreamProcessorsCommand");
37
43
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
@@ -52,6 +58,7 @@ const StopProjectVersionCommand_1 = require("./commands/StopProjectVersionComman
52
58
  const StopStreamProcessorCommand_1 = require("./commands/StopStreamProcessorCommand");
53
59
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
54
60
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
61
+ const UpdateDatasetEntriesCommand_1 = require("./commands/UpdateDatasetEntriesCommand");
55
62
  const RekognitionClient_1 = require("./RekognitionClient");
56
63
  class Rekognition extends RekognitionClient_1.RekognitionClient {
57
64
  compareFaces(args, optionsOrCb, cb) {
@@ -82,6 +89,20 @@ class Rekognition extends RekognitionClient_1.RekognitionClient {
82
89
  return this.send(command, optionsOrCb);
83
90
  }
84
91
  }
92
+ createDataset(args, optionsOrCb, cb) {
93
+ const command = new CreateDatasetCommand_1.CreateDatasetCommand(args);
94
+ if (typeof optionsOrCb === "function") {
95
+ this.send(command, optionsOrCb);
96
+ }
97
+ else if (typeof cb === "function") {
98
+ if (typeof optionsOrCb !== "object")
99
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
+ this.send(command, optionsOrCb || {}, cb);
101
+ }
102
+ else {
103
+ return this.send(command, optionsOrCb);
104
+ }
105
+ }
85
106
  createProject(args, optionsOrCb, cb) {
86
107
  const command = new CreateProjectCommand_1.CreateProjectCommand(args);
87
108
  if (typeof optionsOrCb === "function") {
@@ -138,6 +159,20 @@ class Rekognition extends RekognitionClient_1.RekognitionClient {
138
159
  return this.send(command, optionsOrCb);
139
160
  }
140
161
  }
162
+ deleteDataset(args, optionsOrCb, cb) {
163
+ const command = new DeleteDatasetCommand_1.DeleteDatasetCommand(args);
164
+ if (typeof optionsOrCb === "function") {
165
+ this.send(command, optionsOrCb);
166
+ }
167
+ else if (typeof cb === "function") {
168
+ if (typeof optionsOrCb !== "object")
169
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
+ this.send(command, optionsOrCb || {}, cb);
171
+ }
172
+ else {
173
+ return this.send(command, optionsOrCb);
174
+ }
175
+ }
141
176
  deleteFaces(args, optionsOrCb, cb) {
142
177
  const command = new DeleteFacesCommand_1.DeleteFacesCommand(args);
143
178
  if (typeof optionsOrCb === "function") {
@@ -208,6 +243,20 @@ class Rekognition extends RekognitionClient_1.RekognitionClient {
208
243
  return this.send(command, optionsOrCb);
209
244
  }
210
245
  }
246
+ describeDataset(args, optionsOrCb, cb) {
247
+ const command = new DescribeDatasetCommand_1.DescribeDatasetCommand(args);
248
+ if (typeof optionsOrCb === "function") {
249
+ this.send(command, optionsOrCb);
250
+ }
251
+ else if (typeof cb === "function") {
252
+ if (typeof optionsOrCb !== "object")
253
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
+ this.send(command, optionsOrCb || {}, cb);
255
+ }
256
+ else {
257
+ return this.send(command, optionsOrCb);
258
+ }
259
+ }
211
260
  describeProjects(args, optionsOrCb, cb) {
212
261
  const command = new DescribeProjectsCommand_1.DescribeProjectsCommand(args);
213
262
  if (typeof optionsOrCb === "function") {
@@ -334,6 +383,20 @@ class Rekognition extends RekognitionClient_1.RekognitionClient {
334
383
  return this.send(command, optionsOrCb);
335
384
  }
336
385
  }
386
+ distributeDatasetEntries(args, optionsOrCb, cb) {
387
+ const command = new DistributeDatasetEntriesCommand_1.DistributeDatasetEntriesCommand(args);
388
+ if (typeof optionsOrCb === "function") {
389
+ this.send(command, optionsOrCb);
390
+ }
391
+ else if (typeof cb === "function") {
392
+ if (typeof optionsOrCb !== "object")
393
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
394
+ this.send(command, optionsOrCb || {}, cb);
395
+ }
396
+ else {
397
+ return this.send(command, optionsOrCb);
398
+ }
399
+ }
337
400
  getCelebrityInfo(args, optionsOrCb, cb) {
338
401
  const command = new GetCelebrityInfoCommand_1.GetCelebrityInfoCommand(args);
339
402
  if (typeof optionsOrCb === "function") {
@@ -488,6 +551,34 @@ class Rekognition extends RekognitionClient_1.RekognitionClient {
488
551
  return this.send(command, optionsOrCb);
489
552
  }
490
553
  }
554
+ listDatasetEntries(args, optionsOrCb, cb) {
555
+ const command = new ListDatasetEntriesCommand_1.ListDatasetEntriesCommand(args);
556
+ if (typeof optionsOrCb === "function") {
557
+ this.send(command, optionsOrCb);
558
+ }
559
+ else if (typeof cb === "function") {
560
+ if (typeof optionsOrCb !== "object")
561
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
562
+ this.send(command, optionsOrCb || {}, cb);
563
+ }
564
+ else {
565
+ return this.send(command, optionsOrCb);
566
+ }
567
+ }
568
+ listDatasetLabels(args, optionsOrCb, cb) {
569
+ const command = new ListDatasetLabelsCommand_1.ListDatasetLabelsCommand(args);
570
+ if (typeof optionsOrCb === "function") {
571
+ this.send(command, optionsOrCb);
572
+ }
573
+ else if (typeof cb === "function") {
574
+ if (typeof optionsOrCb !== "object")
575
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
576
+ this.send(command, optionsOrCb || {}, cb);
577
+ }
578
+ else {
579
+ return this.send(command, optionsOrCb);
580
+ }
581
+ }
491
582
  listFaces(args, optionsOrCb, cb) {
492
583
  const command = new ListFacesCommand_1.ListFacesCommand(args);
493
584
  if (typeof optionsOrCb === "function") {
@@ -768,5 +859,19 @@ class Rekognition extends RekognitionClient_1.RekognitionClient {
768
859
  return this.send(command, optionsOrCb);
769
860
  }
770
861
  }
862
+ updateDatasetEntries(args, optionsOrCb, cb) {
863
+ const command = new UpdateDatasetEntriesCommand_1.UpdateDatasetEntriesCommand(args);
864
+ if (typeof optionsOrCb === "function") {
865
+ this.send(command, optionsOrCb);
866
+ }
867
+ else if (typeof cb === "function") {
868
+ if (typeof optionsOrCb !== "object")
869
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
870
+ this.send(command, optionsOrCb || {}, cb);
871
+ }
872
+ else {
873
+ return this.send(command, optionsOrCb);
874
+ }
875
+ }
771
876
  }
772
877
  exports.Rekognition = Rekognition;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateDatasetCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class CreateDatasetCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RekognitionClient";
18
+ const commandName = "CreateDatasetCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateDatasetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateDatasetResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1CreateDatasetCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1CreateDatasetCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateDatasetCommand = CreateDatasetCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteDatasetCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class DeleteDatasetCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RekognitionClient";
18
+ const commandName = "DeleteDatasetCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteDatasetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteDatasetResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1DeleteDatasetCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DeleteDatasetCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteDatasetCommand = DeleteDatasetCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeDatasetCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class DescribeDatasetCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RekognitionClient";
18
+ const commandName = "DescribeDatasetCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeDatasetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeDatasetResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1DescribeDatasetCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DescribeDatasetCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeDatasetCommand = DescribeDatasetCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DistributeDatasetEntriesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class DistributeDatasetEntriesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RekognitionClient";
18
+ const commandName = "DistributeDatasetEntriesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DistributeDatasetEntriesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DistributeDatasetEntriesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1DistributeDatasetEntriesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DistributeDatasetEntriesCommand(output, context);
34
+ }
35
+ }
36
+ exports.DistributeDatasetEntriesCommand = DistributeDatasetEntriesCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListDatasetEntriesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class ListDatasetEntriesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RekognitionClient";
18
+ const commandName = "ListDatasetEntriesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListDatasetEntriesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListDatasetEntriesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1ListDatasetEntriesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1ListDatasetEntriesCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListDatasetEntriesCommand = ListDatasetEntriesCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListDatasetLabelsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class ListDatasetLabelsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RekognitionClient";
18
+ const commandName = "ListDatasetLabelsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListDatasetLabelsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListDatasetLabelsResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1ListDatasetLabelsCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1ListDatasetLabelsCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListDatasetLabelsCommand = ListDatasetLabelsCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateDatasetEntriesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class UpdateDatasetEntriesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "RekognitionClient";
18
+ const commandName = "UpdateDatasetEntriesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateDatasetEntriesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.UpdateDatasetEntriesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1UpdateDatasetEntriesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1UpdateDatasetEntriesCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateDatasetEntriesCommand = UpdateDatasetEntriesCommand;
@@ -3,15 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./CompareFacesCommand"), exports);
5
5
  tslib_1.__exportStar(require("./CreateCollectionCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateDatasetCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateProjectCommand"), exports);
7
8
  tslib_1.__exportStar(require("./CreateProjectVersionCommand"), exports);
8
9
  tslib_1.__exportStar(require("./CreateStreamProcessorCommand"), exports);
9
10
  tslib_1.__exportStar(require("./DeleteCollectionCommand"), exports);
11
+ tslib_1.__exportStar(require("./DeleteDatasetCommand"), exports);
10
12
  tslib_1.__exportStar(require("./DeleteFacesCommand"), exports);
11
13
  tslib_1.__exportStar(require("./DeleteProjectCommand"), exports);
12
14
  tslib_1.__exportStar(require("./DeleteProjectVersionCommand"), exports);
13
15
  tslib_1.__exportStar(require("./DeleteStreamProcessorCommand"), exports);
14
16
  tslib_1.__exportStar(require("./DescribeCollectionCommand"), exports);
17
+ tslib_1.__exportStar(require("./DescribeDatasetCommand"), exports);
15
18
  tslib_1.__exportStar(require("./DescribeProjectVersionsCommand"), exports);
16
19
  tslib_1.__exportStar(require("./DescribeProjectsCommand"), exports);
17
20
  tslib_1.__exportStar(require("./DescribeStreamProcessorCommand"), exports);
@@ -21,6 +24,7 @@ tslib_1.__exportStar(require("./DetectLabelsCommand"), exports);
21
24
  tslib_1.__exportStar(require("./DetectModerationLabelsCommand"), exports);
22
25
  tslib_1.__exportStar(require("./DetectProtectiveEquipmentCommand"), exports);
23
26
  tslib_1.__exportStar(require("./DetectTextCommand"), exports);
27
+ tslib_1.__exportStar(require("./DistributeDatasetEntriesCommand"), exports);
24
28
  tslib_1.__exportStar(require("./GetCelebrityInfoCommand"), exports);
25
29
  tslib_1.__exportStar(require("./GetCelebrityRecognitionCommand"), exports);
26
30
  tslib_1.__exportStar(require("./GetContentModerationCommand"), exports);
@@ -32,6 +36,8 @@ tslib_1.__exportStar(require("./GetSegmentDetectionCommand"), exports);
32
36
  tslib_1.__exportStar(require("./GetTextDetectionCommand"), exports);
33
37
  tslib_1.__exportStar(require("./IndexFacesCommand"), exports);
34
38
  tslib_1.__exportStar(require("./ListCollectionsCommand"), exports);
39
+ tslib_1.__exportStar(require("./ListDatasetEntriesCommand"), exports);
40
+ tslib_1.__exportStar(require("./ListDatasetLabelsCommand"), exports);
35
41
  tslib_1.__exportStar(require("./ListFacesCommand"), exports);
36
42
  tslib_1.__exportStar(require("./ListStreamProcessorsCommand"), exports);
37
43
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
@@ -52,3 +58,4 @@ tslib_1.__exportStar(require("./StopProjectVersionCommand"), exports);
52
58
  tslib_1.__exportStar(require("./StopStreamProcessorCommand"), exports);
53
59
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
54
60
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
61
+ tslib_1.__exportStar(require("./UpdateDatasetEntriesCommand"), exports);