@aws-sdk/client-comprehend 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 (98) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Comprehend.js +301 -294
  4. package/dist-es/ComprehendClient.js +28 -22
  5. package/dist-es/commands/BatchDetectDominantLanguageCommand.js +28 -21
  6. package/dist-es/commands/BatchDetectEntitiesCommand.js +28 -21
  7. package/dist-es/commands/BatchDetectKeyPhrasesCommand.js +28 -21
  8. package/dist-es/commands/BatchDetectSentimentCommand.js +28 -21
  9. package/dist-es/commands/BatchDetectSyntaxCommand.js +28 -21
  10. package/dist-es/commands/BatchDetectTargetedSentimentCommand.js +28 -21
  11. package/dist-es/commands/ClassifyDocumentCommand.js +28 -21
  12. package/dist-es/commands/ContainsPiiEntitiesCommand.js +28 -21
  13. package/dist-es/commands/CreateDocumentClassifierCommand.js +28 -21
  14. package/dist-es/commands/CreateEndpointCommand.js +28 -21
  15. package/dist-es/commands/CreateEntityRecognizerCommand.js +28 -21
  16. package/dist-es/commands/DeleteDocumentClassifierCommand.js +28 -21
  17. package/dist-es/commands/DeleteEndpointCommand.js +28 -21
  18. package/dist-es/commands/DeleteEntityRecognizerCommand.js +28 -21
  19. package/dist-es/commands/DeleteResourcePolicyCommand.js +28 -21
  20. package/dist-es/commands/DescribeDocumentClassificationJobCommand.js +28 -21
  21. package/dist-es/commands/DescribeDocumentClassifierCommand.js +28 -21
  22. package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js +28 -21
  23. package/dist-es/commands/DescribeEndpointCommand.js +28 -21
  24. package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js +28 -21
  25. package/dist-es/commands/DescribeEntityRecognizerCommand.js +28 -21
  26. package/dist-es/commands/DescribeEventsDetectionJobCommand.js +28 -21
  27. package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js +28 -21
  28. package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js +28 -21
  29. package/dist-es/commands/DescribeResourcePolicyCommand.js +28 -21
  30. package/dist-es/commands/DescribeSentimentDetectionJobCommand.js +28 -21
  31. package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +28 -21
  32. package/dist-es/commands/DescribeTopicsDetectionJobCommand.js +28 -21
  33. package/dist-es/commands/DetectDominantLanguageCommand.js +28 -21
  34. package/dist-es/commands/DetectEntitiesCommand.js +28 -21
  35. package/dist-es/commands/DetectKeyPhrasesCommand.js +28 -21
  36. package/dist-es/commands/DetectPiiEntitiesCommand.js +28 -21
  37. package/dist-es/commands/DetectSentimentCommand.js +28 -21
  38. package/dist-es/commands/DetectSyntaxCommand.js +28 -21
  39. package/dist-es/commands/DetectTargetedSentimentCommand.js +28 -21
  40. package/dist-es/commands/ImportModelCommand.js +28 -21
  41. package/dist-es/commands/ListDocumentClassificationJobsCommand.js +28 -21
  42. package/dist-es/commands/ListDocumentClassifierSummariesCommand.js +28 -21
  43. package/dist-es/commands/ListDocumentClassifiersCommand.js +28 -21
  44. package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js +28 -21
  45. package/dist-es/commands/ListEndpointsCommand.js +28 -21
  46. package/dist-es/commands/ListEntitiesDetectionJobsCommand.js +28 -21
  47. package/dist-es/commands/ListEntityRecognizerSummariesCommand.js +28 -21
  48. package/dist-es/commands/ListEntityRecognizersCommand.js +28 -21
  49. package/dist-es/commands/ListEventsDetectionJobsCommand.js +28 -21
  50. package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js +28 -21
  51. package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js +28 -21
  52. package/dist-es/commands/ListSentimentDetectionJobsCommand.js +28 -21
  53. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  54. package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +28 -21
  55. package/dist-es/commands/ListTopicsDetectionJobsCommand.js +28 -21
  56. package/dist-es/commands/PutResourcePolicyCommand.js +28 -21
  57. package/dist-es/commands/StartDocumentClassificationJobCommand.js +28 -21
  58. package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js +28 -21
  59. package/dist-es/commands/StartEntitiesDetectionJobCommand.js +28 -21
  60. package/dist-es/commands/StartEventsDetectionJobCommand.js +28 -21
  61. package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js +28 -21
  62. package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js +28 -21
  63. package/dist-es/commands/StartSentimentDetectionJobCommand.js +28 -21
  64. package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +28 -21
  65. package/dist-es/commands/StartTopicsDetectionJobCommand.js +28 -21
  66. package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js +28 -21
  67. package/dist-es/commands/StopEntitiesDetectionJobCommand.js +28 -21
  68. package/dist-es/commands/StopEventsDetectionJobCommand.js +28 -21
  69. package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js +28 -21
  70. package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js +28 -21
  71. package/dist-es/commands/StopSentimentDetectionJobCommand.js +28 -21
  72. package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +28 -21
  73. package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +28 -21
  74. package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +28 -21
  75. package/dist-es/commands/TagResourceCommand.js +28 -21
  76. package/dist-es/commands/UntagResourceCommand.js +28 -21
  77. package/dist-es/commands/UpdateEndpointCommand.js +28 -21
  78. package/dist-es/endpoints.js +8 -8
  79. package/dist-es/models/ComprehendServiceException.js +10 -5
  80. package/dist-es/models/models_0.js +416 -856
  81. package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js +68 -25
  82. package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js +68 -25
  83. package/dist-es/pagination/ListDocumentClassifiersPaginator.js +68 -25
  84. package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js +68 -25
  85. package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js +68 -25
  86. package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js +68 -25
  87. package/dist-es/pagination/ListEntityRecognizersPaginator.js +68 -25
  88. package/dist-es/pagination/ListEventsDetectionJobsPaginator.js +68 -25
  89. package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js +68 -25
  90. package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js +68 -25
  91. package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +68 -25
  92. package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js +68 -25
  93. package/dist-es/protocols/Aws_json1_1.js +6388 -5054
  94. package/dist-es/runtimeConfig.browser.js +12 -26
  95. package/dist-es/runtimeConfig.js +12 -30
  96. package/dist-es/runtimeConfig.native.js +5 -8
  97. package/dist-es/runtimeConfig.shared.js +11 -8
  98. 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 { ListTargetedSentimentDetectionJobsRequestFilterSensitiveLog, ListTargetedSentimentDetectionJobsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand, serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand, } from "../protocols/Aws_json1_1";
