@aws-sdk/client-comprehend 3.181.0 → 3.183.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 (97) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Comprehend.js +294 -301
  3. package/dist-es/ComprehendClient.js +22 -28
  4. package/dist-es/commands/BatchDetectDominantLanguageCommand.js +21 -28
  5. package/dist-es/commands/BatchDetectEntitiesCommand.js +21 -28
  6. package/dist-es/commands/BatchDetectKeyPhrasesCommand.js +21 -28
  7. package/dist-es/commands/BatchDetectSentimentCommand.js +21 -28
  8. package/dist-es/commands/BatchDetectSyntaxCommand.js +21 -28
  9. package/dist-es/commands/BatchDetectTargetedSentimentCommand.js +21 -28
  10. package/dist-es/commands/ClassifyDocumentCommand.js +21 -28
  11. package/dist-es/commands/ContainsPiiEntitiesCommand.js +21 -28
  12. package/dist-es/commands/CreateDocumentClassifierCommand.js +21 -28
  13. package/dist-es/commands/CreateEndpointCommand.js +21 -28
  14. package/dist-es/commands/CreateEntityRecognizerCommand.js +21 -28
  15. package/dist-es/commands/DeleteDocumentClassifierCommand.js +21 -28
  16. package/dist-es/commands/DeleteEndpointCommand.js +21 -28
  17. package/dist-es/commands/DeleteEntityRecognizerCommand.js +21 -28
  18. package/dist-es/commands/DeleteResourcePolicyCommand.js +21 -28
  19. package/dist-es/commands/DescribeDocumentClassificationJobCommand.js +21 -28
  20. package/dist-es/commands/DescribeDocumentClassifierCommand.js +21 -28
  21. package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js +21 -28
  22. package/dist-es/commands/DescribeEndpointCommand.js +21 -28
  23. package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js +21 -28
  24. package/dist-es/commands/DescribeEntityRecognizerCommand.js +21 -28
  25. package/dist-es/commands/DescribeEventsDetectionJobCommand.js +21 -28
  26. package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js +21 -28
  27. package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js +21 -28
  28. package/dist-es/commands/DescribeResourcePolicyCommand.js +21 -28
  29. package/dist-es/commands/DescribeSentimentDetectionJobCommand.js +21 -28
  30. package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +21 -28
  31. package/dist-es/commands/DescribeTopicsDetectionJobCommand.js +21 -28
  32. package/dist-es/commands/DetectDominantLanguageCommand.js +21 -28
  33. package/dist-es/commands/DetectEntitiesCommand.js +21 -28
  34. package/dist-es/commands/DetectKeyPhrasesCommand.js +21 -28
  35. package/dist-es/commands/DetectPiiEntitiesCommand.js +21 -28
  36. package/dist-es/commands/DetectSentimentCommand.js +21 -28
  37. package/dist-es/commands/DetectSyntaxCommand.js +21 -28
  38. package/dist-es/commands/DetectTargetedSentimentCommand.js +21 -28
  39. package/dist-es/commands/ImportModelCommand.js +21 -28
  40. package/dist-es/commands/ListDocumentClassificationJobsCommand.js +21 -28
  41. package/dist-es/commands/ListDocumentClassifierSummariesCommand.js +21 -28
  42. package/dist-es/commands/ListDocumentClassifiersCommand.js +21 -28
  43. package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js +21 -28
  44. package/dist-es/commands/ListEndpointsCommand.js +21 -28
  45. package/dist-es/commands/ListEntitiesDetectionJobsCommand.js +21 -28
  46. package/dist-es/commands/ListEntityRecognizerSummariesCommand.js +21 -28
  47. package/dist-es/commands/ListEntityRecognizersCommand.js +21 -28
  48. package/dist-es/commands/ListEventsDetectionJobsCommand.js +21 -28
  49. package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js +21 -28
  50. package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js +21 -28
  51. package/dist-es/commands/ListSentimentDetectionJobsCommand.js +21 -28
  52. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  53. package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +21 -28
  54. package/dist-es/commands/ListTopicsDetectionJobsCommand.js +21 -28
  55. package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
  56. package/dist-es/commands/StartDocumentClassificationJobCommand.js +21 -28
  57. package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js +21 -28
  58. package/dist-es/commands/StartEntitiesDetectionJobCommand.js +21 -28
  59. package/dist-es/commands/StartEventsDetectionJobCommand.js +21 -28
  60. package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js +21 -28
  61. package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js +21 -28
  62. package/dist-es/commands/StartSentimentDetectionJobCommand.js +21 -28
  63. package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +21 -28
  64. package/dist-es/commands/StartTopicsDetectionJobCommand.js +21 -28
  65. package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js +21 -28
  66. package/dist-es/commands/StopEntitiesDetectionJobCommand.js +21 -28
  67. package/dist-es/commands/StopEventsDetectionJobCommand.js +21 -28
  68. package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js +21 -28
  69. package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js +21 -28
  70. package/dist-es/commands/StopSentimentDetectionJobCommand.js +21 -28
  71. package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +21 -28
  72. package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +21 -28
  73. package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +21 -28
  74. package/dist-es/commands/TagResourceCommand.js +21 -28
  75. package/dist-es/commands/UntagResourceCommand.js +21 -28
  76. package/dist-es/commands/UpdateEndpointCommand.js +21 -28
  77. package/dist-es/endpoints.js +8 -8
  78. package/dist-es/models/ComprehendServiceException.js +5 -10
  79. package/dist-es/models/models_0.js +856 -416
  80. package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js +25 -68
  81. package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js +25 -68
  82. package/dist-es/pagination/ListDocumentClassifiersPaginator.js +25 -68
  83. package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js +25 -68
  84. package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js +25 -68
  85. package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js +25 -68
  86. package/dist-es/pagination/ListEntityRecognizersPaginator.js +25 -68
  87. package/dist-es/pagination/ListEventsDetectionJobsPaginator.js +25 -68
  88. package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js +25 -68
  89. package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js +25 -68
  90. package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +25 -68
  91. package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js +25 -68
  92. package/dist-es/protocols/Aws_json1_1.js +5054 -6388
  93. package/dist-es/runtimeConfig.browser.js +26 -12
  94. package/dist-es/runtimeConfig.js +30 -12
  95. package/dist-es/runtimeConfig.native.js +8 -5
  96. package/dist-es/runtimeConfig.shared.js +8 -11
  97. package/package.json +33 -33
