@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
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,15 +1,18 @@
1
1
  import { __extends } from "tslib";
2
2
  import { CompareFacesCommand, } from "./commands/CompareFacesCommand";
3
3
  import { CreateCollectionCommand, } from "./commands/CreateCollectionCommand";
4
+ import { CreateDatasetCommand, } from "./commands/CreateDatasetCommand";
4
5
  import { CreateProjectCommand, } from "./commands/CreateProjectCommand";
5
6
  import { CreateProjectVersionCommand, } from "./commands/CreateProjectVersionCommand";
6
7
  import { CreateStreamProcessorCommand, } from "./commands/CreateStreamProcessorCommand";
7
8
  import { DeleteCollectionCommand, } from "./commands/DeleteCollectionCommand";
9
+ import { DeleteDatasetCommand, } from "./commands/DeleteDatasetCommand";
8
10
  import { DeleteFacesCommand } from "./commands/DeleteFacesCommand";
9
11
  import { DeleteProjectCommand, } from "./commands/DeleteProjectCommand";
10
12
  import { DeleteProjectVersionCommand, } from "./commands/DeleteProjectVersionCommand";
11
13
  import { DeleteStreamProcessorCommand, } from "./commands/DeleteStreamProcessorCommand";
12
14
  import { DescribeCollectionCommand, } from "./commands/DescribeCollectionCommand";
15
+ import { DescribeDatasetCommand, } from "./commands/DescribeDatasetCommand";
13
16
  import { DescribeProjectsCommand, } from "./commands/DescribeProjectsCommand";
14
17
  import { DescribeProjectVersionsCommand, } from "./commands/DescribeProjectVersionsCommand";
15
18
  import { DescribeStreamProcessorCommand, } from "./commands/DescribeStreamProcessorCommand";
@@ -19,6 +22,7 @@ import { DetectLabelsCommand, } from "./commands/DetectLabelsCommand";
19
22
  import { DetectModerationLabelsCommand, } from "./commands/DetectModerationLabelsCommand";
20
23
  import { DetectProtectiveEquipmentCommand, } from "./commands/DetectProtectiveEquipmentCommand";
21
24
  import { DetectTextCommand } from "./commands/DetectTextCommand";
25
+ import { DistributeDatasetEntriesCommand, } from "./commands/DistributeDatasetEntriesCommand";
22
26
  import { GetCelebrityInfoCommand, } from "./commands/GetCelebrityInfoCommand";
23
27
  import { GetCelebrityRecognitionCommand, } from "./commands/GetCelebrityRecognitionCommand";
24
28
  import { GetContentModerationCommand, } from "./commands/GetContentModerationCommand";
@@ -30,6 +34,8 @@ import { GetSegmentDetectionCommand, } from "./commands/GetSegmentDetectionComma
30
34
  import { GetTextDetectionCommand, } from "./commands/GetTextDetectionCommand";
31
35
  import { IndexFacesCommand } from "./commands/IndexFacesCommand";
32
36
  import { ListCollectionsCommand, } from "./commands/ListCollectionsCommand";
37
+ import { ListDatasetEntriesCommand, } from "./commands/ListDatasetEntriesCommand";
38
+ import { ListDatasetLabelsCommand, } from "./commands/ListDatasetLabelsCommand";
33
39
  import { ListFacesCommand } from "./commands/ListFacesCommand";
34
40
  import { ListStreamProcessorsCommand, } from "./commands/ListStreamProcessorsCommand";
35
41
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -50,6 +56,7 @@ import { StopProjectVersionCommand, } from "./commands/StopProjectVersionCommand
50
56
  import { StopStreamProcessorCommand, } from "./commands/StopStreamProcessorCommand";
51
57
  import { TagResourceCommand } from "./commands/TagResourceCommand";
52
58
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
59
+ import { UpdateDatasetEntriesCommand, } from "./commands/UpdateDatasetEntriesCommand";
53
60
  import { RekognitionClient } from "./RekognitionClient";
