@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
package/dist-cjs/Comprehend.js
CHANGED
|
@@ -9,13 +9,17 @@ const BatchDetectSyntaxCommand_1 = require("./commands/BatchDetectSyntaxCommand"
|
|
|
9
9
|
const BatchDetectTargetedSentimentCommand_1 = require("./commands/BatchDetectTargetedSentimentCommand");
|
|
10
10
|
const ClassifyDocumentCommand_1 = require("./commands/ClassifyDocumentCommand");
|
|
11
11
|
const ContainsPiiEntitiesCommand_1 = require("./commands/ContainsPiiEntitiesCommand");
|
|
12
|
+
const CreateDatasetCommand_1 = require("./commands/CreateDatasetCommand");
|
|
12
13
|
const CreateDocumentClassifierCommand_1 = require("./commands/CreateDocumentClassifierCommand");
|
|
13
14
|
const CreateEndpointCommand_1 = require("./commands/CreateEndpointCommand");
|
|
14
15
|
const CreateEntityRecognizerCommand_1 = require("./commands/CreateEntityRecognizerCommand");
|
|
16
|
+
const CreateFlywheelCommand_1 = require("./commands/CreateFlywheelCommand");
|
|
15
17
|
const DeleteDocumentClassifierCommand_1 = require("./commands/DeleteDocumentClassifierCommand");
|
|
16
18
|
const DeleteEndpointCommand_1 = require("./commands/DeleteEndpointCommand");
|
|
17
19
|
const DeleteEntityRecognizerCommand_1 = require("./commands/DeleteEntityRecognizerCommand");
|
|
20
|
+
const DeleteFlywheelCommand_1 = require("./commands/DeleteFlywheelCommand");
|
|
18
21
|
const DeleteResourcePolicyCommand_1 = require("./commands/DeleteResourcePolicyCommand");
|
|
22
|
+
const DescribeDatasetCommand_1 = require("./commands/DescribeDatasetCommand");
|
|
19
23
|
const DescribeDocumentClassificationJobCommand_1 = require("./commands/DescribeDocumentClassificationJobCommand");
|
|
20
24
|
const DescribeDocumentClassifierCommand_1 = require("./commands/DescribeDocumentClassifierCommand");
|
|
21
25
|
const DescribeDominantLanguageDetectionJobCommand_1 = require("./commands/DescribeDominantLanguageDetectionJobCommand");
|
|
@@ -23,6 +27,8 @@ const DescribeEndpointCommand_1 = require("./commands/DescribeEndpointCommand");
|
|
|
23
27
|
const DescribeEntitiesDetectionJobCommand_1 = require("./commands/DescribeEntitiesDetectionJobCommand");
|
|
24
28
|
const DescribeEntityRecognizerCommand_1 = require("./commands/DescribeEntityRecognizerCommand");
|
|
25
29
|
const DescribeEventsDetectionJobCommand_1 = require("./commands/DescribeEventsDetectionJobCommand");
|
|
30
|
+
const DescribeFlywheelCommand_1 = require("./commands/DescribeFlywheelCommand");
|
|
31
|
+
const DescribeFlywheelIterationCommand_1 = require("./commands/DescribeFlywheelIterationCommand");
|
|
26
32
|
const DescribeKeyPhrasesDetectionJobCommand_1 = require("./commands/DescribeKeyPhrasesDetectionJobCommand");
|
|
27
33
|
const DescribePiiEntitiesDetectionJobCommand_1 = require("./commands/DescribePiiEntitiesDetectionJobCommand");
|
|
28
34
|
const DescribeResourcePolicyCommand_1 = require("./commands/DescribeResourcePolicyCommand");
|
|
@@ -37,6 +43,7 @@ const DetectSentimentCommand_1 = require("./commands/DetectSentimentCommand");
|
|
|
37
43
|
const DetectSyntaxCommand_1 = require("./commands/DetectSyntaxCommand");
|
|
38
44
|
const DetectTargetedSentimentCommand_1 = require("./commands/DetectTargetedSentimentCommand");
|
|
39
45
|
const ImportModelCommand_1 = require("./commands/ImportModelCommand");
|
|
46
|
+
const ListDatasetsCommand_1 = require("./commands/ListDatasetsCommand");
|
|
40
47
|
const ListDocumentClassificationJobsCommand_1 = require("./commands/ListDocumentClassificationJobsCommand");
|
|
41
48
|
const ListDocumentClassifiersCommand_1 = require("./commands/ListDocumentClassifiersCommand");
|
|
42
49
|
const ListDocumentClassifierSummariesCommand_1 = require("./commands/ListDocumentClassifierSummariesCommand");
|
|
@@ -46,6 +53,8 @@ const ListEntitiesDetectionJobsCommand_1 = require("./commands/ListEntitiesDetec
|
|
|
46
53
|
const ListEntityRecognizersCommand_1 = require("./commands/ListEntityRecognizersCommand");
|
|
47
54
|
const ListEntityRecognizerSummariesCommand_1 = require("./commands/ListEntityRecognizerSummariesCommand");
|
|
48
55
|
const ListEventsDetectionJobsCommand_1 = require("./commands/ListEventsDetectionJobsCommand");
|
|
56
|
+
const ListFlywheelIterationHistoryCommand_1 = require("./commands/ListFlywheelIterationHistoryCommand");
|
|
57
|
+
const ListFlywheelsCommand_1 = require("./commands/ListFlywheelsCommand");
|
|
49
58
|
const ListKeyPhrasesDetectionJobsCommand_1 = require("./commands/ListKeyPhrasesDetectionJobsCommand");
|
|
50
59
|
const ListPiiEntitiesDetectionJobsCommand_1 = require("./commands/ListPiiEntitiesDetectionJobsCommand");
|
|
51
60
|
const ListSentimentDetectionJobsCommand_1 = require("./commands/ListSentimentDetectionJobsCommand");
|
|
@@ -57,6 +66,7 @@ const StartDocumentClassificationJobCommand_1 = require("./commands/StartDocumen
|
|
|
57
66
|
const StartDominantLanguageDetectionJobCommand_1 = require("./commands/StartDominantLanguageDetectionJobCommand");
|
|
58
67
|
const StartEntitiesDetectionJobCommand_1 = require("./commands/StartEntitiesDetectionJobCommand");
|
|
59
68
|
const StartEventsDetectionJobCommand_1 = require("./commands/StartEventsDetectionJobCommand");
|
|
69
|
+
const StartFlywheelIterationCommand_1 = require("./commands/StartFlywheelIterationCommand");
|
|
60
70
|
const StartKeyPhrasesDetectionJobCommand_1 = require("./commands/StartKeyPhrasesDetectionJobCommand");
|
|
61
71
|
const StartPiiEntitiesDetectionJobCommand_1 = require("./commands/StartPiiEntitiesDetectionJobCommand");
|
|
62
72
|
const StartSentimentDetectionJobCommand_1 = require("./commands/StartSentimentDetectionJobCommand");
|
|
@@ -74,6 +84,7 @@ const StopTrainingEntityRecognizerCommand_1 = require("./commands/StopTrainingEn
|
|
|
74
84
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
75
85
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
76
86
|
const UpdateEndpointCommand_1 = require("./commands/UpdateEndpointCommand");
|
|
87
|
+
const UpdateFlywheelCommand_1 = require("./commands/UpdateFlywheelCommand");
|
|
77
88
|
const ComprehendClient_1 = require("./ComprehendClient");
|
|
78
89
|
class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
79
90
|
batchDetectDominantLanguage(args, optionsOrCb, cb) {
|
|
@@ -188,6 +199,20 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
188
199
|
return this.send(command, optionsOrCb);
|
|
189
200
|
}
|
|
190
201
|
}
|
|
202
|
+
createDataset(args, optionsOrCb, cb) {
|
|
203
|
+
const command = new CreateDatasetCommand_1.CreateDatasetCommand(args);
|
|
204
|
+
if (typeof optionsOrCb === "function") {
|
|
205
|
+
this.send(command, optionsOrCb);
|
|
206
|
+
}
|
|
207
|
+
else if (typeof cb === "function") {
|
|
208
|
+
if (typeof optionsOrCb !== "object")
|
|
209
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
return this.send(command, optionsOrCb);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
191
216
|
createDocumentClassifier(args, optionsOrCb, cb) {
|
|
192
217
|
const command = new CreateDocumentClassifierCommand_1.CreateDocumentClassifierCommand(args);
|
|
193
218
|
if (typeof optionsOrCb === "function") {
|
|
@@ -230,6 +255,20 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
230
255
|
return this.send(command, optionsOrCb);
|
|
231
256
|
}
|
|
232
257
|
}
|
|
258
|
+
createFlywheel(args, optionsOrCb, cb) {
|
|
259
|
+
const command = new CreateFlywheelCommand_1.CreateFlywheelCommand(args);
|
|
260
|
+
if (typeof optionsOrCb === "function") {
|
|
261
|
+
this.send(command, optionsOrCb);
|
|
262
|
+
}
|
|
263
|
+
else if (typeof cb === "function") {
|
|
264
|
+
if (typeof optionsOrCb !== "object")
|
|
265
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
266
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
return this.send(command, optionsOrCb);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
233
272
|
deleteDocumentClassifier(args, optionsOrCb, cb) {
|
|
234
273
|
const command = new DeleteDocumentClassifierCommand_1.DeleteDocumentClassifierCommand(args);
|
|
235
274
|
if (typeof optionsOrCb === "function") {
|
|
@@ -272,6 +311,20 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
272
311
|
return this.send(command, optionsOrCb);
|
|
273
312
|
}
|
|
274
313
|
}
|
|
314
|
+
deleteFlywheel(args, optionsOrCb, cb) {
|
|
315
|
+
const command = new DeleteFlywheelCommand_1.DeleteFlywheelCommand(args);
|
|
316
|
+
if (typeof optionsOrCb === "function") {
|
|
317
|
+
this.send(command, optionsOrCb);
|
|
318
|
+
}
|
|
319
|
+
else if (typeof cb === "function") {
|
|
320
|
+
if (typeof optionsOrCb !== "object")
|
|
321
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
322
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
return this.send(command, optionsOrCb);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
275
328
|
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
276
329
|
const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
|
|
277
330
|
if (typeof optionsOrCb === "function") {
|
|
@@ -286,6 +339,20 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
286
339
|
return this.send(command, optionsOrCb);
|
|
287
340
|
}
|
|
288
341
|
}
|
|
342
|
+
describeDataset(args, optionsOrCb, cb) {
|
|
343
|
+
const command = new DescribeDatasetCommand_1.DescribeDatasetCommand(args);
|
|
344
|
+
if (typeof optionsOrCb === "function") {
|
|
345
|
+
this.send(command, optionsOrCb);
|
|
346
|
+
}
|
|
347
|
+
else if (typeof cb === "function") {
|
|
348
|
+
if (typeof optionsOrCb !== "object")
|
|
349
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
350
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
return this.send(command, optionsOrCb);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
289
356
|
describeDocumentClassificationJob(args, optionsOrCb, cb) {
|
|
290
357
|
const command = new DescribeDocumentClassificationJobCommand_1.DescribeDocumentClassificationJobCommand(args);
|
|
291
358
|
if (typeof optionsOrCb === "function") {
|
|
@@ -384,6 +451,34 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
384
451
|
return this.send(command, optionsOrCb);
|
|
385
452
|
}
|
|
386
453
|
}
|
|
454
|
+
describeFlywheel(args, optionsOrCb, cb) {
|
|
455
|
+
const command = new DescribeFlywheelCommand_1.DescribeFlywheelCommand(args);
|
|
456
|
+
if (typeof optionsOrCb === "function") {
|
|
457
|
+
this.send(command, optionsOrCb);
|
|
458
|
+
}
|
|
459
|
+
else if (typeof cb === "function") {
|
|
460
|
+
if (typeof optionsOrCb !== "object")
|
|
461
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
462
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
return this.send(command, optionsOrCb);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
describeFlywheelIteration(args, optionsOrCb, cb) {
|
|
469
|
+
const command = new DescribeFlywheelIterationCommand_1.DescribeFlywheelIterationCommand(args);
|
|
470
|
+
if (typeof optionsOrCb === "function") {
|
|
471
|
+
this.send(command, optionsOrCb);
|
|
472
|
+
}
|
|
473
|
+
else if (typeof cb === "function") {
|
|
474
|
+
if (typeof optionsOrCb !== "object")
|
|
475
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
476
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
return this.send(command, optionsOrCb);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
387
482
|
describeKeyPhrasesDetectionJob(args, optionsOrCb, cb) {
|
|
388
483
|
const command = new DescribeKeyPhrasesDetectionJobCommand_1.DescribeKeyPhrasesDetectionJobCommand(args);
|
|
389
484
|
if (typeof optionsOrCb === "function") {
|
|
@@ -580,6 +675,20 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
580
675
|
return this.send(command, optionsOrCb);
|
|
581
676
|
}
|
|
582
677
|
}
|
|
678
|
+
listDatasets(args, optionsOrCb, cb) {
|
|
679
|
+
const command = new ListDatasetsCommand_1.ListDatasetsCommand(args);
|
|
680
|
+
if (typeof optionsOrCb === "function") {
|
|
681
|
+
this.send(command, optionsOrCb);
|
|
682
|
+
}
|
|
683
|
+
else if (typeof cb === "function") {
|
|
684
|
+
if (typeof optionsOrCb !== "object")
|
|
685
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
686
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
687
|
+
}
|
|
688
|
+
else {
|
|
689
|
+
return this.send(command, optionsOrCb);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
583
692
|
listDocumentClassificationJobs(args, optionsOrCb, cb) {
|
|
584
693
|
const command = new ListDocumentClassificationJobsCommand_1.ListDocumentClassificationJobsCommand(args);
|
|
585
694
|
if (typeof optionsOrCb === "function") {
|
|
@@ -706,6 +815,34 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
706
815
|
return this.send(command, optionsOrCb);
|
|
707
816
|
}
|
|
708
817
|
}
|
|
818
|
+
listFlywheelIterationHistory(args, optionsOrCb, cb) {
|
|
819
|
+
const command = new ListFlywheelIterationHistoryCommand_1.ListFlywheelIterationHistoryCommand(args);
|
|
820
|
+
if (typeof optionsOrCb === "function") {
|
|
821
|
+
this.send(command, optionsOrCb);
|
|
822
|
+
}
|
|
823
|
+
else if (typeof cb === "function") {
|
|
824
|
+
if (typeof optionsOrCb !== "object")
|
|
825
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
826
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
827
|
+
}
|
|
828
|
+
else {
|
|
829
|
+
return this.send(command, optionsOrCb);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
listFlywheels(args, optionsOrCb, cb) {
|
|
833
|
+
const command = new ListFlywheelsCommand_1.ListFlywheelsCommand(args);
|
|
834
|
+
if (typeof optionsOrCb === "function") {
|
|
835
|
+
this.send(command, optionsOrCb);
|
|
836
|
+
}
|
|
837
|
+
else if (typeof cb === "function") {
|
|
838
|
+
if (typeof optionsOrCb !== "object")
|
|
839
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
840
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
841
|
+
}
|
|
842
|
+
else {
|
|
843
|
+
return this.send(command, optionsOrCb);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
709
846
|
listKeyPhrasesDetectionJobs(args, optionsOrCb, cb) {
|
|
710
847
|
const command = new ListKeyPhrasesDetectionJobsCommand_1.ListKeyPhrasesDetectionJobsCommand(args);
|
|
711
848
|
if (typeof optionsOrCb === "function") {
|
|
@@ -860,6 +997,20 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
860
997
|
return this.send(command, optionsOrCb);
|
|
861
998
|
}
|
|
862
999
|
}
|
|
1000
|
+
startFlywheelIteration(args, optionsOrCb, cb) {
|
|
1001
|
+
const command = new StartFlywheelIterationCommand_1.StartFlywheelIterationCommand(args);
|
|
1002
|
+
if (typeof optionsOrCb === "function") {
|
|
1003
|
+
this.send(command, optionsOrCb);
|
|
1004
|
+
}
|
|
1005
|
+
else if (typeof cb === "function") {
|
|
1006
|
+
if (typeof optionsOrCb !== "object")
|
|
1007
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1008
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1009
|
+
}
|
|
1010
|
+
else {
|
|
1011
|
+
return this.send(command, optionsOrCb);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
863
1014
|
startKeyPhrasesDetectionJob(args, optionsOrCb, cb) {
|
|
864
1015
|
const command = new StartKeyPhrasesDetectionJobCommand_1.StartKeyPhrasesDetectionJobCommand(args);
|
|
865
1016
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1098,5 +1249,19 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
1098
1249
|
return this.send(command, optionsOrCb);
|
|
1099
1250
|
}
|
|
1100
1251
|
}
|
|
1252
|
+
updateFlywheel(args, optionsOrCb, cb) {
|
|
1253
|
+
const command = new UpdateFlywheelCommand_1.UpdateFlywheelCommand(args);
|
|
1254
|
+
if (typeof optionsOrCb === "function") {
|
|
1255
|
+
this.send(command, optionsOrCb);
|
|
1256
|
+
}
|
|
1257
|
+
else if (typeof cb === "function") {
|
|
1258
|
+
if (typeof optionsOrCb !== "object")
|
|
1259
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1260
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1261
|
+
}
|
|
1262
|
+
else {
|
|
1263
|
+
return this.send(command, optionsOrCb);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1101
1266
|
}
|
|
1102
1267
|
exports.Comprehend = Comprehend;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateDatasetCommand = 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 CreateDatasetCommand 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, CreateDatasetCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "CreateDatasetCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateDatasetRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateDatasetResponseFilterSensitiveLog,
|
|
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_1CreateDatasetCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1CreateDatasetCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateDatasetCommand = CreateDatasetCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateFlywheelCommand = 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 CreateFlywheelCommand 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, CreateFlywheelCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "CreateFlywheelCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateFlywheelRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateFlywheelResponseFilterSensitiveLog,
|
|
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_1CreateFlywheelCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1CreateFlywheelCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateFlywheelCommand = CreateFlywheelCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteFlywheelCommand = 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 DeleteFlywheelCommand 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, DeleteFlywheelCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "DeleteFlywheelCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteFlywheelRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteFlywheelResponseFilterSensitiveLog,
|
|
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_1DeleteFlywheelCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteFlywheelCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteFlywheelCommand = DeleteFlywheelCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeDatasetCommand = 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 DescribeDatasetCommand 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, DescribeDatasetCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "DescribeDatasetCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DescribeDatasetRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DescribeDatasetResponseFilterSensitiveLog,
|
|
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_1DescribeDatasetCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeDatasetCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeDatasetCommand = DescribeDatasetCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeFlywheelCommand = 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 DescribeFlywheelCommand 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, DescribeFlywheelCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "DescribeFlywheelCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DescribeFlywheelRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DescribeFlywheelResponseFilterSensitiveLog,
|
|
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_1DescribeFlywheelCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeFlywheelCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeFlywheelCommand = DescribeFlywheelCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeFlywheelIterationCommand = 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 DescribeFlywheelIterationCommand 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, DescribeFlywheelIterationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "DescribeFlywheelIterationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DescribeFlywheelIterationRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DescribeFlywheelIterationResponseFilterSensitiveLog,
|
|
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_1DescribeFlywheelIterationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeFlywheelIterationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeFlywheelIterationCommand = DescribeFlywheelIterationCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListDatasetsCommand = 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 ListDatasetsCommand 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, ListDatasetsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "ListDatasetsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListDatasetsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListDatasetsResponseFilterSensitiveLog,
|
|
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_1ListDatasetsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListDatasetsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListDatasetsCommand = ListDatasetsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListFlywheelIterationHistoryCommand = 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 ListFlywheelIterationHistoryCommand 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, ListFlywheelIterationHistoryCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ComprehendClient";
|
|
28
|
+
const commandName = "ListFlywheelIterationHistoryCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListFlywheelIterationHistoryRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListFlywheelIterationHistoryResponseFilterSensitiveLog,
|
|
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_1ListFlywheelIterationHistoryCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListFlywheelIterationHistoryCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListFlywheelIterationHistoryCommand = ListFlywheelIterationHistoryCommand;
|