@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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/Comprehend.js +301 -294
- package/dist-es/ComprehendClient.js +28 -22
- package/dist-es/commands/BatchDetectDominantLanguageCommand.js +28 -21
- package/dist-es/commands/BatchDetectEntitiesCommand.js +28 -21
- package/dist-es/commands/BatchDetectKeyPhrasesCommand.js +28 -21
- package/dist-es/commands/BatchDetectSentimentCommand.js +28 -21
- package/dist-es/commands/BatchDetectSyntaxCommand.js +28 -21
- package/dist-es/commands/BatchDetectTargetedSentimentCommand.js +28 -21
- package/dist-es/commands/ClassifyDocumentCommand.js +28 -21
- package/dist-es/commands/ContainsPiiEntitiesCommand.js +28 -21
- package/dist-es/commands/CreateDocumentClassifierCommand.js +28 -21
- package/dist-es/commands/CreateEndpointCommand.js +28 -21
- package/dist-es/commands/CreateEntityRecognizerCommand.js +28 -21
- package/dist-es/commands/DeleteDocumentClassifierCommand.js +28 -21
- package/dist-es/commands/DeleteEndpointCommand.js +28 -21
- package/dist-es/commands/DeleteEntityRecognizerCommand.js +28 -21
- package/dist-es/commands/DeleteResourcePolicyCommand.js +28 -21
- package/dist-es/commands/DescribeDocumentClassificationJobCommand.js +28 -21
- package/dist-es/commands/DescribeDocumentClassifierCommand.js +28 -21
- package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeEndpointCommand.js +28 -21
- package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeEntityRecognizerCommand.js +28 -21
- package/dist-es/commands/DescribeEventsDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeResourcePolicyCommand.js +28 -21
- package/dist-es/commands/DescribeSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/DescribeTopicsDetectionJobCommand.js +28 -21
- package/dist-es/commands/DetectDominantLanguageCommand.js +28 -21
- package/dist-es/commands/DetectEntitiesCommand.js +28 -21
- package/dist-es/commands/DetectKeyPhrasesCommand.js +28 -21
- package/dist-es/commands/DetectPiiEntitiesCommand.js +28 -21
- package/dist-es/commands/DetectSentimentCommand.js +28 -21
- package/dist-es/commands/DetectSyntaxCommand.js +28 -21
- package/dist-es/commands/DetectTargetedSentimentCommand.js +28 -21
- package/dist-es/commands/ImportModelCommand.js +28 -21
- package/dist-es/commands/ListDocumentClassificationJobsCommand.js +28 -21
- package/dist-es/commands/ListDocumentClassifierSummariesCommand.js +28 -21
- package/dist-es/commands/ListDocumentClassifiersCommand.js +28 -21
- package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListEndpointsCommand.js +28 -21
- package/dist-es/commands/ListEntitiesDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListEntityRecognizerSummariesCommand.js +28 -21
- package/dist-es/commands/ListEntityRecognizersCommand.js +28 -21
- package/dist-es/commands/ListEventsDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListSentimentDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +28 -21
- package/dist-es/commands/ListTopicsDetectionJobsCommand.js +28 -21
- package/dist-es/commands/PutResourcePolicyCommand.js +28 -21
- package/dist-es/commands/StartDocumentClassificationJobCommand.js +28 -21
- package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartEventsDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/StartTopicsDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopEventsDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +28 -21
- package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +28 -21
- package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateEndpointCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ComprehendServiceException.js +10 -5
- package/dist-es/models/models_0.js +416 -856
- package/dist-es/pagination/ListDocumentClassificationJobsPaginator.js +68 -25
- package/dist-es/pagination/ListDocumentClassifierSummariesPaginator.js +68 -25
- package/dist-es/pagination/ListDocumentClassifiersPaginator.js +68 -25
- package/dist-es/pagination/ListDominantLanguageDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListEntitiesDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListEntityRecognizerSummariesPaginator.js +68 -25
- package/dist-es/pagination/ListEntityRecognizersPaginator.js +68 -25
- package/dist-es/pagination/ListEventsDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListKeyPhrasesDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListSentimentDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +68 -25
- package/dist-es/pagination/ListTopicsDetectionJobsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +6388 -5054
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
ComprehendClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return ComprehendClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { ComprehendClient };
|
|
@@ -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 { BatchDetectDominantLanguageRequestFilterSensitiveLog, BatchDetectDominantLanguageResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1BatchDetectDominantLanguageCommand, serializeAws_json1_1BatchDetectDominantLanguageCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
BatchDetectDominantLanguageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 = "BatchDetectDominantLanguageCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: BatchDetectDominantLanguageRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: BatchDetectDominantLanguageResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1BatchDetectDominantLanguageCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
BatchDetectDominantLanguageCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1BatchDetectDominantLanguageCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return BatchDetectDominantLanguageCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BatchDetectDominantLanguageCommand };
|
|
@@ -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 { BatchDetectEntitiesRequestFilterSensitiveLog, BatchDetectEntitiesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1BatchDetectEntitiesCommand, serializeAws_json1_1BatchDetectEntitiesCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
BatchDetectEntitiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 = "BatchDetectEntitiesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: BatchDetectEntitiesRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: BatchDetectEntitiesResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1BatchDetectEntitiesCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
BatchDetectEntitiesCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1BatchDetectEntitiesCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return BatchDetectEntitiesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BatchDetectEntitiesCommand };
|
|
@@ -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 { BatchDetectKeyPhrasesRequestFilterSensitiveLog, BatchDetectKeyPhrasesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1BatchDetectKeyPhrasesCommand, serializeAws_json1_1BatchDetectKeyPhrasesCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
BatchDetectKeyPhrasesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 = "BatchDetectKeyPhrasesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: BatchDetectKeyPhrasesRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: BatchDetectKeyPhrasesResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1BatchDetectKeyPhrasesCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
BatchDetectKeyPhrasesCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1BatchDetectKeyPhrasesCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return BatchDetectKeyPhrasesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BatchDetectKeyPhrasesCommand };
|
|
@@ -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 { BatchDetectSentimentRequestFilterSensitiveLog, BatchDetectSentimentResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1BatchDetectSentimentCommand, serializeAws_json1_1BatchDetectSentimentCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
BatchDetectSentimentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 = "BatchDetectSentimentCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: BatchDetectSentimentRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: BatchDetectSentimentResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1BatchDetectSentimentCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
BatchDetectSentimentCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1BatchDetectSentimentCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return BatchDetectSentimentCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BatchDetectSentimentCommand };
|
|
@@ -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 { BatchDetectSyntaxRequestFilterSensitiveLog, BatchDetectSyntaxResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1BatchDetectSyntaxCommand, serializeAws_json1_1BatchDetectSyntaxCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
BatchDetectSyntaxCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 = "BatchDetectSyntaxCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: BatchDetectSyntaxRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: BatchDetectSyntaxResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1BatchDetectSyntaxCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
BatchDetectSyntaxCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1BatchDetectSyntaxCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return BatchDetectSyntaxCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BatchDetectSyntaxCommand };
|
|
@@ -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 { BatchDetectTargetedSentimentRequestFilterSensitiveLog, BatchDetectTargetedSentimentResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1BatchDetectTargetedSentimentCommand, serializeAws_json1_1BatchDetectTargetedSentimentCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
BatchDetectTargetedSentimentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 = "BatchDetectTargetedSentimentCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: BatchDetectTargetedSentimentRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: BatchDetectTargetedSentimentResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1BatchDetectTargetedSentimentCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
BatchDetectTargetedSentimentCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1BatchDetectTargetedSentimentCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return BatchDetectTargetedSentimentCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BatchDetectTargetedSentimentCommand };
|
|
@@ -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 { ClassifyDocumentRequestFilterSensitiveLog, ClassifyDocumentResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1ClassifyDocumentCommand, serializeAws_json1_1ClassifyDocumentCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ClassifyDocumentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 = "ClassifyDocumentCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ClassifyDocumentRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ClassifyDocumentResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1ClassifyDocumentCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ClassifyDocumentCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1ClassifyDocumentCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ClassifyDocumentCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ClassifyDocumentCommand };
|
|
@@ -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 { ContainsPiiEntitiesRequestFilterSensitiveLog, ContainsPiiEntitiesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1ContainsPiiEntitiesCommand, serializeAws_json1_1ContainsPiiEntitiesCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ContainsPiiEntitiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 = "ContainsPiiEntitiesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ContainsPiiEntitiesRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ContainsPiiEntitiesResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1ContainsPiiEntitiesCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ContainsPiiEntitiesCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1ContainsPiiEntitiesCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ContainsPiiEntitiesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ContainsPiiEntitiesCommand };
|
|
@@ -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 { CreateDocumentClassifierRequestFilterSensitiveLog, CreateDocumentClassifierResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateDocumentClassifierCommand, serializeAws_json1_1CreateDocumentClassifierCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateDocumentClassifierCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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 = "CreateDocumentClassifierCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateDocumentClassifierRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateDocumentClassifierResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
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) {
|
|
27
32
|
return serializeAws_json1_1CreateDocumentClassifierCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateDocumentClassifierCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateDocumentClassifierCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateDocumentClassifierCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateDocumentClassifierCommand };
|