@aws-sdk/client-comprehend 3.36.0 → 3.39.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 +42 -0
- package/dist-cjs/Comprehend.js +0 -6
- package/dist-cjs/ComprehendClient.js +0 -11
- package/dist-cjs/commands/BatchDetectDominantLanguageCommand.js +0 -26
- package/dist-cjs/commands/BatchDetectEntitiesCommand.js +0 -26
- package/dist-cjs/commands/BatchDetectKeyPhrasesCommand.js +0 -24
- package/dist-cjs/commands/BatchDetectSentimentCommand.js +0 -26
- package/dist-cjs/commands/BatchDetectSyntaxCommand.js +0 -25
- package/dist-cjs/commands/ClassifyDocumentCommand.js +0 -25
- package/dist-cjs/commands/ContainsPiiEntitiesCommand.js +0 -26
- package/dist-cjs/commands/CreateDocumentClassifierCommand.js +0 -27
- package/dist-cjs/commands/CreateEndpointCommand.js +0 -26
- package/dist-cjs/commands/CreateEntityRecognizerCommand.js +0 -26
- package/dist-cjs/commands/DeleteDocumentClassifierCommand.js +0 -30
- package/dist-cjs/commands/DeleteEndpointCommand.js +0 -25
- package/dist-cjs/commands/DeleteEntityRecognizerCommand.js +0 -30
- package/dist-cjs/commands/DescribeDocumentClassificationJobCommand.js +0 -25
- package/dist-cjs/commands/DescribeDocumentClassifierCommand.js +0 -24
- package/dist-cjs/commands/DescribeDominantLanguageDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/DescribeEndpointCommand.js +0 -25
- package/dist-cjs/commands/DescribeEntitiesDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/DescribeEntityRecognizerCommand.js +0 -25
- package/dist-cjs/commands/DescribeEventsDetectionJobCommand.js +0 -24
- package/dist-cjs/commands/DescribeKeyPhrasesDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/DescribePiiEntitiesDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/DescribeSentimentDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/DescribeTopicsDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/DetectDominantLanguageCommand.js +0 -25
- package/dist-cjs/commands/DetectEntitiesCommand.js +0 -25
- package/dist-cjs/commands/DetectKeyPhrasesCommand.js +0 -24
- package/dist-cjs/commands/DetectPiiEntitiesCommand.js +0 -25
- package/dist-cjs/commands/DetectSentimentCommand.js +0 -25
- package/dist-cjs/commands/DetectSyntaxCommand.js +0 -25
- package/dist-cjs/commands/ListDocumentClassificationJobsCommand.js +0 -24
- package/dist-cjs/commands/ListDocumentClassifierSummariesCommand.js +0 -24
- package/dist-cjs/commands/ListDocumentClassifiersCommand.js +0 -24
- package/dist-cjs/commands/ListDominantLanguageDetectionJobsCommand.js +0 -24
- package/dist-cjs/commands/ListEndpointsCommand.js +0 -24
- package/dist-cjs/commands/ListEntitiesDetectionJobsCommand.js +0 -24
- package/dist-cjs/commands/ListEntityRecognizerSummariesCommand.js +0 -24
- package/dist-cjs/commands/ListEntityRecognizersCommand.js +0 -29
- package/dist-cjs/commands/ListEventsDetectionJobsCommand.js +0 -24
- package/dist-cjs/commands/ListKeyPhrasesDetectionJobsCommand.js +0 -24
- package/dist-cjs/commands/ListPiiEntitiesDetectionJobsCommand.js +0 -24
- package/dist-cjs/commands/ListSentimentDetectionJobsCommand.js +0 -24
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
- package/dist-cjs/commands/ListTopicsDetectionJobsCommand.js +0 -24
- package/dist-cjs/commands/StartDocumentClassificationJobCommand.js +0 -25
- package/dist-cjs/commands/StartDominantLanguageDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/StartEntitiesDetectionJobCommand.js +0 -28
- package/dist-cjs/commands/StartEventsDetectionJobCommand.js +0 -24
- package/dist-cjs/commands/StartKeyPhrasesDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/StartPiiEntitiesDetectionJobCommand.js +0 -24
- package/dist-cjs/commands/StartSentimentDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/StartTopicsDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/StopDominantLanguageDetectionJobCommand.js +0 -33
- package/dist-cjs/commands/StopEntitiesDetectionJobCommand.js +0 -33
- package/dist-cjs/commands/StopEventsDetectionJobCommand.js +0 -24
- package/dist-cjs/commands/StopKeyPhrasesDetectionJobCommand.js +0 -33
- package/dist-cjs/commands/StopPiiEntitiesDetectionJobCommand.js +0 -24
- package/dist-cjs/commands/StopSentimentDetectionJobCommand.js +0 -33
- package/dist-cjs/commands/StopTrainingDocumentClassifierCommand.js +0 -29
- package/dist-cjs/commands/StopTrainingEntityRecognizerCommand.js +0 -29
- package/dist-cjs/commands/TagResourceCommand.js +0 -27
- package/dist-cjs/commands/UntagResourceCommand.js +0 -24
- package/dist-cjs/commands/UpdateEndpointCommand.js +0 -24
- package/dist-cjs/commands/index.js +66 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +4 -77
- package/dist-cjs/models/models_0.js +0 -609
- package/dist-cjs/pagination/ListDocumentClassificationJobsPaginator.js +0 -10
- package/dist-cjs/pagination/ListDocumentClassifierSummariesPaginator.js +0 -10
- package/dist-cjs/pagination/ListDocumentClassifiersPaginator.js +0 -10
- package/dist-cjs/pagination/ListDominantLanguageDetectionJobsPaginator.js +0 -10
- package/dist-cjs/pagination/ListEntitiesDetectionJobsPaginator.js +0 -10
- package/dist-cjs/pagination/ListEntityRecognizerSummariesPaginator.js +0 -10
- package/dist-cjs/pagination/ListEntityRecognizersPaginator.js +0 -10
- package/dist-cjs/pagination/ListEventsDetectionJobsPaginator.js +0 -10
- package/dist-cjs/pagination/ListKeyPhrasesDetectionJobsPaginator.js +0 -10
- package/dist-cjs/pagination/ListSentimentDetectionJobsPaginator.js +0 -10
- package/dist-cjs/pagination/ListTopicsDetectionJobsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +15 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-es/commands/index.js +63 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +4 -77
- package/dist-es/pagination/index.js +12 -0
- package/dist-types/commands/index.d.ts +63 -0
- package/dist-types/index.d.ts +4 -77
- package/dist-types/pagination/index.d.ts +12 -0
- package/dist-types/ts3.4/Comprehend.d.ts +64 -305
- package/dist-types/ts3.4/ComprehendClient.d.ts +24 -92
- package/dist-types/ts3.4/commands/BatchDetectDominantLanguageCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/BatchDetectEntitiesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/BatchDetectKeyPhrasesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/BatchDetectSentimentCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/BatchDetectSyntaxCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ClassifyDocumentCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ContainsPiiEntitiesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateDocumentClassifierCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/CreateEndpointCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateEntityRecognizerCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteDocumentClassifierCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteEntityRecognizerCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DescribeDocumentClassificationJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeDocumentClassifierCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeDominantLanguageDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeEndpointCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeEntitiesDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeEntityRecognizerCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeEventsDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeKeyPhrasesDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribePiiEntitiesDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeSentimentDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeTopicsDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectDominantLanguageCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectEntitiesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectKeyPhrasesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DetectPiiEntitiesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectSentimentCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectSyntaxCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListDocumentClassificationJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListDocumentClassifierSummariesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListDocumentClassifiersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListDominantLanguageDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEndpointsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEntitiesDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEntityRecognizerSummariesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListEntityRecognizersCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListEventsDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListKeyPhrasesDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListPiiEntitiesDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListSentimentDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTopicsDetectionJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartDocumentClassificationJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/StartDominantLanguageDetectionJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartEntitiesDetectionJobCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/StartEventsDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartKeyPhrasesDetectionJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartPiiEntitiesDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartSentimentDetectionJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartTopicsDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/StopDominantLanguageDetectionJobCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StopEntitiesDetectionJobCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StopEventsDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopKeyPhrasesDetectionJobCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StopPiiEntitiesDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopSentimentDetectionJobCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/StopTrainingDocumentClassifierCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/StopTrainingEntityRecognizerCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +63 -0
- package/dist-types/ts3.4/index.d.ts +4 -77
- package/dist-types/ts3.4/models/models_0.d.ts +884 -3867
- package/dist-types/ts3.4/pagination/index.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +32 -32
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,48 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-comprehend
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
20
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
6
48
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
49
|
|
|
8
50
|
|
package/dist-cjs/Comprehend.js
CHANGED
|
@@ -65,12 +65,6 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
65
65
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
66
66
|
const UpdateEndpointCommand_1 = require("./commands/UpdateEndpointCommand");
|
|
67
67
|
const ComprehendClient_1 = require("./ComprehendClient");
|
|
68
|
-
/**
|
|
69
|
-
* <p>Amazon Comprehend is an AWS service for gaining insight into the content of documents.
|
|
70
|
-
* Use these actions to determine the topics contained in your documents, the topics they
|
|
71
|
-
* discuss, the predominant sentiment expressed in them, the predominant language used, and
|
|
72
|
-
* more.</p>
|
|
73
|
-
*/
|
|
74
68
|
class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
75
69
|
batchDetectDominantLanguage(args, optionsOrCb, cb) {
|
|
76
70
|
const command = new BatchDetectDominantLanguageCommand_1.BatchDetectDominantLanguageCommand(args);
|
|
@@ -10,12 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* <p>Amazon Comprehend is an AWS service for gaining insight into the content of documents.
|
|
15
|
-
* Use these actions to determine the topics contained in your documents, the topics they
|
|
16
|
-
* discuss, the predominant sentiment expressed in them, the predominant language used, and
|
|
17
|
-
* more.</p>
|
|
18
|
-
*/
|
|
19
13
|
class ComprehendClient extends smithy_client_1.Client {
|
|
20
14
|
constructor(configuration) {
|
|
21
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -34,11 +28,6 @@ class ComprehendClient extends smithy_client_1.Client {
|
|
|
34
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
35
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
36
30
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
39
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
40
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
41
|
-
*/
|
|
42
31
|
destroy() {
|
|
43
32
|
super.destroy();
|
|
44
33
|
}
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Determines the dominant language of the input text for a batch of documents. For a list
|
|
10
|
-
* of languages that Amazon Comprehend can detect, see <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html">Amazon Comprehend Supported Languages</a>.
|
|
11
|
-
* </p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { ComprehendClient, BatchDetectDominantLanguageCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
16
|
-
* // const { ComprehendClient, BatchDetectDominantLanguageCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
17
|
-
* const client = new ComprehendClient(config);
|
|
18
|
-
* const command = new BatchDetectDominantLanguageCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link BatchDetectDominantLanguageCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link BatchDetectDominantLanguageCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class BatchDetectDominantLanguageCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Inspects the text of a batch of documents for named entities and returns information
|
|
10
|
-
* about them. For more information about named entities, see <a>how-entities</a>
|
|
11
|
-
* </p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { ComprehendClient, BatchDetectEntitiesCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
16
|
-
* // const { ComprehendClient, BatchDetectEntitiesCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
17
|
-
* const client = new ComprehendClient(config);
|
|
18
|
-
* const command = new BatchDetectEntitiesCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link BatchDetectEntitiesCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link BatchDetectEntitiesCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class BatchDetectEntitiesCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Detects the key noun phrases found in a batch of documents.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { ComprehendClient, BatchDetectKeyPhrasesCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
14
|
-
* // const { ComprehendClient, BatchDetectKeyPhrasesCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
15
|
-
* const client = new ComprehendClient(config);
|
|
16
|
-
* const command = new BatchDetectKeyPhrasesCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link BatchDetectKeyPhrasesCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link BatchDetectKeyPhrasesCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class BatchDetectKeyPhrasesCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Inspects a batch of documents and returns an inference of the prevailing sentiment,
|
|
10
|
-
* <code>POSITIVE</code>, <code>NEUTRAL</code>, <code>MIXED</code>, or <code>NEGATIVE</code>,
|
|
11
|
-
* in each one.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { ComprehendClient, BatchDetectSentimentCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
16
|
-
* // const { ComprehendClient, BatchDetectSentimentCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
17
|
-
* const client = new ComprehendClient(config);
|
|
18
|
-
* const command = new BatchDetectSentimentCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link BatchDetectSentimentCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link BatchDetectSentimentCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class BatchDetectSentimentCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Inspects the text of a batch of documents for the syntax and part of speech of the words
|
|
10
|
-
* in the document and returns information about them. For more information, see <a>how-syntax</a>.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { ComprehendClient, BatchDetectSyntaxCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
15
|
-
* // const { ComprehendClient, BatchDetectSyntaxCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
16
|
-
* const client = new ComprehendClient(config);
|
|
17
|
-
* const command = new BatchDetectSyntaxCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link BatchDetectSyntaxCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link BatchDetectSyntaxCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class BatchDetectSyntaxCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a new document classification request to analyze a single document in real-time,
|
|
10
|
-
* using a previously created and trained custom model and an endpoint.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { ComprehendClient, ClassifyDocumentCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
15
|
-
* // const { ComprehendClient, ClassifyDocumentCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
16
|
-
* const client = new ComprehendClient(config);
|
|
17
|
-
* const command = new ClassifyDocumentCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link ClassifyDocumentCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link ClassifyDocumentCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class ClassifyDocumentCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Analyzes input text for the presence of personally identifiable information (PII) and
|
|
10
|
-
* returns the labels of identified PII entity types such as name, address, bank account number,
|
|
11
|
-
* or phone number.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { ComprehendClient, ContainsPiiEntitiesCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
16
|
-
* // const { ComprehendClient, ContainsPiiEntitiesCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
17
|
-
* const client = new ComprehendClient(config);
|
|
18
|
-
* const command = new ContainsPiiEntitiesCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link ContainsPiiEntitiesCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link ContainsPiiEntitiesCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class ContainsPiiEntitiesCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a new document classifier that you can use to categorize documents. To create a
|
|
10
|
-
* classifier, you provide a set of training documents that labeled with the categories that you
|
|
11
|
-
* want to use. After the classifier is trained you can use it to categorize a set of labeled
|
|
12
|
-
* documents into the categories. For more information, see <a>how-document-classification</a>.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { ComprehendClient, CreateDocumentClassifierCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
17
|
-
* // const { ComprehendClient, CreateDocumentClassifierCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
18
|
-
* const client = new ComprehendClient(config);
|
|
19
|
-
* const command = new CreateDocumentClassifierCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link CreateDocumentClassifierCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link CreateDocumentClassifierCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class CreateDocumentClassifierCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a model-specific endpoint for synchronous inference for a previously trained
|
|
10
|
-
* custom model
|
|
11
|
-
* </p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { ComprehendClient, CreateEndpointCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
16
|
-
* // const { ComprehendClient, CreateEndpointCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
17
|
-
* const client = new ComprehendClient(config);
|
|
18
|
-
* const command = new CreateEndpointCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link CreateEndpointCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link CreateEndpointCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class CreateEndpointCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates an entity recognizer using submitted files. After your
|
|
10
|
-
* <code>CreateEntityRecognizer</code> request is submitted, you can check job status using the
|
|
11
|
-
* API. </p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { ComprehendClient, CreateEntityRecognizerCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
16
|
-
* // const { ComprehendClient, CreateEntityRecognizerCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
17
|
-
* const client = new ComprehendClient(config);
|
|
18
|
-
* const command = new CreateEntityRecognizerCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link CreateEntityRecognizerCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link CreateEntityRecognizerCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class CreateEntityRecognizerCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes a previously created document classifier</p>
|
|
10
|
-
* <p>Only those classifiers that are in terminated states (IN_ERROR, TRAINED) will be deleted.
|
|
11
|
-
* If an active inference job is using the model, a <code>ResourceInUseException</code> will be
|
|
12
|
-
* returned.</p>
|
|
13
|
-
* <p>This is an asynchronous action that puts the classifier into a DELETING state, and it is
|
|
14
|
-
* then removed by a background job. Once removed, the classifier disappears from your account
|
|
15
|
-
* and is no longer available for use. </p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { ComprehendClient, DeleteDocumentClassifierCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
20
|
-
* // const { ComprehendClient, DeleteDocumentClassifierCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
21
|
-
* const client = new ComprehendClient(config);
|
|
22
|
-
* const command = new DeleteDocumentClassifierCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link DeleteDocumentClassifierCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link DeleteDocumentClassifierCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class DeleteDocumentClassifierCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes a model-specific endpoint for a previously-trained custom model. All endpoints
|
|
10
|
-
* must be deleted in order for the model to be deleted.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { ComprehendClient, DeleteEndpointCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
15
|
-
* // const { ComprehendClient, DeleteEndpointCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
16
|
-
* const client = new ComprehendClient(config);
|
|
17
|
-
* const command = new DeleteEndpointCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DeleteEndpointCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DeleteEndpointCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class DeleteEndpointCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes an entity recognizer.</p>
|
|
10
|
-
* <p>Only those recognizers that are in terminated states (IN_ERROR, TRAINED) will be deleted.
|
|
11
|
-
* If an active inference job is using the model, a <code>ResourceInUseException</code> will be
|
|
12
|
-
* returned.</p>
|
|
13
|
-
* <p>This is an asynchronous action that puts the recognizer into a DELETING state, and it is
|
|
14
|
-
* then removed by a background job. Once removed, the recognizer disappears from your account
|
|
15
|
-
* and is no longer available for use. </p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { ComprehendClient, DeleteEntityRecognizerCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
20
|
-
* // const { ComprehendClient, DeleteEntityRecognizerCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
21
|
-
* const client = new ComprehendClient(config);
|
|
22
|
-
* const command = new DeleteEntityRecognizerCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link DeleteEntityRecognizerCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link DeleteEntityRecognizerCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class DeleteEntityRecognizerCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets the properties associated with a document classification job. Use this operation to
|
|
10
|
-
* get the status of a classification job.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { ComprehendClient, DescribeDocumentClassificationJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
15
|
-
* // const { ComprehendClient, DescribeDocumentClassificationJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
16
|
-
* const client = new ComprehendClient(config);
|
|
17
|
-
* const command = new DescribeDocumentClassificationJobCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DescribeDocumentClassificationJobCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DescribeDocumentClassificationJobCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class DescribeDocumentClassificationJobCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|