@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
|
@@ -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>Starts an asynchronous key phrase detection job for a collection of documents. Use the
|
|
10
|
-
* operation to track the status of a
|
|
11
|
-
* job.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { ComprehendClient, StartKeyPhrasesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
16
|
-
* // const { ComprehendClient, StartKeyPhrasesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
17
|
-
* const client = new ComprehendClient(config);
|
|
18
|
-
* const command = new StartKeyPhrasesDetectionJobCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link StartKeyPhrasesDetectionJobCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link StartKeyPhrasesDetectionJobCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class StartKeyPhrasesDetectionJobCommand 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>Starts an asynchronous PII entity detection job for a collection 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, StartPiiEntitiesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
14
|
-
* // const { ComprehendClient, StartPiiEntitiesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
15
|
-
* const client = new ComprehendClient(config);
|
|
16
|
-
* const command = new StartPiiEntitiesDetectionJobCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link StartPiiEntitiesDetectionJobCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link StartPiiEntitiesDetectionJobCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class StartPiiEntitiesDetectionJobCommand 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>Starts an asynchronous sentiment detection job for a collection of documents. use the
|
|
10
|
-
* operation to track the status of a
|
|
11
|
-
* job.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { ComprehendClient, StartSentimentDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
16
|
-
* // const { ComprehendClient, StartSentimentDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
17
|
-
* const client = new ComprehendClient(config);
|
|
18
|
-
* const command = new StartSentimentDetectionJobCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link StartSentimentDetectionJobCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link StartSentimentDetectionJobCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class StartSentimentDetectionJobCommand 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>Starts an asynchronous topic detection job. Use the
|
|
10
|
-
* <code>DescribeTopicDetectionJob</code> operation to track the status of a 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, StartTopicsDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
15
|
-
* // const { ComprehendClient, StartTopicsDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
16
|
-
* const client = new ComprehendClient(config);
|
|
17
|
-
* const command = new StartTopicsDetectionJobCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link StartTopicsDetectionJobCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link StartTopicsDetectionJobCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class StartTopicsDetectionJobCommand 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,44 +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>Stops a dominant language detection job in progress.</p>
|
|
10
|
-
* <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
|
|
11
|
-
* into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
|
|
12
|
-
* is put into the <code>COMPLETED</code> state; otherwise the job is stopped and put into the
|
|
13
|
-
* <code>STOPPED</code> state.</p>
|
|
14
|
-
* <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
|
|
15
|
-
* <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
|
|
16
|
-
* Internal Request Exception. </p>
|
|
17
|
-
* <p>When a job is stopped, any documents already processed are written to the output
|
|
18
|
-
* location.</p>
|
|
19
|
-
* @example
|
|
20
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
21
|
-
* ```javascript
|
|
22
|
-
* import { ComprehendClient, StopDominantLanguageDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
23
|
-
* // const { ComprehendClient, StopDominantLanguageDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
24
|
-
* const client = new ComprehendClient(config);
|
|
25
|
-
* const command = new StopDominantLanguageDetectionJobCommand(input);
|
|
26
|
-
* const response = await client.send(command);
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @see {@link StopDominantLanguageDetectionJobCommandInput} for command's `input` shape.
|
|
30
|
-
* @see {@link StopDominantLanguageDetectionJobCommandOutput} for command's `response` shape.
|
|
31
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
8
|
class StopDominantLanguageDetectionJobCommand extends smithy_client_1.Command {
|
|
35
|
-
// Start section: command_properties
|
|
36
|
-
// End section: command_properties
|
|
37
9
|
constructor(input) {
|
|
38
|
-
// Start section: command_constructor
|
|
39
10
|
super();
|
|
40
11
|
this.input = input;
|
|
41
|
-
// End section: command_constructor
|
|
42
12
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
47
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
48
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,44 +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>Stops an entities detection job in progress.</p>
|
|
10
|
-
* <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
|
|
11
|
-
* into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
|
|
12
|
-
* is put into the <code>COMPLETED</code> state; otherwise the job is stopped and put into the
|
|
13
|
-
* <code>STOPPED</code> state.</p>
|
|
14
|
-
* <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
|
|
15
|
-
* <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
|
|
16
|
-
* Internal Request Exception. </p>
|
|
17
|
-
* <p>When a job is stopped, any documents already processed are written to the output
|
|
18
|
-
* location.</p>
|
|
19
|
-
* @example
|
|
20
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
21
|
-
* ```javascript
|
|
22
|
-
* import { ComprehendClient, StopEntitiesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
23
|
-
* // const { ComprehendClient, StopEntitiesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
24
|
-
* const client = new ComprehendClient(config);
|
|
25
|
-
* const command = new StopEntitiesDetectionJobCommand(input);
|
|
26
|
-
* const response = await client.send(command);
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @see {@link StopEntitiesDetectionJobCommandInput} for command's `input` shape.
|
|
30
|
-
* @see {@link StopEntitiesDetectionJobCommandOutput} for command's `response` shape.
|
|
31
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
8
|
class StopEntitiesDetectionJobCommand extends smithy_client_1.Command {
|
|
35
|
-
// Start section: command_properties
|
|
36
|
-
// End section: command_properties
|
|
37
9
|
constructor(input) {
|
|
38
|
-
// Start section: command_constructor
|
|
39
10
|
super();
|
|
40
11
|
this.input = input;
|
|
41
|
-
// End section: command_constructor
|
|
42
12
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
47
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
48
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>Stops an events detection job in progress.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { ComprehendClient, StopEventsDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
14
|
-
* // const { ComprehendClient, StopEventsDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
15
|
-
* const client = new ComprehendClient(config);
|
|
16
|
-
* const command = new StopEventsDetectionJobCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link StopEventsDetectionJobCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link StopEventsDetectionJobCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class StopEventsDetectionJobCommand 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,44 +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>Stops a key phrases detection job in progress.</p>
|
|
10
|
-
* <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
|
|
11
|
-
* into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
|
|
12
|
-
* is put into the <code>COMPLETED</code> state; otherwise the job is stopped and put into the
|
|
13
|
-
* <code>STOPPED</code> state.</p>
|
|
14
|
-
* <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
|
|
15
|
-
* <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
|
|
16
|
-
* Internal Request Exception. </p>
|
|
17
|
-
* <p>When a job is stopped, any documents already processed are written to the output
|
|
18
|
-
* location.</p>
|
|
19
|
-
* @example
|
|
20
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
21
|
-
* ```javascript
|
|
22
|
-
* import { ComprehendClient, StopKeyPhrasesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
23
|
-
* // const { ComprehendClient, StopKeyPhrasesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
24
|
-
* const client = new ComprehendClient(config);
|
|
25
|
-
* const command = new StopKeyPhrasesDetectionJobCommand(input);
|
|
26
|
-
* const response = await client.send(command);
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @see {@link StopKeyPhrasesDetectionJobCommandInput} for command's `input` shape.
|
|
30
|
-
* @see {@link StopKeyPhrasesDetectionJobCommandOutput} for command's `response` shape.
|
|
31
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
8
|
class StopKeyPhrasesDetectionJobCommand extends smithy_client_1.Command {
|
|
35
|
-
// Start section: command_properties
|
|
36
|
-
// End section: command_properties
|
|
37
9
|
constructor(input) {
|
|
38
|
-
// Start section: command_constructor
|
|
39
10
|
super();
|
|
40
11
|
this.input = input;
|
|
41
|
-
// End section: command_constructor
|
|
42
12
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
47
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
48
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>Stops a PII entities detection job in progress.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { ComprehendClient, StopPiiEntitiesDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
14
|
-
* // const { ComprehendClient, StopPiiEntitiesDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
15
|
-
* const client = new ComprehendClient(config);
|
|
16
|
-
* const command = new StopPiiEntitiesDetectionJobCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link StopPiiEntitiesDetectionJobCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link StopPiiEntitiesDetectionJobCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class StopPiiEntitiesDetectionJobCommand 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,44 +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>Stops a sentiment detection job in progress.</p>
|
|
10
|
-
* <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put
|
|
11
|
-
* into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it
|
|
12
|
-
* is put into the <code>COMPLETED</code> state; otherwise the job is be stopped and put into the
|
|
13
|
-
* <code>STOPPED</code> state.</p>
|
|
14
|
-
* <p>If the job is in the <code>COMPLETED</code> or <code>FAILED</code> state when you call the
|
|
15
|
-
* <code>StopDominantLanguageDetectionJob</code> operation, the operation returns a 400
|
|
16
|
-
* Internal Request Exception. </p>
|
|
17
|
-
* <p>When a job is stopped, any documents already processed are written to the output
|
|
18
|
-
* location.</p>
|
|
19
|
-
* @example
|
|
20
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
21
|
-
* ```javascript
|
|
22
|
-
* import { ComprehendClient, StopSentimentDetectionJobCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
23
|
-
* // const { ComprehendClient, StopSentimentDetectionJobCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
24
|
-
* const client = new ComprehendClient(config);
|
|
25
|
-
* const command = new StopSentimentDetectionJobCommand(input);
|
|
26
|
-
* const response = await client.send(command);
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @see {@link StopSentimentDetectionJobCommandInput} for command's `input` shape.
|
|
30
|
-
* @see {@link StopSentimentDetectionJobCommandOutput} for command's `response` shape.
|
|
31
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
8
|
class StopSentimentDetectionJobCommand extends smithy_client_1.Command {
|
|
35
|
-
// Start section: command_properties
|
|
36
|
-
// End section: command_properties
|
|
37
9
|
constructor(input) {
|
|
38
|
-
// Start section: command_constructor
|
|
39
10
|
super();
|
|
40
11
|
this.input = input;
|
|
41
|
-
// End section: command_constructor
|
|
42
12
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
47
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
48
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,40 +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>Stops a document classifier training job while in progress.</p>
|
|
10
|
-
* <p>If the training job state is <code>TRAINING</code>, the job is marked for termination and
|
|
11
|
-
* put into the <code>STOP_REQUESTED</code> state. If the training job completes before it can be
|
|
12
|
-
* stopped, it is put into the <code>TRAINED</code>; otherwise the training job is stopped and
|
|
13
|
-
* put into the <code>STOPPED</code> state and the service sends back an HTTP 200 response with
|
|
14
|
-
* an empty HTTP body. </p>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { ComprehendClient, StopTrainingDocumentClassifierCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
19
|
-
* // const { ComprehendClient, StopTrainingDocumentClassifierCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
20
|
-
* const client = new ComprehendClient(config);
|
|
21
|
-
* const command = new StopTrainingDocumentClassifierCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link StopTrainingDocumentClassifierCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link StopTrainingDocumentClassifierCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
8
|
class StopTrainingDocumentClassifierCommand extends smithy_client_1.Command {
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
9
|
constructor(input) {
|
|
34
|
-
// Start section: command_constructor
|
|
35
10
|
super();
|
|
36
11
|
this.input = input;
|
|
37
|
-
// End section: command_constructor
|
|
38
12
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
43
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
44
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,40 +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>Stops an entity recognizer training job while in progress.</p>
|
|
10
|
-
* <p>If the training job state is <code>TRAINING</code>, the job is marked for termination and
|
|
11
|
-
* put into the <code>STOP_REQUESTED</code> state. If the training job completes before it can be
|
|
12
|
-
* stopped, it is put into the <code>TRAINED</code>; otherwise the training job is stopped and
|
|
13
|
-
* putted into the <code>STOPPED</code> state and the service sends back an HTTP 200 response
|
|
14
|
-
* with an empty HTTP body.</p>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { ComprehendClient, StopTrainingEntityRecognizerCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
19
|
-
* // const { ComprehendClient, StopTrainingEntityRecognizerCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
20
|
-
* const client = new ComprehendClient(config);
|
|
21
|
-
* const command = new StopTrainingEntityRecognizerCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link StopTrainingEntityRecognizerCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link StopTrainingEntityRecognizerCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
8
|
class StopTrainingEntityRecognizerCommand extends smithy_client_1.Command {
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
9
|
constructor(input) {
|
|
34
|
-
// Start section: command_constructor
|
|
35
10
|
super();
|
|
36
11
|
this.input = input;
|
|
37
|
-
// End section: command_constructor
|
|
38
12
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
43
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
44
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>Associates a specific tag with an Amazon Comprehend resource. A tag is a key-value pair
|
|
10
|
-
* that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with
|
|
11
|
-
* "Sales" as the key might be added to a resource to indicate its use by the sales department.
|
|
12
|
-
* </p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { ComprehendClient, TagResourceCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
17
|
-
* // const { ComprehendClient, TagResourceCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
18
|
-
* const client = new ComprehendClient(config);
|
|
19
|
-
* const command = new TagResourceCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class TagResourceCommand 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,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>Removes a specific tag associated with an Amazon Comprehend resource. </p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { ComprehendClient, UntagResourceCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
14
|
-
* // const { ComprehendClient, UntagResourceCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
15
|
-
* const client = new ComprehendClient(config);
|
|
16
|
-
* const command = new UntagResourceCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UntagResourceCommand 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,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>Updates information about the specified endpoint.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { ComprehendClient, UpdateEndpointCommand } from "@aws-sdk/client-comprehend"; // ES Modules import
|
|
14
|
-
* // const { ComprehendClient, UpdateEndpointCommand } = require("@aws-sdk/client-comprehend"); // CommonJS import
|
|
15
|
-
* const client = new ComprehendClient(config);
|
|
16
|
-
* const command = new UpdateEndpointCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateEndpointCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateEndpointCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link ComprehendClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateEndpointCommand 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);
|