5
- export class ListTargetedSentimentDetectionJobsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTargetedSentimentDetectionJobsCommand = (function (_super) {
7
+ __extends(ListTargetedSentimentDetectionJobsCommand, _super);
8
+ function ListTargetedSentimentDetectionJobsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTargetedSentimentDetectionJobsCommand.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 = "ComprehendClient";
15
- const commandName = "ListTargetedSentimentDetectionJobsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "ListTargetedSentimentDetectionJobsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTargetedSentimentDetectionJobsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTargetedSentimentDetectionJobsResponseFilterSensitiveLog,
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
+ ListTargetedSentimentDetectionJobsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTargetedSentimentDetectionJobsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTargetedSentimentDetectionJobsCommand;
38
+ }($Command));
39
+ export { ListTargetedSentimentDetectionJobsCommand };
@@ -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 { ListTopicsDetectionJobsRequestFilterSensitiveLog, ListTopicsDetectionJobsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListTopicsDetectionJobsCommand, serializeAws_json1_1ListTopicsDetectionJobsCommand, } from "../protocols/Aws_json1_1";
5
- export class ListTopicsDetectionJobsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTopicsDetectionJobsCommand = (function (_super) {
7
+ __extends(ListTopicsDetectionJobsCommand, _super);
8
+ function ListTopicsDetectionJobsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTopicsDetectionJobsCommand.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 = "ComprehendClient";
15
- const commandName = "ListTopicsDetectionJobsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "ListTopicsDetectionJobsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTopicsDetectionJobsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTopicsDetectionJobsResponseFilterSensitiveLog,
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
+ ListTopicsDetectionJobsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListTopicsDetectionJobsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTopicsDetectionJobsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListTopicsDetectionJobsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTopicsDetectionJobsCommand;
38
+ }($Command));
39
+ export { ListTopicsDetectionJobsCommand };
@@ -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 { PutResourcePolicyRequestFilterSensitiveLog, PutResourcePolicyResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1PutResourcePolicyCommand, serializeAws_json1_1PutResourcePolicyCommand, } from "../protocols/Aws_json1_1";
5
- export class PutResourcePolicyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var PutResourcePolicyCommand = (function (_super) {
7
+ __extends(PutResourcePolicyCommand, _super);
8
+ function PutResourcePolicyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ PutResourcePolicyCommand.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 = "ComprehendClient";
15
- const commandName = "PutResourcePolicyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "PutResourcePolicyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: PutResourcePolicyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: PutResourcePolicyResponseFilterSensitiveLog,
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
+ PutResourcePolicyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1PutResourcePolicyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ PutResourcePolicyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1PutResourcePolicyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return PutResourcePolicyCommand;
38
+ }($Command));
39
+ export { PutResourcePolicyCommand };
@@ -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 { StartDocumentClassificationJobRequestFilterSensitiveLog, StartDocumentClassificationJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartDocumentClassificationJobCommand, serializeAws_json1_1StartDocumentClassificationJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StartDocumentClassificationJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartDocumentClassificationJobCommand = (function (_super) {
7
+ __extends(StartDocumentClassificationJobCommand, _super);
8
+ function StartDocumentClassificationJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartDocumentClassificationJobCommand.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 = "ComprehendClient";
15
- const commandName = "StartDocumentClassificationJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "StartDocumentClassificationJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartDocumentClassificationJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartDocumentClassificationJobResponseFilterSensitiveLog,
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
+ StartDocumentClassificationJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartDocumentClassificationJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartDocumentClassificationJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartDocumentClassificationJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartDocumentClassificationJobCommand;
38
+ }($Command));
39
+ export { StartDocumentClassificationJobCommand };
@@ -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 { StartDominantLanguageDetectionJobRequestFilterSensitiveLog, StartDominantLanguageDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartDominantLanguageDetectionJobCommand, serializeAws_json1_1StartDominantLanguageDetectionJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StartDominantLanguageDetectionJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartDominantLanguageDetectionJobCommand = (function (_super) {
7
+ __extends(StartDominantLanguageDetectionJobCommand, _super);
8
+ function StartDominantLanguageDetectionJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartDominantLanguageDetectionJobCommand.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 = "ComprehendClient";
15
- const commandName = "StartDominantLanguageDetectionJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "StartDominantLanguageDetectionJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartDominantLanguageDetectionJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartDominantLanguageDetectionJobResponseFilterSensitiveLog,
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
+ StartDominantLanguageDetectionJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartDominantLanguageDetectionJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartDominantLanguageDetectionJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartDominantLanguageDetectionJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartDominantLanguageDetectionJobCommand;
38
+ }($Command));
39
+ export { StartDominantLanguageDetectionJobCommand };
@@ -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 { StartEntitiesDetectionJobRequestFilterSensitiveLog, StartEntitiesDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartEntitiesDetectionJobCommand, serializeAws_json1_1StartEntitiesDetectionJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StartEntitiesDetectionJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartEntitiesDetectionJobCommand = (function (_super) {
7
+ __extends(StartEntitiesDetectionJobCommand, _super);
8
+ function StartEntitiesDetectionJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartEntitiesDetectionJobCommand.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 = "ComprehendClient";
15
- const commandName = "StartEntitiesDetectionJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "StartEntitiesDetectionJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartEntitiesDetectionJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartEntitiesDetectionJobResponseFilterSensitiveLog,
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
+ StartEntitiesDetectionJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartEntitiesDetectionJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartEntitiesDetectionJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartEntitiesDetectionJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartEntitiesDetectionJobCommand;
38
+ }($Command));
39
+ export { StartEntitiesDetectionJobCommand };
@@ -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 { StartEventsDetectionJobRequestFilterSensitiveLog, StartEventsDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartEventsDetectionJobCommand, serializeAws_json1_1StartEventsDetectionJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StartEventsDetectionJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartEventsDetectionJobCommand = (function (_super) {
7
+ __extends(StartEventsDetectionJobCommand, _super);
8
+ function StartEventsDetectionJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartEventsDetectionJobCommand.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 = "ComprehendClient";
15
- const commandName = "StartEventsDetectionJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "StartEventsDetectionJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartEventsDetectionJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartEventsDetectionJobResponseFilterSensitiveLog,
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
+ StartEventsDetectionJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartEventsDetectionJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartEventsDetectionJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartEventsDetectionJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartEventsDetectionJobCommand;
38
+ }($Command));
39
+ export { StartEventsDetectionJobCommand };
@@ -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 { StartKeyPhrasesDetectionJobRequestFilterSensitiveLog, StartKeyPhrasesDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand, serializeAws_json1_1StartKeyPhrasesDetectionJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StartKeyPhrasesDetectionJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartKeyPhrasesDetectionJobCommand = (function (_super) {
7
+ __extends(StartKeyPhrasesDetectionJobCommand, _super);
8
+ function StartKeyPhrasesDetectionJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartKeyPhrasesDetectionJobCommand.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 = "ComprehendClient";
15
- const commandName = "StartKeyPhrasesDetectionJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "StartKeyPhrasesDetectionJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartKeyPhrasesDetectionJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartKeyPhrasesDetectionJobResponseFilterSensitiveLog,
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
+ StartKeyPhrasesDetectionJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartKeyPhrasesDetectionJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartKeyPhrasesDetectionJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartKeyPhrasesDetectionJobCommand;
38
+ }($Command));
39
+ export { StartKeyPhrasesDetectionJobCommand };
@@ -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 { StartPiiEntitiesDetectionJobRequestFilterSensitiveLog, StartPiiEntitiesDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand, serializeAws_json1_1StartPiiEntitiesDetectionJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StartPiiEntitiesDetectionJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartPiiEntitiesDetectionJobCommand = (function (_super) {
7
+ __extends(StartPiiEntitiesDetectionJobCommand, _super);
8
+ function StartPiiEntitiesDetectionJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartPiiEntitiesDetectionJobCommand.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 = "ComprehendClient";
15
- const commandName = "StartPiiEntitiesDetectionJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "StartPiiEntitiesDetectionJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartPiiEntitiesDetectionJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartPiiEntitiesDetectionJobResponseFilterSensitiveLog,
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
+ StartPiiEntitiesDetectionJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartPiiEntitiesDetectionJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartPiiEntitiesDetectionJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartPiiEntitiesDetectionJobCommand;
38
+ }($Command));
39
+ export { StartPiiEntitiesDetectionJobCommand };
@@ -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 { StartSentimentDetectionJobRequestFilterSensitiveLog, StartSentimentDetectionJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartSentimentDetectionJobCommand, serializeAws_json1_1StartSentimentDetectionJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StartSentimentDetectionJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartSentimentDetectionJobCommand = (function (_super) {
7
+ __extends(StartSentimentDetectionJobCommand, _super);
8
+ function StartSentimentDetectionJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartSentimentDetectionJobCommand.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 = "ComprehendClient";
15
- const commandName = "StartSentimentDetectionJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ComprehendClient";
18
+ var commandName = "StartSentimentDetectionJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartSentimentDetectionJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartSentimentDetectionJobResponseFilterSensitiveLog,
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
+ StartSentimentDetectionJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartSentimentDetectionJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartSentimentDetectionJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartSentimentDetectionJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartSentimentDetectionJobCommand;
38
+ }($Command));
39
+ export { StartSentimentDetectionJobCommand };