@aws-sdk/client-rekognition 3.183.0 → 3.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Rekognition.js +261 -254
  4. package/dist-es/RekognitionClient.js +28 -22
  5. package/dist-es/commands/CompareFacesCommand.js +28 -21
  6. package/dist-es/commands/CopyProjectVersionCommand.js +28 -21
  7. package/dist-es/commands/CreateCollectionCommand.js +28 -21
  8. package/dist-es/commands/CreateDatasetCommand.js +28 -21
  9. package/dist-es/commands/CreateProjectCommand.js +28 -21
  10. package/dist-es/commands/CreateProjectVersionCommand.js +28 -21
  11. package/dist-es/commands/CreateStreamProcessorCommand.js +28 -21
  12. package/dist-es/commands/DeleteCollectionCommand.js +28 -21
  13. package/dist-es/commands/DeleteDatasetCommand.js +28 -21
  14. package/dist-es/commands/DeleteFacesCommand.js +28 -21
  15. package/dist-es/commands/DeleteProjectCommand.js +28 -21
  16. package/dist-es/commands/DeleteProjectPolicyCommand.js +28 -21
  17. package/dist-es/commands/DeleteProjectVersionCommand.js +28 -21
  18. package/dist-es/commands/DeleteStreamProcessorCommand.js +28 -21
  19. package/dist-es/commands/DescribeCollectionCommand.js +28 -21
  20. package/dist-es/commands/DescribeDatasetCommand.js +28 -21
  21. package/dist-es/commands/DescribeProjectVersionsCommand.js +28 -21
  22. package/dist-es/commands/DescribeProjectsCommand.js +28 -21
  23. package/dist-es/commands/DescribeStreamProcessorCommand.js +28 -21
  24. package/dist-es/commands/DetectCustomLabelsCommand.js +28 -21
  25. package/dist-es/commands/DetectFacesCommand.js +28 -21
  26. package/dist-es/commands/DetectLabelsCommand.js +28 -21
  27. package/dist-es/commands/DetectModerationLabelsCommand.js +28 -21
  28. package/dist-es/commands/DetectProtectiveEquipmentCommand.js +28 -21
  29. package/dist-es/commands/DetectTextCommand.js +28 -21
  30. package/dist-es/commands/DistributeDatasetEntriesCommand.js +28 -21
  31. package/dist-es/commands/GetCelebrityInfoCommand.js +28 -21
  32. package/dist-es/commands/GetCelebrityRecognitionCommand.js +28 -21
  33. package/dist-es/commands/GetContentModerationCommand.js +28 -21
  34. package/dist-es/commands/GetFaceDetectionCommand.js +28 -21
  35. package/dist-es/commands/GetFaceSearchCommand.js +28 -21
  36. package/dist-es/commands/GetLabelDetectionCommand.js +28 -21
  37. package/dist-es/commands/GetPersonTrackingCommand.js +28 -21
  38. package/dist-es/commands/GetSegmentDetectionCommand.js +28 -21
  39. package/dist-es/commands/GetTextDetectionCommand.js +28 -21
  40. package/dist-es/commands/IndexFacesCommand.js +28 -21
  41. package/dist-es/commands/ListCollectionsCommand.js +28 -21
  42. package/dist-es/commands/ListDatasetEntriesCommand.js +28 -21
  43. package/dist-es/commands/ListDatasetLabelsCommand.js +28 -21
  44. package/dist-es/commands/ListFacesCommand.js +28 -21
  45. package/dist-es/commands/ListProjectPoliciesCommand.js +28 -21
  46. package/dist-es/commands/ListStreamProcessorsCommand.js +28 -21
  47. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  48. package/dist-es/commands/PutProjectPolicyCommand.js +28 -21
  49. package/dist-es/commands/RecognizeCelebritiesCommand.js +28 -21
  50. package/dist-es/commands/SearchFacesByImageCommand.js +28 -21
  51. package/dist-es/commands/SearchFacesCommand.js +28 -21
  52. package/dist-es/commands/StartCelebrityRecognitionCommand.js +28 -21
  53. package/dist-es/commands/StartContentModerationCommand.js +28 -21
  54. package/dist-es/commands/StartFaceDetectionCommand.js +28 -21
  55. package/dist-es/commands/StartFaceSearchCommand.js +28 -21
  56. package/dist-es/commands/StartLabelDetectionCommand.js +28 -21
  57. package/dist-es/commands/StartPersonTrackingCommand.js +28 -21
  58. package/dist-es/commands/StartProjectVersionCommand.js +28 -21
  59. package/dist-es/commands/StartSegmentDetectionCommand.js +28 -21
  60. package/dist-es/commands/StartStreamProcessorCommand.js +28 -21
  61. package/dist-es/commands/StartTextDetectionCommand.js +28 -21
  62. package/dist-es/commands/StopProjectVersionCommand.js +28 -21
  63. package/dist-es/commands/StopStreamProcessorCommand.js +28 -21
  64. package/dist-es/commands/TagResourceCommand.js +28 -21
  65. package/dist-es/commands/UntagResourceCommand.js +28 -21
  66. package/dist-es/commands/UpdateDatasetEntriesCommand.js +28 -21
  67. package/dist-es/commands/UpdateStreamProcessorCommand.js +28 -21
  68. package/dist-es/endpoints.js +8 -8
  69. package/dist-es/models/RekognitionServiceException.js +10 -5
  70. package/dist-es/models/models_0.js +515 -976
  71. package/dist-es/pagination/DescribeProjectVersionsPaginator.js +68 -25
  72. package/dist-es/pagination/DescribeProjectsPaginator.js +68 -25
  73. package/dist-es/pagination/GetCelebrityRecognitionPaginator.js +68 -25
  74. package/dist-es/pagination/GetContentModerationPaginator.js +68 -25
  75. package/dist-es/pagination/GetFaceDetectionPaginator.js +68 -25
  76. package/dist-es/pagination/GetFaceSearchPaginator.js +68 -25
  77. package/dist-es/pagination/GetLabelDetectionPaginator.js +68 -25
  78. package/dist-es/pagination/GetPersonTrackingPaginator.js +68 -25
  79. package/dist-es/pagination/GetSegmentDetectionPaginator.js +68 -25
  80. package/dist-es/pagination/GetTextDetectionPaginator.js +68 -25
  81. package/dist-es/pagination/ListCollectionsPaginator.js +68 -25
  82. package/dist-es/pagination/ListDatasetEntriesPaginator.js +68 -25
  83. package/dist-es/pagination/ListDatasetLabelsPaginator.js +68 -25
  84. package/dist-es/pagination/ListFacesPaginator.js +68 -25
  85. package/dist-es/pagination/ListProjectPoliciesPaginator.js +68 -25
  86. package/dist-es/pagination/ListStreamProcessorsPaginator.js +68 -25
  87. package/dist-es/protocols/Aws_json1_1.js +6546 -5219
  88. package/dist-es/runtimeConfig.browser.js +12 -26
  89. package/dist-es/runtimeConfig.js +12 -30
  90. package/dist-es/runtimeConfig.native.js +5 -8
  91. package/dist-es/runtimeConfig.shared.js +11 -8
  92. package/dist-es/waiters/waitForProjectVersionRunning.js +91 -50
  93. package/dist-es/waiters/waitForProjectVersionTrainingCompleted.js +91 -50
  94. package/package.json +5 -5
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartFaceDetectionRequestFilterSensitiveLog, StartFaceDetectionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartFaceDetectionCommand, serializeAws_json1_1StartFaceDetectionCommand, } from "../protocols/Aws_json1_1";
5
- export class StartFaceDetectionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartFaceDetectionCommand = (function (_super) {
7
+ __extends(StartFaceDetectionCommand, _super);
8
+ function StartFaceDetectionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartFaceDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "RekognitionClient";
15
- const commandName = "StartFaceDetectionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "StartFaceDetectionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartFaceDetectionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartFaceDetectionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartFaceDetectionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartFaceDetectionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartFaceDetectionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartFaceDetectionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartFaceDetectionCommand;
38
+ }($Command));
39
+ export { StartFaceDetectionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartFaceSearchRequestFilterSensitiveLog, StartFaceSearchResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartFaceSearchCommand, serializeAws_json1_1StartFaceSearchCommand, } from "../protocols/Aws_json1_1";
5
- export class StartFaceSearchCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartFaceSearchCommand = (function (_super) {
7
+ __extends(StartFaceSearchCommand, _super);
8
+ function StartFaceSearchCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartFaceSearchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "RekognitionClient";
15
- const commandName = "StartFaceSearchCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "StartFaceSearchCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartFaceSearchRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartFaceSearchResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartFaceSearchCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartFaceSearchCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartFaceSearchCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartFaceSearchCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartFaceSearchCommand;
38
+ }($Command));
39
+ export { StartFaceSearchCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartLabelDetectionRequestFilterSensitiveLog, StartLabelDetectionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartLabelDetectionCommand, serializeAws_json1_1StartLabelDetectionCommand, } from "../protocols/Aws_json1_1";
5
- export class StartLabelDetectionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartLabelDetectionCommand = (function (_super) {
7
+ __extends(StartLabelDetectionCommand, _super);
8
+ function StartLabelDetectionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartLabelDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "RekognitionClient";
15
- const commandName = "StartLabelDetectionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "StartLabelDetectionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartLabelDetectionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartLabelDetectionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartLabelDetectionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartLabelDetectionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartLabelDetectionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartLabelDetectionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartLabelDetectionCommand;
38
+ }($Command));
39
+ export { StartLabelDetectionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartPersonTrackingRequestFilterSensitiveLog, StartPersonTrackingResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartPersonTrackingCommand, serializeAws_json1_1StartPersonTrackingCommand, } from "../protocols/Aws_json1_1";
5
- export class StartPersonTrackingCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartPersonTrackingCommand = (function (_super) {
7
+ __extends(StartPersonTrackingCommand, _super);
8
+ function StartPersonTrackingCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartPersonTrackingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "RekognitionClient";
15
- const commandName = "StartPersonTrackingCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "StartPersonTrackingCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartPersonTrackingRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartPersonTrackingResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartPersonTrackingCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartPersonTrackingCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartPersonTrackingCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartPersonTrackingCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartPersonTrackingCommand;
38
+ }($Command));
39
+ export { StartPersonTrackingCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartProjectVersionRequestFilterSensitiveLog, StartProjectVersionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartProjectVersionCommand, serializeAws_json1_1StartProjectVersionCommand, } from "../protocols/Aws_json1_1";
5
- export class StartProjectVersionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartProjectVersionCommand = (function (_super) {
7
+ __extends(StartProjectVersionCommand, _super);
8
+ function StartProjectVersionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartProjectVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "RekognitionClient";
15
- const commandName = "StartProjectVersionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "StartProjectVersionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartProjectVersionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartProjectVersionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartProjectVersionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartProjectVersionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartProjectVersionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartProjectVersionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartProjectVersionCommand;
38
+ }($Command));
39
+ export { StartProjectVersionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartSegmentDetectionRequestFilterSensitiveLog, StartSegmentDetectionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartSegmentDetectionCommand, serializeAws_json1_1StartSegmentDetectionCommand, } from "../protocols/Aws_json1_1";
5
- export class StartSegmentDetectionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartSegmentDetectionCommand = (function (_super) {
7
+ __extends(StartSegmentDetectionCommand, _super);
8
+ function StartSegmentDetectionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartSegmentDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "RekognitionClient";
15
- const commandName = "StartSegmentDetectionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "StartSegmentDetectionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartSegmentDetectionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartSegmentDetectionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartSegmentDetectionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartSegmentDetectionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartSegmentDetectionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartSegmentDetectionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartSegmentDetectionCommand;
38
+ }($Command));
39
+ export { StartSegmentDetectionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartStreamProcessorRequestFilterSensitiveLog, StartStreamProcessorResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartStreamProcessorCommand, serializeAws_json1_1StartStreamProcessorCommand, } from "../protocols/Aws_json1_1";
5
- export class StartStreamProcessorCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartStreamProcessorCommand = (function (_super) {
7
+ __extends(StartStreamProcessorCommand, _super);
8
+ function StartStreamProcessorCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartStreamProcessorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "RekognitionClient";
15
- const commandName = "StartStreamProcessorCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "StartStreamProcessorCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartStreamProcessorRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartStreamProcessorResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartStreamProcessorCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartStreamProcessorCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartStreamProcessorCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartStreamProcessorCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartStreamProcessorCommand;
38
+ }($Command));
39
+ export { StartStreamProcessorCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartTextDetectionRequestFilterSensitiveLog, StartTextDetectionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartTextDetectionCommand, serializeAws_json1_1StartTextDetectionCommand, } from "../protocols/Aws_json1_1";
5
- export class StartTextDetectionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartTextDetectionCommand = (function (_super) {
7
+ __extends(StartTextDetectionCommand, _super);
8
+ function StartTextDetectionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartTextDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "RekognitionClient";
15
- const commandName = "StartTextDetectionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "StartTextDetectionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartTextDetectionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartTextDetectionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartTextDetectionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartTextDetectionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartTextDetectionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartTextDetectionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartTextDetectionCommand;
38
+ }($Command));
39
+ export { StartTextDetectionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StopProjectVersionRequestFilterSensitiveLog, StopProjectVersionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StopProjectVersionCommand, serializeAws_json1_1StopProjectVersionCommand, } from "../protocols/Aws_json1_1";
5
- export class StopProjectVersionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StopProjectVersionCommand = (function (_super) {
7
+ __extends(StopProjectVersionCommand, _super);
8
+ function StopProjectVersionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StopProjectVersionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "RekognitionClient";
15
- const commandName = "StopProjectVersionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "StopProjectVersionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StopProjectVersionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StopProjectVersionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StopProjectVersionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StopProjectVersionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StopProjectVersionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StopProjectVersionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StopProjectVersionCommand;
38
+ }($Command));
39
+ export { StopProjectVersionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StopStreamProcessorRequestFilterSensitiveLog, StopStreamProcessorResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StopStreamProcessorCommand, serializeAws_json1_1StopStreamProcessorCommand, } from "../protocols/Aws_json1_1";
5
- export class StopStreamProcessorCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StopStreamProcessorCommand = (function (_super) {
7
+ __extends(StopStreamProcessorCommand, _super);
8
+ function StopStreamProcessorCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StopStreamProcessorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "RekognitionClient";
15
- const commandName = "StopStreamProcessorCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RekognitionClient";
18
+ var commandName = "StopStreamProcessorCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StopStreamProcessorRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StopStreamProcessorResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StopStreamProcessorCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StopStreamProcessorCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StopStreamProcessorCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StopStreamProcessorCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StopStreamProcessorCommand;
38
+ }($Command));
39
+ export { StopStreamProcessorCommand };