@aws-sdk/client-comprehend 3.278.0 → 3.281.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/README.md +675 -0
- package/dist-cjs/Comprehend.js +165 -0
- package/dist-cjs/commands/CreateDatasetCommand.js +46 -0
- package/dist-cjs/commands/CreateFlywheelCommand.js +46 -0
- package/dist-cjs/commands/DeleteFlywheelCommand.js +46 -0
- package/dist-cjs/commands/DescribeDatasetCommand.js +46 -0
- package/dist-cjs/commands/DescribeFlywheelCommand.js +46 -0
- package/dist-cjs/commands/DescribeFlywheelIterationCommand.js +46 -0
- package/dist-cjs/commands/ListDatasetsCommand.js +46 -0
- package/dist-cjs/commands/ListFlywheelIterationHistoryCommand.js +46 -0
- package/dist-cjs/commands/ListFlywheelsCommand.js +46 -0
- package/dist-cjs/commands/StartFlywheelIterationCommand.js +46 -0
- package/dist-cjs/commands/StopTargetedSentimentDetectionJobCommand.js +3 -3
- package/dist-cjs/commands/StopTrainingDocumentClassifierCommand.js +3 -3
- package/dist-cjs/commands/StopTrainingEntityRecognizerCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateEndpointCommand.js +3 -3
- package/dist-cjs/commands/UpdateFlywheelCommand.js +46 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +242 -120
- package/dist-cjs/models/models_1.js +92 -0
- package/dist-cjs/pagination/ListDatasetsPaginator.js +36 -0
- package/dist-cjs/pagination/ListFlywheelIterationHistoryPaginator.js +36 -0
- package/dist-cjs/pagination/ListFlywheelsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1135 -26
- package/dist-es/Comprehend.js +165 -0
- package/dist-es/commands/CreateDatasetCommand.js +42 -0
- package/dist-es/commands/CreateFlywheelCommand.js +42 -0
- package/dist-es/commands/DeleteFlywheelCommand.js +42 -0
- package/dist-es/commands/DescribeDatasetCommand.js +42 -0
- package/dist-es/commands/DescribeFlywheelCommand.js +42 -0
- package/dist-es/commands/DescribeFlywheelIterationCommand.js +42 -0
- package/dist-es/commands/ListDatasetsCommand.js +42 -0
- package/dist-es/commands/ListFlywheelIterationHistoryCommand.js +42 -0
- package/dist-es/commands/ListFlywheelsCommand.js +42 -0
- package/dist-es/commands/StartFlywheelIterationCommand.js +42 -0
- package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +1 -1
- package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +1 -1
- package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +1 -1
- package/dist-es/commands/TagResourceCommand.js +1 -1
- package/dist-es/commands/UntagResourceCommand.js +1 -1
- package/dist-es/commands/UpdateEndpointCommand.js +1 -1
- package/dist-es/commands/UpdateFlywheelCommand.js +42 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +191 -95
- package/dist-es/models/models_1.js +72 -0
- package/dist-es/pagination/ListDatasetsPaginator.js +32 -0
- package/dist-es/pagination/ListFlywheelIterationHistoryPaginator.js +32 -0
- package/dist-es/pagination/ListFlywheelsPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +1109 -23
- package/dist-types/Comprehend.d.ts +107 -4
- package/dist-types/ComprehendClient.d.ts +13 -2
- package/dist-types/commands/BatchDetectDominantLanguageCommand.d.ts +6 -0
- package/dist-types/commands/BatchDetectEntitiesCommand.d.ts +6 -0
- package/dist-types/commands/BatchDetectKeyPhrasesCommand.d.ts +6 -0
- package/dist-types/commands/BatchDetectSentimentCommand.d.ts +6 -0
- package/dist-types/commands/BatchDetectSyntaxCommand.d.ts +6 -0
- package/dist-types/commands/BatchDetectTargetedSentimentCommand.d.ts +6 -0
- package/dist-types/commands/ClassifyDocumentCommand.d.ts +6 -0
- package/dist-types/commands/ContainsPiiEntitiesCommand.d.ts +6 -0
- package/dist-types/commands/CreateDatasetCommand.d.ts +45 -0
- package/dist-types/commands/CreateDocumentClassifierCommand.d.ts +6 -0
- package/dist-types/commands/CreateEndpointCommand.d.ts +6 -0
- package/dist-types/commands/CreateEntityRecognizerCommand.d.ts +7 -1
- package/dist-types/commands/CreateFlywheelCommand.d.ts +53 -0
- package/dist-types/commands/DeleteDocumentClassifierCommand.d.ts +6 -0
- package/dist-types/commands/DeleteEndpointCommand.d.ts +6 -0
- package/dist-types/commands/DeleteEntityRecognizerCommand.d.ts +6 -0
- package/dist-types/commands/DeleteFlywheelCommand.d.ts +46 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +6 -0
- package/dist-types/commands/DescribeDatasetCommand.d.ts +45 -0
- package/dist-types/commands/DescribeDocumentClassificationJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeDocumentClassifierCommand.d.ts +6 -0
- package/dist-types/commands/DescribeDominantLanguageDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeEndpointCommand.d.ts +6 -0
- package/dist-types/commands/DescribeEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeEntityRecognizerCommand.d.ts +6 -0
- package/dist-types/commands/DescribeEventsDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeFlywheelCommand.d.ts +44 -0
- package/dist-types/commands/DescribeFlywheelIterationCommand.d.ts +45 -0
- package/dist-types/commands/DescribeKeyPhrasesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribePiiEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +6 -0
- package/dist-types/commands/DescribeSentimentDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DescribeTopicsDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/DetectDominantLanguageCommand.d.ts +6 -0
- package/dist-types/commands/DetectEntitiesCommand.d.ts +6 -0
- package/dist-types/commands/DetectKeyPhrasesCommand.d.ts +6 -0
- package/dist-types/commands/DetectPiiEntitiesCommand.d.ts +6 -0
- package/dist-types/commands/DetectSentimentCommand.d.ts +6 -0
- package/dist-types/commands/DetectSyntaxCommand.d.ts +6 -0
- package/dist-types/commands/DetectTargetedSentimentCommand.d.ts +6 -0
- package/dist-types/commands/ImportModelCommand.d.ts +6 -0
- package/dist-types/commands/ListDatasetsCommand.d.ts +44 -0
- package/dist-types/commands/ListDocumentClassificationJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListDocumentClassifierSummariesCommand.d.ts +6 -0
- package/dist-types/commands/ListDocumentClassifiersCommand.d.ts +6 -0
- package/dist-types/commands/ListDominantLanguageDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListEndpointsCommand.d.ts +6 -0
- package/dist-types/commands/ListEntitiesDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListEntityRecognizerSummariesCommand.d.ts +6 -0
- package/dist-types/commands/ListEntityRecognizersCommand.d.ts +6 -0
- package/dist-types/commands/ListEventsDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListFlywheelIterationHistoryCommand.d.ts +45 -0
- package/dist-types/commands/ListFlywheelsCommand.d.ts +43 -0
- package/dist-types/commands/ListKeyPhrasesDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListPiiEntitiesDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListSentimentDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -0
- package/dist-types/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/ListTopicsDetectionJobsCommand.d.ts +6 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +6 -0
- package/dist-types/commands/StartDocumentClassificationJobCommand.d.ts +9 -2
- package/dist-types/commands/StartDominantLanguageDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartEventsDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartFlywheelIterationCommand.d.ts +45 -0
- package/dist-types/commands/StartKeyPhrasesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartPiiEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartSentimentDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StartTargetedSentimentDetectionJobCommand.d.ts +7 -1
- package/dist-types/commands/StartTopicsDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopDominantLanguageDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopEventsDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopKeyPhrasesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopPiiEntitiesDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopSentimentDetectionJobCommand.d.ts +6 -0
- package/dist-types/commands/StopTargetedSentimentDetectionJobCommand.d.ts +7 -1
- package/dist-types/commands/StopTrainingDocumentClassifierCommand.d.ts +7 -1
- package/dist-types/commands/StopTrainingEntityRecognizerCommand.d.ts +7 -1
- package/dist-types/commands/TagResourceCommand.d.ts +7 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +7 -1
- package/dist-types/commands/UpdateEndpointCommand.d.ts +7 -1
- package/dist-types/commands/UpdateFlywheelCommand.d.ts +43 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1145 -320
- package/dist-types/models/models_1.d.ts +241 -0
- package/dist-types/pagination/ListDatasetsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFlywheelIterationHistoryPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFlywheelsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +33 -0
- package/dist-types/ts3.4/Comprehend.d.ts +187 -0
- package/dist-types/ts3.4/ComprehendClient.d.ts +68 -2
- package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateFlywheelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteFlywheelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeFlywheelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeFlywheelIterationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListFlywheelIterationHistoryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListFlywheelsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/StartFlywheelIterationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StopTargetedSentimentDetectionJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopTrainingDocumentClassifierCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopTrainingEntityRecognizerCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFlywheelCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +424 -138
- package/dist-types/ts3.4/models/models_1.d.ts +116 -0
- package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFlywheelIterationHistoryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFlywheelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +132 -0
- package/package.json +6 -6
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListFlywheelsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class ListFlywheelsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListFlywheelsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "ListFlywheelsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListFlywheelsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListFlywheelsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListFlywheelsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListFlywheelsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListFlywheelsCommand = ListFlywheelsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartFlywheelIterationCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class StartFlywheelIterationCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartFlywheelIterationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "StartFlywheelIterationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.StartFlywheelIterationRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.StartFlywheelIterationResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1StartFlywheelIterationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1StartFlywheelIterationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.StartFlywheelIterationCommand = StartFlywheelIterationCommand;
|
|
@@ -4,7 +4,7 @@ exports.StopTargetedSentimentDetectionJobCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const
|
|
7
|
+
const models_1_1 = require("../models/models_1");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class StopTargetedSentimentDetectionJobCommand extends smithy_client_1.Command {
|
|
10
10
|
constructor(input) {
|
|
@@ -30,8 +30,8 @@ class StopTargetedSentimentDetectionJobCommand extends smithy_client_1.Command {
|
|
|
30
30
|
logger,
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
33
|
+
inputFilterSensitiveLog: models_1_1.StopTargetedSentimentDetectionJobRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_1_1.StopTargetedSentimentDetectionJobResponseFilterSensitiveLog,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,7 +4,7 @@ exports.StopTrainingDocumentClassifierCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const
|
|
7
|
+
const models_1_1 = require("../models/models_1");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class StopTrainingDocumentClassifierCommand extends smithy_client_1.Command {
|
|
10
10
|
constructor(input) {
|
|
@@ -30,8 +30,8 @@ class StopTrainingDocumentClassifierCommand extends smithy_client_1.Command {
|
|
|
30
30
|
logger,
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
33
|
+
inputFilterSensitiveLog: models_1_1.StopTrainingDocumentClassifierRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_1_1.StopTrainingDocumentClassifierResponseFilterSensitiveLog,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,7 +4,7 @@ exports.StopTrainingEntityRecognizerCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const
|
|
7
|
+
const models_1_1 = require("../models/models_1");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class StopTrainingEntityRecognizerCommand extends smithy_client_1.Command {
|
|
10
10
|
constructor(input) {
|
|
@@ -30,8 +30,8 @@ class StopTrainingEntityRecognizerCommand extends smithy_client_1.Command {
|
|
|
30
30
|
logger,
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
33
|
+
inputFilterSensitiveLog: models_1_1.StopTrainingEntityRecognizerRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_1_1.StopTrainingEntityRecognizerResponseFilterSensitiveLog,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,7 +4,7 @@ exports.TagResourceCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const
|
|
7
|
+
const models_1_1 = require("../models/models_1");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class TagResourceCommand extends smithy_client_1.Command {
|
|
10
10
|
constructor(input) {
|
|
@@ -30,8 +30,8 @@ class TagResourceCommand extends smithy_client_1.Command {
|
|
|
30
30
|
logger,
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
33
|
+
inputFilterSensitiveLog: models_1_1.TagResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_1_1.TagResourceResponseFilterSensitiveLog,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,7 +4,7 @@ exports.UntagResourceCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const
|
|
7
|
+
const models_1_1 = require("../models/models_1");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class UntagResourceCommand extends smithy_client_1.Command {
|
|
10
10
|
constructor(input) {
|
|
@@ -30,8 +30,8 @@ class UntagResourceCommand extends smithy_client_1.Command {
|
|
|
30
30
|
logger,
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
33
|
+
inputFilterSensitiveLog: models_1_1.UntagResourceRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_1_1.UntagResourceResponseFilterSensitiveLog,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,7 +4,7 @@ exports.UpdateEndpointCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const
|
|
7
|
+
const models_1_1 = require("../models/models_1");
|
|
8
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
9
|
class UpdateEndpointCommand extends smithy_client_1.Command {
|
|
10
10
|
constructor(input) {
|
|
@@ -30,8 +30,8 @@ class UpdateEndpointCommand extends smithy_client_1.Command {
|
|
|
30
30
|
logger,
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
33
|
+
inputFilterSensitiveLog: models_1_1.UpdateEndpointRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_1_1.UpdateEndpointResponseFilterSensitiveLog,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateFlywheelCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_1_1 = require("../models/models_1");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class UpdateFlywheelCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateFlywheelCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "UpdateFlywheelCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_1_1.UpdateFlywheelRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_1_1.UpdateFlywheelResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1UpdateFlywheelCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateFlywheelCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UpdateFlywheelCommand = UpdateFlywheelCommand;
|
|
@@ -9,13 +9,17 @@ tslib_1.__exportStar(require("./BatchDetectSyntaxCommand"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./BatchDetectTargetedSentimentCommand"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./ClassifyDocumentCommand"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./ContainsPiiEntitiesCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./CreateDatasetCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./CreateDocumentClassifierCommand"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./CreateEndpointCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./CreateEntityRecognizerCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./CreateFlywheelCommand"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./DeleteDocumentClassifierCommand"), exports);
|
|
16
18
|
tslib_1.__exportStar(require("./DeleteEndpointCommand"), exports);
|
|
17
19
|
tslib_1.__exportStar(require("./DeleteEntityRecognizerCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./DeleteFlywheelCommand"), exports);
|
|
18
21
|
tslib_1.__exportStar(require("./DeleteResourcePolicyCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./DescribeDatasetCommand"), exports);
|
|
19
23
|
tslib_1.__exportStar(require("./DescribeDocumentClassificationJobCommand"), exports);
|
|
20
24
|
tslib_1.__exportStar(require("./DescribeDocumentClassifierCommand"), exports);
|
|
21
25
|
tslib_1.__exportStar(require("./DescribeDominantLanguageDetectionJobCommand"), exports);
|
|
@@ -23,6 +27,8 @@ tslib_1.__exportStar(require("./DescribeEndpointCommand"), exports);
|
|
|
23
27
|
tslib_1.__exportStar(require("./DescribeEntitiesDetectionJobCommand"), exports);
|
|
24
28
|
tslib_1.__exportStar(require("./DescribeEntityRecognizerCommand"), exports);
|
|
25
29
|
tslib_1.__exportStar(require("./DescribeEventsDetectionJobCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./DescribeFlywheelCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./DescribeFlywheelIterationCommand"), exports);
|
|
26
32
|
tslib_1.__exportStar(require("./DescribeKeyPhrasesDetectionJobCommand"), exports);
|
|
27
33
|
tslib_1.__exportStar(require("./DescribePiiEntitiesDetectionJobCommand"), exports);
|
|
28
34
|
tslib_1.__exportStar(require("./DescribeResourcePolicyCommand"), exports);
|
|
@@ -37,6 +43,7 @@ tslib_1.__exportStar(require("./DetectSentimentCommand"), exports);
|
|
|
37
43
|
tslib_1.__exportStar(require("./DetectSyntaxCommand"), exports);
|
|
38
44
|
tslib_1.__exportStar(require("./DetectTargetedSentimentCommand"), exports);
|
|
39
45
|
tslib_1.__exportStar(require("./ImportModelCommand"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./ListDatasetsCommand"), exports);
|
|
40
47
|
tslib_1.__exportStar(require("./ListDocumentClassificationJobsCommand"), exports);
|
|
41
48
|
tslib_1.__exportStar(require("./ListDocumentClassifierSummariesCommand"), exports);
|
|
42
49
|
tslib_1.__exportStar(require("./ListDocumentClassifiersCommand"), exports);
|
|
@@ -46,6 +53,8 @@ tslib_1.__exportStar(require("./ListEntitiesDetectionJobsCommand"), exports);
|
|
|
46
53
|
tslib_1.__exportStar(require("./ListEntityRecognizerSummariesCommand"), exports);
|
|
47
54
|
tslib_1.__exportStar(require("./ListEntityRecognizersCommand"), exports);
|
|
48
55
|
tslib_1.__exportStar(require("./ListEventsDetectionJobsCommand"), exports);
|
|
56
|
+
tslib_1.__exportStar(require("./ListFlywheelIterationHistoryCommand"), exports);
|
|
57
|
+
tslib_1.__exportStar(require("./ListFlywheelsCommand"), exports);
|
|
49
58
|
tslib_1.__exportStar(require("./ListKeyPhrasesDetectionJobsCommand"), exports);
|
|
50
59
|
tslib_1.__exportStar(require("./ListPiiEntitiesDetectionJobsCommand"), exports);
|
|
51
60
|
tslib_1.__exportStar(require("./ListSentimentDetectionJobsCommand"), exports);
|
|
@@ -57,6 +66,7 @@ tslib_1.__exportStar(require("./StartDocumentClassificationJobCommand"), exports
|
|
|
57
66
|
tslib_1.__exportStar(require("./StartDominantLanguageDetectionJobCommand"), exports);
|
|
58
67
|
tslib_1.__exportStar(require("./StartEntitiesDetectionJobCommand"), exports);
|
|
59
68
|
tslib_1.__exportStar(require("./StartEventsDetectionJobCommand"), exports);
|
|
69
|
+
tslib_1.__exportStar(require("./StartFlywheelIterationCommand"), exports);
|
|
60
70
|
tslib_1.__exportStar(require("./StartKeyPhrasesDetectionJobCommand"), exports);
|
|
61
71
|
tslib_1.__exportStar(require("./StartPiiEntitiesDetectionJobCommand"), exports);
|
|
62
72
|
tslib_1.__exportStar(require("./StartSentimentDetectionJobCommand"), exports);
|
|
@@ -74,3 +84,4 @@ tslib_1.__exportStar(require("./StopTrainingEntityRecognizerCommand"), exports);
|
|
|
74
84
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
75
85
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
76
86
|
tslib_1.__exportStar(require("./UpdateEndpointCommand"), exports);
|
|
87
|
+
tslib_1.__exportStar(require("./UpdateFlywheelCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const r = "fn", s = "argv", t = "ref";
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://comprehend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://comprehend-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://comprehend.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://comprehend.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
package/dist-cjs/models/index.js
CHANGED