@@ -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 { StartTargetedSentimentDetectionJobRequestFilterSensitiveLog, StartTargetedSentimentDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand, serializeAws_json1_1StartTargetedSentimentDetectionJobCommand, } from "../protocols/Aws_json1_1";
6
- var StartTargetedSentimentDetectionJobCommand = (function (_super) {
7
- __extends(StartTargetedSentimentDetectionJobCommand, _super);
8
- function StartTargetedSentimentDetectionJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartTargetedSentimentDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartTargetedSentimentDetectionJobCommand.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 = "ComprehendClient";
18
- var commandName = "StartTargetedSentimentDetectionJobCommand";
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 = "ComprehendClient";
15
+ const commandName = "StartTargetedSentimentDetectionJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartTargetedSentimentDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartTargetedSentimentDetectionJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartTargetedSentimentDetectionJobCommand.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_1StartTargetedSentimentDetectionJobCommand(input, context);
33
- };
34
- StartTargetedSentimentDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand(output, context);
36
- };
37
- return StartTargetedSentimentDetectionJobCommand;
38
- }($Command));
39
- export { StartTargetedSentimentDetectionJobCommand };
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 { StartTopicsDetectionJobRequestFilterSensitiveLog, StartTopicsDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StartTopicsDetectionJobCommand, serializeAws_json1_1StartTopicsDetectionJobCommand, } from "../protocols/Aws_json1_1";
6
- var StartTopicsDetectionJobCommand = (function (_super) {
7
- __extends(StartTopicsDetectionJobCommand, _super);
8
- function StartTopicsDetectionJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartTopicsDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartTopicsDetectionJobCommand.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 = "ComprehendClient";
18
- var commandName = "StartTopicsDetectionJobCommand";
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 = "ComprehendClient";
15
+ const commandName = "StartTopicsDetectionJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartTopicsDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartTopicsDetectionJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartTopicsDetectionJobCommand.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_1StartTopicsDetectionJobCommand(input, context);
33
- };
34
- StartTopicsDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StartTopicsDetectionJobCommand(output, context);
36
- };
37
- return StartTopicsDetectionJobCommand;
38
- }($Command));
39
- export { StartTopicsDetectionJobCommand };
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 { StopDominantLanguageDetectionJobRequestFilterSensitiveLog, StopDominantLanguageDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopDominantLanguageDetectionJobCommand, serializeAws_json1_1StopDominantLanguageDetectionJobCommand, } from "../protocols/Aws_json1_1";
6
- var StopDominantLanguageDetectionJobCommand = (function (_super) {
7
- __extends(StopDominantLanguageDetectionJobCommand, _super);
8
- function StopDominantLanguageDetectionJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopDominantLanguageDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopDominantLanguageDetectionJobCommand.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 = "ComprehendClient";
18
- var commandName = "StopDominantLanguageDetectionJobCommand";
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 = "ComprehendClient";
15
+ const commandName = "StopDominantLanguageDetectionJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopDominantLanguageDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopDominantLanguageDetectionJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopDominantLanguageDetectionJobCommand.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_1StopDominantLanguageDetectionJobCommand(input, context);
33
- };
34
- StopDominantLanguageDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopDominantLanguageDetectionJobCommand(output, context);
36
- };
37
- return StopDominantLanguageDetectionJobCommand;
38
- }($Command));
39
- export { StopDominantLanguageDetectionJobCommand };
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 { StopEntitiesDetectionJobRequestFilterSensitiveLog, StopEntitiesDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopEntitiesDetectionJobCommand, serializeAws_json1_1StopEntitiesDetectionJobCommand, } from "../protocols/Aws_json1_1";
6
- var StopEntitiesDetectionJobCommand = (function (_super) {
7
- __extends(StopEntitiesDetectionJobCommand, _super);
8
- function StopEntitiesDetectionJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopEntitiesDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopEntitiesDetectionJobCommand.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 = "ComprehendClient";
18
- var commandName = "StopEntitiesDetectionJobCommand";
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 = "ComprehendClient";
15
+ const commandName = "StopEntitiesDetectionJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopEntitiesDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopEntitiesDetectionJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopEntitiesDetectionJobCommand.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_1StopEntitiesDetectionJobCommand(input, context);
33
- };
34
- StopEntitiesDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopEntitiesDetectionJobCommand(output, context);
36
- };
37
- return StopEntitiesDetectionJobCommand;
38
- }($Command));
39
- export { StopEntitiesDetectionJobCommand };
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 { StopEventsDetectionJobRequestFilterSensitiveLog, StopEventsDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopEventsDetectionJobCommand, serializeAws_json1_1StopEventsDetectionJobCommand, } from "../protocols/Aws_json1_1";
6
- var StopEventsDetectionJobCommand = (function (_super) {
7
- __extends(StopEventsDetectionJobCommand, _super);
8
- function StopEventsDetectionJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopEventsDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopEventsDetectionJobCommand.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 = "ComprehendClient";
18
- var commandName = "StopEventsDetectionJobCommand";
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 = "ComprehendClient";
15
+ const commandName = "StopEventsDetectionJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopEventsDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopEventsDetectionJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopEventsDetectionJobCommand.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_1StopEventsDetectionJobCommand(input, context);
33
- };
34
- StopEventsDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopEventsDetectionJobCommand(output, context);
36
- };
37
- return StopEventsDetectionJobCommand;
38
- }($Command));
39
- export { StopEventsDetectionJobCommand };
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 { StopKeyPhrasesDetectionJobRequestFilterSensitiveLog, StopKeyPhrasesDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand, serializeAws_json1_1StopKeyPhrasesDetectionJobCommand, } from "../protocols/Aws_json1_1";
6
- var StopKeyPhrasesDetectionJobCommand = (function (_super) {
7
- __extends(StopKeyPhrasesDetectionJobCommand, _super);
8
- function StopKeyPhrasesDetectionJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopKeyPhrasesDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopKeyPhrasesDetectionJobCommand.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 = "ComprehendClient";
18
- var commandName = "StopKeyPhrasesDetectionJobCommand";
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 = "ComprehendClient";
15
+ const commandName = "StopKeyPhrasesDetectionJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopKeyPhrasesDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopKeyPhrasesDetectionJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopKeyPhrasesDetectionJobCommand.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_1StopKeyPhrasesDetectionJobCommand(input, context);
33
- };
34
- StopKeyPhrasesDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand(output, context);
36
- };
37
- return StopKeyPhrasesDetectionJobCommand;
38
- }($Command));
39
- export { StopKeyPhrasesDetectionJobCommand };
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 { StopPiiEntitiesDetectionJobRequestFilterSensitiveLog, StopPiiEntitiesDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand, serializeAws_json1_1StopPiiEntitiesDetectionJobCommand, } from "../protocols/Aws_json1_1";
6
- var StopPiiEntitiesDetectionJobCommand = (function (_super) {
7
- __extends(StopPiiEntitiesDetectionJobCommand, _super);
8
- function StopPiiEntitiesDetectionJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopPiiEntitiesDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopPiiEntitiesDetectionJobCommand.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 = "ComprehendClient";
18
- var commandName = "StopPiiEntitiesDetectionJobCommand";
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 = "ComprehendClient";
15
+ const commandName = "StopPiiEntitiesDetectionJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopPiiEntitiesDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopPiiEntitiesDetectionJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopPiiEntitiesDetectionJobCommand.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_1StopPiiEntitiesDetectionJobCommand(input, context);
33
- };
34
- StopPiiEntitiesDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand(output, context);
36
- };
37
- return StopPiiEntitiesDetectionJobCommand;
38
- }($Command));
39
- export { StopPiiEntitiesDetectionJobCommand };
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 { StopSentimentDetectionJobRequestFilterSensitiveLog, StopSentimentDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopSentimentDetectionJobCommand, serializeAws_json1_1StopSentimentDetectionJobCommand, } from "../protocols/Aws_json1_1";
6
- var StopSentimentDetectionJobCommand = (function (_super) {
7
- __extends(StopSentimentDetectionJobCommand, _super);
8
- function StopSentimentDetectionJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopSentimentDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopSentimentDetectionJobCommand.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 = "ComprehendClient";
18
- var commandName = "StopSentimentDetectionJobCommand";
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 = "ComprehendClient";
15
+ const commandName = "StopSentimentDetectionJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopSentimentDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopSentimentDetectionJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopSentimentDetectionJobCommand.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_1StopSentimentDetectionJobCommand(input, context);
33
- };
34
- StopSentimentDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopSentimentDetectionJobCommand(output, context);
36
- };
37
- return StopSentimentDetectionJobCommand;
38
- }($Command));
39
- export { StopSentimentDetectionJobCommand };
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 { StopTargetedSentimentDetectionJobRequestFilterSensitiveLog, StopTargetedSentimentDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand, serializeAws_json1_1StopTargetedSentimentDetectionJobCommand, } from "../protocols/Aws_json1_1";
6
- var StopTargetedSentimentDetectionJobCommand = (function (_super) {
7
- __extends(StopTargetedSentimentDetectionJobCommand, _super);
8
- function StopTargetedSentimentDetectionJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopTargetedSentimentDetectionJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopTargetedSentimentDetectionJobCommand.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 = "ComprehendClient";
18
- var commandName = "StopTargetedSentimentDetectionJobCommand";
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 = "ComprehendClient";
15
+ const commandName = "StopTargetedSentimentDetectionJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopTargetedSentimentDetectionJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopTargetedSentimentDetectionJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopTargetedSentimentDetectionJobCommand.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_1StopTargetedSentimentDetectionJobCommand(input, context);
33
- };
34
- StopTargetedSentimentDetectionJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand(output, context);
36
- };
37
- return StopTargetedSentimentDetectionJobCommand;
38
- }($Command));
39
- export { StopTargetedSentimentDetectionJobCommand };
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 { StopTrainingDocumentClassifierRequestFilterSensitiveLog, StopTrainingDocumentClassifierResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopTrainingDocumentClassifierCommand, serializeAws_json1_1StopTrainingDocumentClassifierCommand, } from "../protocols/Aws_json1_1";
6
- var StopTrainingDocumentClassifierCommand = (function (_super) {
7
- __extends(StopTrainingDocumentClassifierCommand, _super);
8
- function StopTrainingDocumentClassifierCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopTrainingDocumentClassifierCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopTrainingDocumentClassifierCommand.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 = "ComprehendClient";
18
- var commandName = "StopTrainingDocumentClassifierCommand";
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 = "ComprehendClient";
15
+ const commandName = "StopTrainingDocumentClassifierCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopTrainingDocumentClassifierRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopTrainingDocumentClassifierResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopTrainingDocumentClassifierCommand.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_1StopTrainingDocumentClassifierCommand(input, context);
33
- };
34
- StopTrainingDocumentClassifierCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopTrainingDocumentClassifierCommand(output, context);
36
- };
37
- return StopTrainingDocumentClassifierCommand;
38
- }($Command));
39
- export { StopTrainingDocumentClassifierCommand };
31
+ }
32
+ }