54
61
  var Rekognition = (function (_super) {
55
62
  __extends(Rekognition, _super);
@@ -84,6 +91,20 @@ var Rekognition = (function (_super) {
84
91
  return this.send(command, optionsOrCb);
85
92
  }
86
93
  };
94
+ Rekognition.prototype.createDataset = function (args, optionsOrCb, cb) {
95
+ var command = new CreateDatasetCommand(args);
96
+ if (typeof optionsOrCb === "function") {
97
+ this.send(command, optionsOrCb);
98
+ }
99
+ else if (typeof cb === "function") {
100
+ if (typeof optionsOrCb !== "object")
101
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
102
+ this.send(command, optionsOrCb || {}, cb);
103
+ }
104
+ else {
105
+ return this.send(command, optionsOrCb);
106
+ }
107
+ };
87
108
  Rekognition.prototype.createProject = function (args, optionsOrCb, cb) {
88
109
  var command = new CreateProjectCommand(args);
89
110
  if (typeof optionsOrCb === "function") {
@@ -140,6 +161,20 @@ var Rekognition = (function (_super) {
140
161
  return this.send(command, optionsOrCb);
141
162
  }
142
163
  };
164
+ Rekognition.prototype.deleteDataset = function (args, optionsOrCb, cb) {
165
+ var command = new DeleteDatasetCommand(args);
166
+ if (typeof optionsOrCb === "function") {
167
+ this.send(command, optionsOrCb);
168
+ }
169
+ else if (typeof cb === "function") {
170
+ if (typeof optionsOrCb !== "object")
171
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
172
+ this.send(command, optionsOrCb || {}, cb);
173
+ }
174
+ else {
175
+ return this.send(command, optionsOrCb);
176
+ }
177
+ };
143
178
  Rekognition.prototype.deleteFaces = function (args, optionsOrCb, cb) {
144
179
  var command = new DeleteFacesCommand(args);
145
180
  if (typeof optionsOrCb === "function") {
@@ -210,6 +245,20 @@ var Rekognition = (function (_super) {
210
245
  return this.send(command, optionsOrCb);
211
246
  }
212
247
  };
248
+ Rekognition.prototype.describeDataset = function (args, optionsOrCb, cb) {
249
+ var command = new DescribeDatasetCommand(args);
250
+ if (typeof optionsOrCb === "function") {
251
+ this.send(command, optionsOrCb);
252
+ }
253
+ else if (typeof cb === "function") {
254
+ if (typeof optionsOrCb !== "object")
255
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
256
+ this.send(command, optionsOrCb || {}, cb);
257
+ }
258
+ else {
259
+ return this.send(command, optionsOrCb);
260
+ }
261
+ };
213
262
  Rekognition.prototype.describeProjects = function (args, optionsOrCb, cb) {
214
263
  var command = new DescribeProjectsCommand(args);
215
264
  if (typeof optionsOrCb === "function") {
@@ -336,6 +385,20 @@ var Rekognition = (function (_super) {
336
385
  return this.send(command, optionsOrCb);
337
386
  }
338
387
  };
388
+ Rekognition.prototype.distributeDatasetEntries = function (args, optionsOrCb, cb) {
389
+ var command = new DistributeDatasetEntriesCommand(args);
390
+ if (typeof optionsOrCb === "function") {
391
+ this.send(command, optionsOrCb);
392
+ }
393
+ else if (typeof cb === "function") {
394
+ if (typeof optionsOrCb !== "object")
395
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
396
+ this.send(command, optionsOrCb || {}, cb);
397
+ }
398
+ else {
399
+ return this.send(command, optionsOrCb);
400
+ }
401
+ };
339
402
  Rekognition.prototype.getCelebrityInfo = function (args, optionsOrCb, cb) {
340
403
  var command = new GetCelebrityInfoCommand(args);
341
404
  if (typeof optionsOrCb === "function") {
@@ -490,6 +553,34 @@ var Rekognition = (function (_super) {
490
553
  return this.send(command, optionsOrCb);
491
554
  }
492
555
  };
556
+ Rekognition.prototype.listDatasetEntries = function (args, optionsOrCb, cb) {
557
+ var command = new ListDatasetEntriesCommand(args);
558
+ if (typeof optionsOrCb === "function") {
559
+ this.send(command, optionsOrCb);
560
+ }
561
+ else if (typeof cb === "function") {
562
+ if (typeof optionsOrCb !== "object")
563
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
564
+ this.send(command, optionsOrCb || {}, cb);
565
+ }
566
+ else {
567
+ return this.send(command, optionsOrCb);
568
+ }
569
+ };
570
+ Rekognition.prototype.listDatasetLabels = function (args, optionsOrCb, cb) {
571
+ var command = new ListDatasetLabelsCommand(args);
572
+ if (typeof optionsOrCb === "function") {
573
+ this.send(command, optionsOrCb);
574
+ }
575
+ else if (typeof cb === "function") {
576
+ if (typeof optionsOrCb !== "object")
577
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
578
+ this.send(command, optionsOrCb || {}, cb);
579
+ }
580
+ else {
581
+ return this.send(command, optionsOrCb);
582
+ }
583
+ };
493
584
  Rekognition.prototype.listFaces = function (args, optionsOrCb, cb) {
494
585
  var command = new ListFacesCommand(args);
495
586
  if (typeof optionsOrCb === "function") {
@@ -770,6 +861,20 @@ var Rekognition = (function (_super) {
770
861
  return this.send(command, optionsOrCb);
771
862
  }
772
863
  };
864
+ Rekognition.prototype.updateDatasetEntries = function (args, optionsOrCb, cb) {
865
+ var command = new UpdateDatasetEntriesCommand(args);
866
+ if (typeof optionsOrCb === "function") {
867
+ this.send(command, optionsOrCb);
868
+ }
869
+ else if (typeof cb === "function") {
870
+ if (typeof optionsOrCb !== "object")
871
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
872
+ this.send(command, optionsOrCb || {}, cb);
873
+ }
874
+ else {
875
+ return this.send(command, optionsOrCb);
876
+ }
877
+ };
773
878
  return Rekognition;
774
879
  }(RekognitionClient));
775
880
  export { Rekognition };
@@ -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 { CreateDatasetRequest, CreateDatasetResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateDatasetCommand, serializeAws_json1_1CreateDatasetCommand, } from "../protocols/Aws_json1_1";
6
+ var CreateDatasetCommand = (function (_super) {
7
+ __extends(CreateDatasetCommand, _super);
8
+ function CreateDatasetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateDatasetCommand.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 = "CreateDatasetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateDatasetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateDatasetResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateDatasetCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CreateDatasetCommand(input, context);
33
+ };
34
+ CreateDatasetCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CreateDatasetCommand(output, context);
36
+ };
37
+ return CreateDatasetCommand;
38
+ }($Command));
39
+ export { CreateDatasetCommand };
@@ -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 { DeleteDatasetRequest, DeleteDatasetResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DeleteDatasetCommand, serializeAws_json1_1DeleteDatasetCommand, } from "../protocols/Aws_json1_1";
6
+ var DeleteDatasetCommand = (function (_super) {
7
+ __extends(DeleteDatasetCommand, _super);
8
+ function DeleteDatasetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteDatasetCommand.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 = "DeleteDatasetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteDatasetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteDatasetResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteDatasetCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DeleteDatasetCommand(input, context);
33
+ };
34
+ DeleteDatasetCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DeleteDatasetCommand(output, context);
36
+ };
37
+ return DeleteDatasetCommand;
38
+ }($Command));
39
+ export { DeleteDatasetCommand };
@@ -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 { DescribeDatasetRequest, DescribeDatasetResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DescribeDatasetCommand, serializeAws_json1_1DescribeDatasetCommand, } from "../protocols/Aws_json1_1";
6
+ var DescribeDatasetCommand = (function (_super) {
7
+ __extends(DescribeDatasetCommand, _super);
8
+ function DescribeDatasetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeDatasetCommand.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 = "DescribeDatasetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeDatasetRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeDatasetResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeDatasetCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DescribeDatasetCommand(input, context);
33
+ };
34
+ DescribeDatasetCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DescribeDatasetCommand(output, context);
36
+ };
37
+ return DescribeDatasetCommand;
38
+ }($Command));
39
+ export { DescribeDatasetCommand };
@@ -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 { DistributeDatasetEntriesRequest, DistributeDatasetEntriesResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DistributeDatasetEntriesCommand, serializeAws_json1_1DistributeDatasetEntriesCommand, } from "../protocols/Aws_json1_1";
6
+ var DistributeDatasetEntriesCommand = (function (_super) {
7
+ __extends(DistributeDatasetEntriesCommand, _super);
8
+ function DistributeDatasetEntriesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DistributeDatasetEntriesCommand.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 = "DistributeDatasetEntriesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DistributeDatasetEntriesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DistributeDatasetEntriesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DistributeDatasetEntriesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DistributeDatasetEntriesCommand(input, context);
33
+ };
34
+ DistributeDatasetEntriesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DistributeDatasetEntriesCommand(output, context);
36
+ };
37
+ return DistributeDatasetEntriesCommand;
38
+ }($Command));
39
+ export { DistributeDatasetEntriesCommand };
@@ -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 { ListDatasetEntriesRequest, ListDatasetEntriesResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListDatasetEntriesCommand, serializeAws_json1_1ListDatasetEntriesCommand, } from "../protocols/Aws_json1_1";
6
+ var ListDatasetEntriesCommand = (function (_super) {
7
+ __extends(ListDatasetEntriesCommand, _super);
8
+ function ListDatasetEntriesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListDatasetEntriesCommand.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 = "ListDatasetEntriesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListDatasetEntriesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListDatasetEntriesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListDatasetEntriesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListDatasetEntriesCommand(input, context);
33
+ };
34
+ ListDatasetEntriesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListDatasetEntriesCommand(output, context);
36
+ };
37
+ return ListDatasetEntriesCommand;
38
+ }($Command));
39
+ export { ListDatasetEntriesCommand };
@@ -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 { ListDatasetLabelsRequest, ListDatasetLabelsResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListDatasetLabelsCommand, serializeAws_json1_1ListDatasetLabelsCommand, } from "../protocols/Aws_json1_1";
6
+ var ListDatasetLabelsCommand = (function (_super) {
7
+ __extends(ListDatasetLabelsCommand, _super);
8
+ function ListDatasetLabelsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListDatasetLabelsCommand.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 = "ListDatasetLabelsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListDatasetLabelsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListDatasetLabelsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListDatasetLabelsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListDatasetLabelsCommand(input, context);
33
+ };
34
+ ListDatasetLabelsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListDatasetLabelsCommand(output, context);
36
+ };
37
+ return ListDatasetLabelsCommand;
38
+ }($Command));
39
+ export { ListDatasetLabelsCommand };
@@ -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 { UpdateDatasetEntriesRequest, UpdateDatasetEntriesResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1UpdateDatasetEntriesCommand, serializeAws_json1_1UpdateDatasetEntriesCommand, } from "../protocols/Aws_json1_1";
6
+ var UpdateDatasetEntriesCommand = (function (_super) {
7
+ __extends(UpdateDatasetEntriesCommand, _super);
8
+ function UpdateDatasetEntriesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateDatasetEntriesCommand.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 = "UpdateDatasetEntriesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateDatasetEntriesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateDatasetEntriesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateDatasetEntriesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1UpdateDatasetEntriesCommand(input, context);
33
+ };
34
+ UpdateDatasetEntriesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1UpdateDatasetEntriesCommand(output, context);
36
+ };
37
+ return UpdateDatasetEntriesCommand;
38
+ }($Command));
39
+ export { UpdateDatasetEntriesCommand };
@@ -1,14 +1,17 @@
1
1
  export * from "./CompareFacesCommand";
