@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-es/Comprehend.js
CHANGED
|
@@ -6,13 +6,17 @@ import { BatchDetectSyntaxCommand, } from "./commands/BatchDetectSyntaxCommand";
|
|
|
6
6
|
import { BatchDetectTargetedSentimentCommand, } from "./commands/BatchDetectTargetedSentimentCommand";
|
|
7
7
|
import { ClassifyDocumentCommand, } from "./commands/ClassifyDocumentCommand";
|
|
8
8
|
import { ContainsPiiEntitiesCommand, } from "./commands/ContainsPiiEntitiesCommand";
|
|
9
|
+
import { CreateDatasetCommand, } from "./commands/CreateDatasetCommand";
|
|
9
10
|
import { CreateDocumentClassifierCommand, } from "./commands/CreateDocumentClassifierCommand";
|
|
10
11
|
import { CreateEndpointCommand, } from "./commands/CreateEndpointCommand";
|
|
11
12
|
import { CreateEntityRecognizerCommand, } from "./commands/CreateEntityRecognizerCommand";
|
|
13
|
+
import { CreateFlywheelCommand, } from "./commands/CreateFlywheelCommand";
|
|
12
14
|
import { DeleteDocumentClassifierCommand, } from "./commands/DeleteDocumentClassifierCommand";
|
|
13
15
|
import { DeleteEndpointCommand, } from "./commands/DeleteEndpointCommand";
|
|
14
16
|
import { DeleteEntityRecognizerCommand, } from "./commands/DeleteEntityRecognizerCommand";
|
|
17
|
+
import { DeleteFlywheelCommand, } from "./commands/DeleteFlywheelCommand";
|
|
15
18
|
import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
|
|
19
|
+
import { DescribeDatasetCommand, } from "./commands/DescribeDatasetCommand";
|
|
16
20
|
import { DescribeDocumentClassificationJobCommand, } from "./commands/DescribeDocumentClassificationJobCommand";
|
|
17
21
|
import { DescribeDocumentClassifierCommand, } from "./commands/DescribeDocumentClassifierCommand";
|
|
18
22
|
import { DescribeDominantLanguageDetectionJobCommand, } from "./commands/DescribeDominantLanguageDetectionJobCommand";
|
|
@@ -20,6 +24,8 @@ import { DescribeEndpointCommand, } from "./commands/DescribeEndpointCommand";
|
|
|
20
24
|
import { DescribeEntitiesDetectionJobCommand, } from "./commands/DescribeEntitiesDetectionJobCommand";
|
|
21
25
|
import { DescribeEntityRecognizerCommand, } from "./commands/DescribeEntityRecognizerCommand";
|
|
22
26
|
import { DescribeEventsDetectionJobCommand, } from "./commands/DescribeEventsDetectionJobCommand";
|
|
27
|
+
import { DescribeFlywheelCommand, } from "./commands/DescribeFlywheelCommand";
|
|
28
|
+
import { DescribeFlywheelIterationCommand, } from "./commands/DescribeFlywheelIterationCommand";
|
|
23
29
|
import { DescribeKeyPhrasesDetectionJobCommand, } from "./commands/DescribeKeyPhrasesDetectionJobCommand";
|
|
24
30
|
import { DescribePiiEntitiesDetectionJobCommand, } from "./commands/DescribePiiEntitiesDetectionJobCommand";
|
|
25
31
|
import { DescribeResourcePolicyCommand, } from "./commands/DescribeResourcePolicyCommand";
|
|
@@ -34,6 +40,7 @@ import { DetectSentimentCommand, } from "./commands/DetectSentimentCommand";
|
|
|
34
40
|
import { DetectSyntaxCommand, } from "./commands/DetectSyntaxCommand";
|
|
35
41
|
import { DetectTargetedSentimentCommand, } from "./commands/DetectTargetedSentimentCommand";
|
|
36
42
|
import { ImportModelCommand } from "./commands/ImportModelCommand";
|
|
43
|
+
import { ListDatasetsCommand, } from "./commands/ListDatasetsCommand";
|
|
37
44
|
import { ListDocumentClassificationJobsCommand, } from "./commands/ListDocumentClassificationJobsCommand";
|
|
38
45
|
import { ListDocumentClassifiersCommand, } from "./commands/ListDocumentClassifiersCommand";
|
|
39
46
|
import { ListDocumentClassifierSummariesCommand, } from "./commands/ListDocumentClassifierSummariesCommand";
|
|
@@ -43,6 +50,8 @@ import { ListEntitiesDetectionJobsCommand, } from "./commands/ListEntitiesDetect
|
|
|
43
50
|
import { ListEntityRecognizersCommand, } from "./commands/ListEntityRecognizersCommand";
|
|
44
51
|
import { ListEntityRecognizerSummariesCommand, } from "./commands/ListEntityRecognizerSummariesCommand";
|
|
45
52
|
import { ListEventsDetectionJobsCommand, } from "./commands/ListEventsDetectionJobsCommand";
|
|
53
|
+
import { ListFlywheelIterationHistoryCommand, } from "./commands/ListFlywheelIterationHistoryCommand";
|
|
54
|
+
import { ListFlywheelsCommand, } from "./commands/ListFlywheelsCommand";
|
|
46
55
|
import { ListKeyPhrasesDetectionJobsCommand, } from "./commands/ListKeyPhrasesDetectionJobsCommand";
|
|
47
56
|
import { ListPiiEntitiesDetectionJobsCommand, } from "./commands/ListPiiEntitiesDetectionJobsCommand";
|
|
48
57
|
import { ListSentimentDetectionJobsCommand, } from "./commands/ListSentimentDetectionJobsCommand";
|
|
@@ -54,6 +63,7 @@ import { StartDocumentClassificationJobCommand, } from "./commands/StartDocument
|
|
|
54
63
|
import { StartDominantLanguageDetectionJobCommand, } from "./commands/StartDominantLanguageDetectionJobCommand";
|
|
55
64
|
import { StartEntitiesDetectionJobCommand, } from "./commands/StartEntitiesDetectionJobCommand";
|
|
56
65
|
import { StartEventsDetectionJobCommand, } from "./commands/StartEventsDetectionJobCommand";
|
|
66
|
+
import { StartFlywheelIterationCommand, } from "./commands/StartFlywheelIterationCommand";
|
|
57
67
|
import { StartKeyPhrasesDetectionJobCommand, } from "./commands/StartKeyPhrasesDetectionJobCommand";
|
|
58
68
|
import { StartPiiEntitiesDetectionJobCommand, } from "./commands/StartPiiEntitiesDetectionJobCommand";
|
|
59
69
|
import { StartSentimentDetectionJobCommand, } from "./commands/StartSentimentDetectionJobCommand";
|
|
@@ -71,6 +81,7 @@ import { StopTrainingEntityRecognizerCommand, } from "./commands/StopTrainingEnt
|
|
|
71
81
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
72
82
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
73
83
|
import { UpdateEndpointCommand, } from "./commands/UpdateEndpointCommand";
|
|
84
|
+
import { UpdateFlywheelCommand, } from "./commands/UpdateFlywheelCommand";
|
|
74
85
|
import { ComprehendClient } from "./ComprehendClient";
|
|
75
86
|
export class Comprehend extends ComprehendClient {
|
|
76
87
|
batchDetectDominantLanguage(args, optionsOrCb, cb) {
|
|
@@ -185,6 +196,20 @@ export class Comprehend extends ComprehendClient {
|
|
|
185
196
|
return this.send(command, optionsOrCb);
|
|
186
197
|
}
|
|
187
198
|
}
|
|
199
|
+
createDataset(args, optionsOrCb, cb) {
|
|
200
|
+
const command = new CreateDatasetCommand(args);
|
|
201
|
+
if (typeof optionsOrCb === "function") {
|
|
202
|
+
this.send(command, optionsOrCb);
|
|
203
|
+
}
|
|
204
|
+
else if (typeof cb === "function") {
|
|
205
|
+
if (typeof optionsOrCb !== "object")
|
|
206
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
207
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
return this.send(command, optionsOrCb);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
188
213
|
createDocumentClassifier(args, optionsOrCb, cb) {
|
|
189
214
|
const command = new CreateDocumentClassifierCommand(args);
|
|
190
215
|
if (typeof optionsOrCb === "function") {
|
|
@@ -227,6 +252,20 @@ export class Comprehend extends ComprehendClient {
|
|
|
227
252
|
return this.send(command, optionsOrCb);
|
|
228
253
|
}
|
|
229
254
|
}
|
|
255
|
+
createFlywheel(args, optionsOrCb, cb) {
|
|
256
|
+
const command = new CreateFlywheelCommand(args);
|
|
257
|
+
if (typeof optionsOrCb === "function") {
|
|
258
|
+
this.send(command, optionsOrCb);
|
|
259
|
+
}
|
|
260
|
+
else if (typeof cb === "function") {
|
|
261
|
+
if (typeof optionsOrCb !== "object")
|
|
262
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
263
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
return this.send(command, optionsOrCb);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
230
269
|
deleteDocumentClassifier(args, optionsOrCb, cb) {
|
|
231
270
|
const command = new DeleteDocumentClassifierCommand(args);
|
|
232
271
|
if (typeof optionsOrCb === "function") {
|
|
@@ -269,6 +308,20 @@ export class Comprehend extends ComprehendClient {
|
|
|
269
308
|
return this.send(command, optionsOrCb);
|
|
270
309
|
}
|
|
271
310
|
}
|
|
311
|
+
deleteFlywheel(args, optionsOrCb, cb) {
|
|
312
|
+
const command = new DeleteFlywheelCommand(args);
|
|
313
|
+
if (typeof optionsOrCb === "function") {
|
|
314
|
+
this.send(command, optionsOrCb);
|
|
315
|
+
}
|
|
316
|
+
else if (typeof cb === "function") {
|
|
317
|
+
if (typeof optionsOrCb !== "object")
|
|
318
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
319
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
return this.send(command, optionsOrCb);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
272
325
|
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
273
326
|
const command = new DeleteResourcePolicyCommand(args);
|
|
274
327
|
if (typeof optionsOrCb === "function") {
|
|
@@ -283,6 +336,20 @@ export class Comprehend extends ComprehendClient {
|
|
|
283
336
|
return this.send(command, optionsOrCb);
|
|
284
337
|
}
|
|
285
338
|
}
|
|
339
|
+
describeDataset(args, optionsOrCb, cb) {
|
|
340
|
+
const command = new DescribeDatasetCommand(args);
|
|
341
|
+
if (typeof optionsOrCb === "function") {
|
|
342
|
+
this.send(command, optionsOrCb);
|
|
343
|
+
}
|
|
344
|
+
else if (typeof cb === "function") {
|
|
345
|
+
if (typeof optionsOrCb !== "object")
|
|
346
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
347
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
return this.send(command, optionsOrCb);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
286
353
|
describeDocumentClassificationJob(args, optionsOrCb, cb) {
|
|
287
354
|
const command = new DescribeDocumentClassificationJobCommand(args);
|
|
288
355
|
if (typeof optionsOrCb === "function") {
|
|
@@ -381,6 +448,34 @@ export class Comprehend extends ComprehendClient {
|
|
|
381
448
|
return this.send(command, optionsOrCb);
|
|
382
449
|
}
|
|
383
450
|
}
|
|
451
|
+
describeFlywheel(args, optionsOrCb, cb) {
|
|
452
|
+
const command = new DescribeFlywheelCommand(args);
|
|
453
|
+
if (typeof optionsOrCb === "function") {
|
|
454
|
+
this.send(command, optionsOrCb);
|
|
455
|
+
}
|
|
456
|
+
else if (typeof cb === "function") {
|
|
457
|
+
if (typeof optionsOrCb !== "object")
|
|
458
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
459
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
return this.send(command, optionsOrCb);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
describeFlywheelIteration(args, optionsOrCb, cb) {
|
|
466
|
+
const command = new DescribeFlywheelIterationCommand(args);
|
|
467
|
+
if (typeof optionsOrCb === "function") {
|
|
468
|
+
this.send(command, optionsOrCb);
|
|
469
|
+
}
|
|
470
|
+
else if (typeof cb === "function") {
|
|
471
|
+
if (typeof optionsOrCb !== "object")
|
|
472
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
473
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
return this.send(command, optionsOrCb);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
384
479
|
describeKeyPhrasesDetectionJob(args, optionsOrCb, cb) {
|
|
385
480
|
const command = new DescribeKeyPhrasesDetectionJobCommand(args);
|
|
386
481
|
if (typeof optionsOrCb === "function") {
|
|
@@ -577,6 +672,20 @@ export class Comprehend extends ComprehendClient {
|
|
|
577
672
|
return this.send(command, optionsOrCb);
|
|
578
673
|
}
|
|
579
674
|
}
|
|
675
|
+
listDatasets(args, optionsOrCb, cb) {
|
|
676
|
+
const command = new ListDatasetsCommand(args);
|
|
677
|
+
if (typeof optionsOrCb === "function") {
|
|
678
|
+
this.send(command, optionsOrCb);
|
|
679
|
+
}
|
|
680
|
+
else if (typeof cb === "function") {
|
|
681
|
+
if (typeof optionsOrCb !== "object")
|
|
682
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
683
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
return this.send(command, optionsOrCb);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
580
689
|
listDocumentClassificationJobs(args, optionsOrCb, cb) {
|
|
581
690
|
const command = new ListDocumentClassificationJobsCommand(args);
|
|
582
691
|
if (typeof optionsOrCb === "function") {
|
|
@@ -703,6 +812,34 @@ export class Comprehend extends ComprehendClient {
|
|
|
703
812
|
return this.send(command, optionsOrCb);
|
|
704
813
|
}
|
|
705
814
|
}
|
|
815
|
+
listFlywheelIterationHistory(args, optionsOrCb, cb) {
|
|
816
|
+
const command = new ListFlywheelIterationHistoryCommand(args);
|
|
817
|
+
if (typeof optionsOrCb === "function") {
|
|
818
|
+
this.send(command, optionsOrCb);
|
|
819
|
+
}
|
|
820
|
+
else if (typeof cb === "function") {
|
|
821
|
+
if (typeof optionsOrCb !== "object")
|
|
822
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
823
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
824
|
+
}
|
|
825
|
+
else {
|
|
826
|
+
return this.send(command, optionsOrCb);
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
listFlywheels(args, optionsOrCb, cb) {
|
|
830
|
+
const command = new ListFlywheelsCommand(args);
|
|
831
|
+
if (typeof optionsOrCb === "function") {
|
|
832
|
+
this.send(command, optionsOrCb);
|
|
833
|
+
}
|
|
834
|
+
else if (typeof cb === "function") {
|
|
835
|
+
if (typeof optionsOrCb !== "object")
|
|
836
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
837
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
838
|
+
}
|
|
839
|
+
else {
|
|
840
|
+
return this.send(command, optionsOrCb);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
706
843
|
listKeyPhrasesDetectionJobs(args, optionsOrCb, cb) {
|
|
707
844
|
const command = new ListKeyPhrasesDetectionJobsCommand(args);
|
|
708
845
|
if (typeof optionsOrCb === "function") {
|
|
@@ -857,6 +994,20 @@ export class Comprehend extends ComprehendClient {
|
|
|
857
994
|
return this.send(command, optionsOrCb);
|
|
858
995
|
}
|
|
859
996
|
}
|
|
997
|
+
startFlywheelIteration(args, optionsOrCb, cb) {
|
|
998
|
+
const command = new StartFlywheelIterationCommand(args);
|
|
999
|
+
if (typeof optionsOrCb === "function") {
|
|
1000
|
+
this.send(command, optionsOrCb);
|
|
1001
|
+
}
|
|
1002
|
+
else if (typeof cb === "function") {
|
|
1003
|
+
if (typeof optionsOrCb !== "object")
|
|
1004
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1005
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1006
|
+
}
|
|
1007
|
+
else {
|
|
1008
|
+
return this.send(command, optionsOrCb);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
860
1011
|
startKeyPhrasesDetectionJob(args, optionsOrCb, cb) {
|
|
861
1012
|
const command = new StartKeyPhrasesDetectionJobCommand(args);
|
|
862
1013
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1095,4 +1246,18 @@ export class Comprehend extends ComprehendClient {
|
|
|
1095
1246
|
return this.send(command, optionsOrCb);
|
|
1096
1247
|
}
|
|
1097
1248
|
}
|
|
1249
|
+
updateFlywheel(args, optionsOrCb, cb) {
|
|
1250
|
+
const command = new UpdateFlywheelCommand(args);
|
|
1251
|
+
if (typeof optionsOrCb === "function") {
|
|
1252
|
+
this.send(command, optionsOrCb);
|
|
1253
|
+
}
|
|
1254
|
+
else if (typeof cb === "function") {
|
|
1255
|
+
if (typeof optionsOrCb !== "object")
|
|
1256
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1257
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1258
|
+
}
|
|
1259
|
+
else {
|
|
1260
|
+
return this.send(command, optionsOrCb);
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1098
1263
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateDatasetRequestFilterSensitiveLog, CreateDatasetResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateDatasetCommand, serializeAws_json1_1CreateDatasetCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class CreateDatasetCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateDatasetCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ComprehendClient";
|
|
25
|
+
const commandName = "CreateDatasetCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateDatasetRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateDatasetResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1CreateDatasetCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1CreateDatasetCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateFlywheelRequestFilterSensitiveLog, CreateFlywheelResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateFlywheelCommand, serializeAws_json1_1CreateFlywheelCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class CreateFlywheelCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateFlywheelCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ComprehendClient";
|
|
25
|
+
const commandName = "CreateFlywheelCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateFlywheelRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateFlywheelResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1CreateFlywheelCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1CreateFlywheelCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteFlywheelRequestFilterSensitiveLog, DeleteFlywheelResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DeleteFlywheelCommand, serializeAws_json1_1DeleteFlywheelCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class DeleteFlywheelCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteFlywheelCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ComprehendClient";
|
|
25
|
+
const commandName = "DeleteFlywheelCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteFlywheelRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeleteFlywheelResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1DeleteFlywheelCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1DeleteFlywheelCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeDatasetRequestFilterSensitiveLog, DescribeDatasetResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeDatasetCommand, serializeAws_json1_1DescribeDatasetCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class DescribeDatasetCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeDatasetCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ComprehendClient";
|
|
25
|
+
const commandName = "DescribeDatasetCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DescribeDatasetRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DescribeDatasetResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1DescribeDatasetCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1DescribeDatasetCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeFlywheelRequestFilterSensitiveLog, DescribeFlywheelResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeFlywheelCommand, serializeAws_json1_1DescribeFlywheelCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class DescribeFlywheelCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeFlywheelCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ComprehendClient";
|
|
25
|
+
const commandName = "DescribeFlywheelCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DescribeFlywheelRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DescribeFlywheelResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1DescribeFlywheelCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1DescribeFlywheelCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeFlywheelIterationRequestFilterSensitiveLog, DescribeFlywheelIterationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeFlywheelIterationCommand, serializeAws_json1_1DescribeFlywheelIterationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class DescribeFlywheelIterationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeFlywheelIterationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ComprehendClient";
|
|
25
|
+
const commandName = "DescribeFlywheelIterationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DescribeFlywheelIterationRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DescribeFlywheelIterationResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1DescribeFlywheelIterationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1DescribeFlywheelIterationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListDatasetsRequestFilterSensitiveLog, ListDatasetsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListDatasetsCommand, serializeAws_json1_1ListDatasetsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class ListDatasetsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListDatasetsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ComprehendClient";
|
|
25
|
+
const commandName = "ListDatasetsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListDatasetsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListDatasetsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1ListDatasetsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1ListDatasetsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListFlywheelIterationHistoryRequestFilterSensitiveLog, ListFlywheelIterationHistoryResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListFlywheelIterationHistoryCommand, serializeAws_json1_1ListFlywheelIterationHistoryCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class ListFlywheelIterationHistoryCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListFlywheelIterationHistoryCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ComprehendClient";
|
|
25
|
+
const commandName = "ListFlywheelIterationHistoryCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListFlywheelIterationHistoryRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListFlywheelIterationHistoryResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1ListFlywheelIterationHistoryCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1ListFlywheelIterationHistoryCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListFlywheelsRequestFilterSensitiveLog, ListFlywheelsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListFlywheelsCommand, serializeAws_json1_1ListFlywheelsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class ListFlywheelsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListFlywheelsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ComprehendClient";
|
|
25
|
+
const commandName = "ListFlywheelsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListFlywheelsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListFlywheelsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1ListFlywheelsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1ListFlywheelsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|