@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,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var ComprehendClient = (function (_super) {
13
- __extends(ComprehendClient, _super);
14
- function ComprehendClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class ComprehendClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- ComprehendClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return ComprehendClient;
38
- }(__Client));
39
- export { ComprehendClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { BatchDetectDominantLanguageRequestFilterSensitiveLog, BatchDetectDominantLanguageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1BatchDetectDominantLanguageCommand, serializeAws_json1_1BatchDetectDominantLanguageCommand, } from "../protocols/Aws_json1_1";
6
- var BatchDetectDominantLanguageCommand = (function (_super) {
7
- __extends(BatchDetectDominantLanguageCommand, _super);
8
- function BatchDetectDominantLanguageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchDetectDominantLanguageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchDetectDominantLanguageCommand.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 = "BatchDetectDominantLanguageCommand";
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 = "BatchDetectDominantLanguageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchDetectDominantLanguageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchDetectDominantLanguageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchDetectDominantLanguageCommand.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_1BatchDetectDominantLanguageCommand(input, context);
33
- };
34
- BatchDetectDominantLanguageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1BatchDetectDominantLanguageCommand(output, context);
36
- };
37
- return BatchDetectDominantLanguageCommand;
38
- }($Command));
39
- export { BatchDetectDominantLanguageCommand };
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 { BatchDetectEntitiesRequestFilterSensitiveLog, BatchDetectEntitiesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1BatchDetectEntitiesCommand, serializeAws_json1_1BatchDetectEntitiesCommand, } from "../protocols/Aws_json1_1";
6
- var BatchDetectEntitiesCommand = (function (_super) {
7
- __extends(BatchDetectEntitiesCommand, _super);
8
- function BatchDetectEntitiesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchDetectEntitiesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchDetectEntitiesCommand.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 = "BatchDetectEntitiesCommand";
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 = "BatchDetectEntitiesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchDetectEntitiesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchDetectEntitiesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchDetectEntitiesCommand.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_1BatchDetectEntitiesCommand(input, context);
33
- };
34
- BatchDetectEntitiesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1BatchDetectEntitiesCommand(output, context);
36
- };
37
- return BatchDetectEntitiesCommand;
38
- }($Command));
39
- export { BatchDetectEntitiesCommand };
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 { BatchDetectKeyPhrasesRequestFilterSensitiveLog, BatchDetectKeyPhrasesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1BatchDetectKeyPhrasesCommand, serializeAws_json1_1BatchDetectKeyPhrasesCommand, } from "../protocols/Aws_json1_1";
6
- var BatchDetectKeyPhrasesCommand = (function (_super) {
7
- __extends(BatchDetectKeyPhrasesCommand, _super);
8
- function BatchDetectKeyPhrasesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchDetectKeyPhrasesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchDetectKeyPhrasesCommand.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 = "BatchDetectKeyPhrasesCommand";
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 = "BatchDetectKeyPhrasesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchDetectKeyPhrasesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchDetectKeyPhrasesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchDetectKeyPhrasesCommand.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_1BatchDetectKeyPhrasesCommand(input, context);
33
- };
34
- BatchDetectKeyPhrasesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1BatchDetectKeyPhrasesCommand(output, context);
36
- };
37
- return BatchDetectKeyPhrasesCommand;
38
- }($Command));
39
- export { BatchDetectKeyPhrasesCommand };
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 { BatchDetectSentimentRequestFilterSensitiveLog, BatchDetectSentimentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1BatchDetectSentimentCommand, serializeAws_json1_1BatchDetectSentimentCommand, } from "../protocols/Aws_json1_1";
6
- var BatchDetectSentimentCommand = (function (_super) {
7
- __extends(BatchDetectSentimentCommand, _super);
8
- function BatchDetectSentimentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchDetectSentimentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchDetectSentimentCommand.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 = "BatchDetectSentimentCommand";
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 = "BatchDetectSentimentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchDetectSentimentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchDetectSentimentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchDetectSentimentCommand.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_1BatchDetectSentimentCommand(input, context);
33
- };
34
- BatchDetectSentimentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1BatchDetectSentimentCommand(output, context);
36
- };
37
- return BatchDetectSentimentCommand;
38
- }($Command));
39
- export { BatchDetectSentimentCommand };
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 { BatchDetectSyntaxRequestFilterSensitiveLog, BatchDetectSyntaxResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1BatchDetectSyntaxCommand, serializeAws_json1_1BatchDetectSyntaxCommand, } from "../protocols/Aws_json1_1";
6
- var BatchDetectSyntaxCommand = (function (_super) {
7
- __extends(BatchDetectSyntaxCommand, _super);
8
- function BatchDetectSyntaxCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchDetectSyntaxCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchDetectSyntaxCommand.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 = "BatchDetectSyntaxCommand";
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 = "BatchDetectSyntaxCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchDetectSyntaxRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchDetectSyntaxResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchDetectSyntaxCommand.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_1BatchDetectSyntaxCommand(input, context);
33
- };
34
- BatchDetectSyntaxCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1BatchDetectSyntaxCommand(output, context);
36
- };
37
- return BatchDetectSyntaxCommand;
38
- }($Command));
39
- export { BatchDetectSyntaxCommand };
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 { BatchDetectTargetedSentimentRequestFilterSensitiveLog, BatchDetectTargetedSentimentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1BatchDetectTargetedSentimentCommand, serializeAws_json1_1BatchDetectTargetedSentimentCommand, } from "../protocols/Aws_json1_1";
6
- var BatchDetectTargetedSentimentCommand = (function (_super) {
7
- __extends(BatchDetectTargetedSentimentCommand, _super);
8
- function BatchDetectTargetedSentimentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchDetectTargetedSentimentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchDetectTargetedSentimentCommand.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 = "BatchDetectTargetedSentimentCommand";
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 = "BatchDetectTargetedSentimentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchDetectTargetedSentimentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchDetectTargetedSentimentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchDetectTargetedSentimentCommand.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_1BatchDetectTargetedSentimentCommand(input, context);
33
- };
34
- BatchDetectTargetedSentimentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1BatchDetectTargetedSentimentCommand(output, context);
36
- };
37
- return BatchDetectTargetedSentimentCommand;
38
- }($Command));
39
- export { BatchDetectTargetedSentimentCommand };
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 { ClassifyDocumentRequestFilterSensitiveLog, ClassifyDocumentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ClassifyDocumentCommand, serializeAws_json1_1ClassifyDocumentCommand, } from "../protocols/Aws_json1_1";
6
- var ClassifyDocumentCommand = (function (_super) {
7
- __extends(ClassifyDocumentCommand, _super);
8
- function ClassifyDocumentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ClassifyDocumentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ClassifyDocumentCommand.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 = "ClassifyDocumentCommand";
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 = "ClassifyDocumentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ClassifyDocumentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ClassifyDocumentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ClassifyDocumentCommand.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_1ClassifyDocumentCommand(input, context);
33
- };
34
- ClassifyDocumentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ClassifyDocumentCommand(output, context);
36
- };
37
- return ClassifyDocumentCommand;
38
- }($Command));
39
- export { ClassifyDocumentCommand };
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 { ContainsPiiEntitiesRequestFilterSensitiveLog, ContainsPiiEntitiesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ContainsPiiEntitiesCommand, serializeAws_json1_1ContainsPiiEntitiesCommand, } from "../protocols/Aws_json1_1";
6
- var ContainsPiiEntitiesCommand = (function (_super) {
7
- __extends(ContainsPiiEntitiesCommand, _super);
8
- function ContainsPiiEntitiesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ContainsPiiEntitiesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ContainsPiiEntitiesCommand.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 = "ContainsPiiEntitiesCommand";
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 = "ContainsPiiEntitiesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ContainsPiiEntitiesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ContainsPiiEntitiesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ContainsPiiEntitiesCommand.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_1ContainsPiiEntitiesCommand(input, context);
33
- };
34
- ContainsPiiEntitiesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ContainsPiiEntitiesCommand(output, context);
36
- };
37
- return ContainsPiiEntitiesCommand;
38
- }($Command));
39
- export { ContainsPiiEntitiesCommand };
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 { CreateDocumentClassifierRequestFilterSensitiveLog, CreateDocumentClassifierResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateDocumentClassifierCommand, serializeAws_json1_1CreateDocumentClassifierCommand, } from "../protocols/Aws_json1_1";
6
- var CreateDocumentClassifierCommand = (function (_super) {
7
- __extends(CreateDocumentClassifierCommand, _super);
8
- function CreateDocumentClassifierCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDocumentClassifierCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDocumentClassifierCommand.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 = "CreateDocumentClassifierCommand";
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 = "CreateDocumentClassifierCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDocumentClassifierRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDocumentClassifierResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDocumentClassifierCommand.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_1CreateDocumentClassifierCommand(input, context);
33
- };
34
- CreateDocumentClassifierCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateDocumentClassifierCommand(output, context);
36
- };
37
- return CreateDocumentClassifierCommand;
38
- }($Command));
39
- export { CreateDocumentClassifierCommand };
31
+ }
32
+ }