2
2
  export * from "./CreateCollectionCommand";
3
+ export * from "./CreateDatasetCommand";
3
4
  export * from "./CreateProjectCommand";
4
5
  export * from "./CreateProjectVersionCommand";
5
6
  export * from "./CreateStreamProcessorCommand";
6
7
  export * from "./DeleteCollectionCommand";
8
+ export * from "./DeleteDatasetCommand";
7
9
  export * from "./DeleteFacesCommand";
8
10
  export * from "./DeleteProjectCommand";
9
11
  export * from "./DeleteProjectVersionCommand";
10
12
  export * from "./DeleteStreamProcessorCommand";
11
13
  export * from "./DescribeCollectionCommand";
14
+ export * from "./DescribeDatasetCommand";
12
15
  export * from "./DescribeProjectVersionsCommand";
13
16
  export * from "./DescribeProjectsCommand";
14
17
  export * from "./DescribeStreamProcessorCommand";
@@ -18,6 +21,7 @@ export * from "./DetectLabelsCommand";
18
21
  export * from "./DetectModerationLabelsCommand";
19
22
  export * from "./DetectProtectiveEquipmentCommand";
20
23
  export * from "./DetectTextCommand";
24
+ export * from "./DistributeDatasetEntriesCommand";
21
25
  export * from "./GetCelebrityInfoCommand";
22
26
  export * from "./GetCelebrityRecognitionCommand";
23
27
  export * from "./GetContentModerationCommand";
@@ -29,6 +33,8 @@ export * from "./GetSegmentDetectionCommand";
29
33
  export * from "./GetTextDetectionCommand";
30
34
  export * from "./IndexFacesCommand";
31
35
  export * from "./ListCollectionsCommand";
36
+ export * from "./ListDatasetEntriesCommand";
37
+ export * from "./ListDatasetLabelsCommand";
32
38
  export * from "./ListFacesCommand";
33
39
  export * from "./ListStreamProcessorsCommand";
34
40
  export * from "./ListTagsForResourceCommand";
@@ -49,3 +55,4 @@ export * from "./StopProjectVersionCommand";
49
55
  export * from "./StopStreamProcessorCommand";
50
56
  export * from "./TagResourceCommand";
51
57
  export * from "./UntagResourceCommand";
58
+ export * from "./UpdateDatasetEntriesCommand";