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