@aws-sdk/client-comprehend 3.53.0 → 3.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/Comprehend.js +60 -0
- package/dist-cjs/commands/DescribeTargetedSentimentDetectionJobCommand.js +36 -0
- package/dist-cjs/commands/ListTargetedSentimentDetectionJobsCommand.js +36 -0
- package/dist-cjs/commands/StartTargetedSentimentDetectionJobCommand.js +36 -0
- package/dist-cjs/commands/StopTargetedSentimentDetectionJobCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +63 -3
- package/dist-cjs/pagination/ListTargetedSentimentDetectionJobsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +344 -3
- package/dist-es/Comprehend.js +60 -0
- package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +39 -0
- package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +39 -0
- package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +39 -0
- package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +40 -0
- package/dist-es/pagination/ListTargetedSentimentDetectionJobsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +390 -0
- package/dist-types/Comprehend.d.ts +41 -1
- package/dist-types/ComprehendClient.d.ts +8 -4
- package/dist-types/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +36 -0
- package/dist-types/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +35 -0
- package/dist-types/commands/StartSentimentDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StartTargetedSentimentDetectionJobCommand.d.ts +37 -0
- package/dist-types/commands/StopTargetedSentimentDetectionJobCommand.d.ts +44 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +336 -2
- package/dist-types/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/Comprehend.d.ts +20 -0
- package/dist-types/ts3.4/ComprehendClient.d.ts +8 -4
- package/dist-types/ts3.4/commands/DescribeTargetedSentimentDetectionJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTargetedSentimentDetectionJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartTargetedSentimentDetectionJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopTargetedSentimentDetectionJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +140 -0
- package/dist-types/ts3.4/pagination/ListTargetedSentimentDetectionJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
18
|
|
|
8
19
|
|
package/dist-cjs/Comprehend.js
CHANGED
|
@@ -26,6 +26,7 @@ const DescribeKeyPhrasesDetectionJobCommand_1 = require("./commands/DescribeKeyP
|
|
|
26
26
|
const DescribePiiEntitiesDetectionJobCommand_1 = require("./commands/DescribePiiEntitiesDetectionJobCommand");
|
|
27
27
|
const DescribeResourcePolicyCommand_1 = require("./commands/DescribeResourcePolicyCommand");
|
|
28
28
|
const DescribeSentimentDetectionJobCommand_1 = require("./commands/DescribeSentimentDetectionJobCommand");
|
|
29
|
+
const DescribeTargetedSentimentDetectionJobCommand_1 = require("./commands/DescribeTargetedSentimentDetectionJobCommand");
|
|
29
30
|
const DescribeTopicsDetectionJobCommand_1 = require("./commands/DescribeTopicsDetectionJobCommand");
|
|
30
31
|
const DetectDominantLanguageCommand_1 = require("./commands/DetectDominantLanguageCommand");
|
|
31
32
|
const DetectEntitiesCommand_1 = require("./commands/DetectEntitiesCommand");
|
|
@@ -47,6 +48,7 @@ const ListKeyPhrasesDetectionJobsCommand_1 = require("./commands/ListKeyPhrasesD
|
|
|
47
48
|
const ListPiiEntitiesDetectionJobsCommand_1 = require("./commands/ListPiiEntitiesDetectionJobsCommand");
|
|
48
49
|
const ListSentimentDetectionJobsCommand_1 = require("./commands/ListSentimentDetectionJobsCommand");
|
|
49
50
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
51
|
+
const ListTargetedSentimentDetectionJobsCommand_1 = require("./commands/ListTargetedSentimentDetectionJobsCommand");
|
|
50
52
|
const ListTopicsDetectionJobsCommand_1 = require("./commands/ListTopicsDetectionJobsCommand");
|
|
51
53
|
const PutResourcePolicyCommand_1 = require("./commands/PutResourcePolicyCommand");
|
|
52
54
|
const StartDocumentClassificationJobCommand_1 = require("./commands/StartDocumentClassificationJobCommand");
|
|
@@ -56,6 +58,7 @@ const StartEventsDetectionJobCommand_1 = require("./commands/StartEventsDetectio
|
|
|
56
58
|
const StartKeyPhrasesDetectionJobCommand_1 = require("./commands/StartKeyPhrasesDetectionJobCommand");
|
|
57
59
|
const StartPiiEntitiesDetectionJobCommand_1 = require("./commands/StartPiiEntitiesDetectionJobCommand");
|
|
58
60
|
const StartSentimentDetectionJobCommand_1 = require("./commands/StartSentimentDetectionJobCommand");
|
|
61
|
+
const StartTargetedSentimentDetectionJobCommand_1 = require("./commands/StartTargetedSentimentDetectionJobCommand");
|
|
59
62
|
const StartTopicsDetectionJobCommand_1 = require("./commands/StartTopicsDetectionJobCommand");
|
|
60
63
|
const StopDominantLanguageDetectionJobCommand_1 = require("./commands/StopDominantLanguageDetectionJobCommand");
|
|
61
64
|
const StopEntitiesDetectionJobCommand_1 = require("./commands/StopEntitiesDetectionJobCommand");
|
|
@@ -63,6 +66,7 @@ const StopEventsDetectionJobCommand_1 = require("./commands/StopEventsDetectionJ
|
|
|
63
66
|
const StopKeyPhrasesDetectionJobCommand_1 = require("./commands/StopKeyPhrasesDetectionJobCommand");
|
|
64
67
|
const StopPiiEntitiesDetectionJobCommand_1 = require("./commands/StopPiiEntitiesDetectionJobCommand");
|
|
65
68
|
const StopSentimentDetectionJobCommand_1 = require("./commands/StopSentimentDetectionJobCommand");
|
|
69
|
+
const StopTargetedSentimentDetectionJobCommand_1 = require("./commands/StopTargetedSentimentDetectionJobCommand");
|
|
66
70
|
const StopTrainingDocumentClassifierCommand_1 = require("./commands/StopTrainingDocumentClassifierCommand");
|
|
67
71
|
const StopTrainingEntityRecognizerCommand_1 = require("./commands/StopTrainingEntityRecognizerCommand");
|
|
68
72
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
@@ -420,6 +424,20 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
420
424
|
return this.send(command, optionsOrCb);
|
|
421
425
|
}
|
|
422
426
|
}
|
|
427
|
+
describeTargetedSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
428
|
+
const command = new DescribeTargetedSentimentDetectionJobCommand_1.DescribeTargetedSentimentDetectionJobCommand(args);
|
|
429
|
+
if (typeof optionsOrCb === "function") {
|
|
430
|
+
this.send(command, optionsOrCb);
|
|
431
|
+
}
|
|
432
|
+
else if (typeof cb === "function") {
|
|
433
|
+
if (typeof optionsOrCb !== "object")
|
|
434
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
435
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
436
|
+
}
|
|
437
|
+
else {
|
|
438
|
+
return this.send(command, optionsOrCb);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
423
441
|
describeTopicsDetectionJob(args, optionsOrCb, cb) {
|
|
424
442
|
const command = new DescribeTopicsDetectionJobCommand_1.DescribeTopicsDetectionJobCommand(args);
|
|
425
443
|
if (typeof optionsOrCb === "function") {
|
|
@@ -714,6 +732,20 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
714
732
|
return this.send(command, optionsOrCb);
|
|
715
733
|
}
|
|
716
734
|
}
|
|
735
|
+
listTargetedSentimentDetectionJobs(args, optionsOrCb, cb) {
|
|
736
|
+
const command = new ListTargetedSentimentDetectionJobsCommand_1.ListTargetedSentimentDetectionJobsCommand(args);
|
|
737
|
+
if (typeof optionsOrCb === "function") {
|
|
738
|
+
this.send(command, optionsOrCb);
|
|
739
|
+
}
|
|
740
|
+
else if (typeof cb === "function") {
|
|
741
|
+
if (typeof optionsOrCb !== "object")
|
|
742
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
743
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
744
|
+
}
|
|
745
|
+
else {
|
|
746
|
+
return this.send(command, optionsOrCb);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
717
749
|
listTopicsDetectionJobs(args, optionsOrCb, cb) {
|
|
718
750
|
const command = new ListTopicsDetectionJobsCommand_1.ListTopicsDetectionJobsCommand(args);
|
|
719
751
|
if (typeof optionsOrCb === "function") {
|
|
@@ -840,6 +872,20 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
840
872
|
return this.send(command, optionsOrCb);
|
|
841
873
|
}
|
|
842
874
|
}
|
|
875
|
+
startTargetedSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
876
|
+
const command = new StartTargetedSentimentDetectionJobCommand_1.StartTargetedSentimentDetectionJobCommand(args);
|
|
877
|
+
if (typeof optionsOrCb === "function") {
|
|
878
|
+
this.send(command, optionsOrCb);
|
|
879
|
+
}
|
|
880
|
+
else if (typeof cb === "function") {
|
|
881
|
+
if (typeof optionsOrCb !== "object")
|
|
882
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
883
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
884
|
+
}
|
|
885
|
+
else {
|
|
886
|
+
return this.send(command, optionsOrCb);
|
|
887
|
+
}
|
|
888
|
+
}
|
|
843
889
|
startTopicsDetectionJob(args, optionsOrCb, cb) {
|
|
844
890
|
const command = new StartTopicsDetectionJobCommand_1.StartTopicsDetectionJobCommand(args);
|
|
845
891
|
if (typeof optionsOrCb === "function") {
|
|
@@ -938,6 +984,20 @@ class Comprehend extends ComprehendClient_1.ComprehendClient {
|
|
|
938
984
|
return this.send(command, optionsOrCb);
|
|
939
985
|
}
|
|
940
986
|
}
|
|
987
|
+
stopTargetedSentimentDetectionJob(args, optionsOrCb, cb) {
|
|
988
|
+
const command = new StopTargetedSentimentDetectionJobCommand_1.StopTargetedSentimentDetectionJobCommand(args);
|
|
989
|
+
if (typeof optionsOrCb === "function") {
|
|
990
|
+
this.send(command, optionsOrCb);
|
|
991
|
+
}
|
|
992
|
+
else if (typeof cb === "function") {
|
|
993
|
+
if (typeof optionsOrCb !== "object")
|
|
994
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
995
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
996
|
+
}
|
|
997
|
+
else {
|
|
998
|
+
return this.send(command, optionsOrCb);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
941
1001
|
stopTrainingDocumentClassifier(args, optionsOrCb, cb) {
|
|
942
1002
|
const command = new StopTrainingDocumentClassifierCommand_1.StopTrainingDocumentClassifierCommand(args);
|
|
943
1003
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeTargetedSentimentDetectionJobCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DescribeTargetedSentimentDetectionJobCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ComprehendClient";
|
|
18
|
+
const commandName = "DescribeTargetedSentimentDetectionJobCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeTargetedSentimentDetectionJobRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeTargetedSentimentDetectionJobResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeTargetedSentimentDetectionJobCommand = DescribeTargetedSentimentDetectionJobCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListTargetedSentimentDetectionJobsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListTargetedSentimentDetectionJobsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ComprehendClient";
|
|
18
|
+
const commandName = "ListTargetedSentimentDetectionJobsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListTargetedSentimentDetectionJobsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListTargetedSentimentDetectionJobsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListTargetedSentimentDetectionJobsCommand = ListTargetedSentimentDetectionJobsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartTargetedSentimentDetectionJobCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class StartTargetedSentimentDetectionJobCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ComprehendClient";
|
|
18
|
+
const commandName = "StartTargetedSentimentDetectionJobCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.StartTargetedSentimentDetectionJobRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.StartTargetedSentimentDetectionJobResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1StartTargetedSentimentDetectionJobCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StartTargetedSentimentDetectionJobCommand = StartTargetedSentimentDetectionJobCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StopTargetedSentimentDetectionJobCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class StopTargetedSentimentDetectionJobCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "ComprehendClient";
|
|
18
|
+
const commandName = "StopTargetedSentimentDetectionJobCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.StopTargetedSentimentDetectionJobRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.StopTargetedSentimentDetectionJobResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1StopTargetedSentimentDetectionJobCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StopTargetedSentimentDetectionJobCommand = StopTargetedSentimentDetectionJobCommand;
|
|
@@ -26,6 +26,7 @@ tslib_1.__exportStar(require("./DescribeKeyPhrasesDetectionJobCommand"), exports
|
|
|
26
26
|
tslib_1.__exportStar(require("./DescribePiiEntitiesDetectionJobCommand"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./DescribeResourcePolicyCommand"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./DescribeSentimentDetectionJobCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./DescribeTargetedSentimentDetectionJobCommand"), exports);
|
|
29
30
|
tslib_1.__exportStar(require("./DescribeTopicsDetectionJobCommand"), exports);
|
|
30
31
|
tslib_1.__exportStar(require("./DetectDominantLanguageCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./DetectEntitiesCommand"), exports);
|
|
@@ -47,6 +48,7 @@ tslib_1.__exportStar(require("./ListKeyPhrasesDetectionJobsCommand"), exports);
|
|
|
47
48
|
tslib_1.__exportStar(require("./ListPiiEntitiesDetectionJobsCommand"), exports);
|
|
48
49
|
tslib_1.__exportStar(require("./ListSentimentDetectionJobsCommand"), exports);
|
|
49
50
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./ListTargetedSentimentDetectionJobsCommand"), exports);
|
|
50
52
|
tslib_1.__exportStar(require("./ListTopicsDetectionJobsCommand"), exports);
|
|
51
53
|
tslib_1.__exportStar(require("./PutResourcePolicyCommand"), exports);
|
|
52
54
|
tslib_1.__exportStar(require("./StartDocumentClassificationJobCommand"), exports);
|
|
@@ -56,6 +58,7 @@ tslib_1.__exportStar(require("./StartEventsDetectionJobCommand"), exports);
|
|
|
56
58
|
tslib_1.__exportStar(require("./StartKeyPhrasesDetectionJobCommand"), exports);
|
|
57
59
|
tslib_1.__exportStar(require("./StartPiiEntitiesDetectionJobCommand"), exports);
|
|
58
60
|
tslib_1.__exportStar(require("./StartSentimentDetectionJobCommand"), exports);
|
|
61
|
+
tslib_1.__exportStar(require("./StartTargetedSentimentDetectionJobCommand"), exports);
|
|
59
62
|
tslib_1.__exportStar(require("./StartTopicsDetectionJobCommand"), exports);
|
|
60
63
|
tslib_1.__exportStar(require("./StopDominantLanguageDetectionJobCommand"), exports);
|
|
61
64
|
tslib_1.__exportStar(require("./StopEntitiesDetectionJobCommand"), exports);
|
|
@@ -63,6 +66,7 @@ tslib_1.__exportStar(require("./StopEventsDetectionJobCommand"), exports);
|
|
|
63
66
|
tslib_1.__exportStar(require("./StopKeyPhrasesDetectionJobCommand"), exports);
|
|
64
67
|
tslib_1.__exportStar(require("./StopPiiEntitiesDetectionJobCommand"), exports);
|
|
65
68
|
tslib_1.__exportStar(require("./StopSentimentDetectionJobCommand"), exports);
|
|
69
|
+
tslib_1.__exportStar(require("./StopTargetedSentimentDetectionJobCommand"), exports);
|
|
66
70
|
tslib_1.__exportStar(require("./StopTrainingDocumentClassifierCommand"), exports);
|
|
67
71
|
tslib_1.__exportStar(require("./StopTrainingEntityRecognizerCommand"), exports);
|
|
68
72
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DocumentClassifierOutputDataConfig = exports.DocumentClassifierMode = exports.DocumentClassifierInputDataConfig = exports.DocumentClassifierDataFormat = exports.ContainsPiiEntitiesResponse = exports.EntityLabel = exports.PiiEntityType = exports.ContainsPiiEntitiesRequest = exports.ResourceUnavailableException = exports.ClassifyDocumentResponse = exports.DocumentLabel = exports.DocumentClass = exports.ClassifyDocumentRequest = exports.ClassifierMetadata = exports.ClassifierEvaluationMetrics = exports.BatchDetectSyntaxResponse = exports.BatchDetectSyntaxItemResult = exports.SyntaxToken = exports.PartOfSpeechTag = exports.PartOfSpeechTagType = exports.BatchDetectSyntaxRequest = exports.SyntaxLanguageCode = exports.BatchDetectSentimentResponse = exports.BatchDetectSentimentItemResult = exports.SentimentScore = exports.SentimentType = exports.BatchDetectSentimentRequest = exports.BatchDetectKeyPhrasesResponse = exports.BatchDetectKeyPhrasesItemResult = exports.KeyPhrase = exports.BatchDetectKeyPhrasesRequest = exports.UnsupportedLanguageException = exports.BatchDetectEntitiesResponse = exports.BatchDetectEntitiesItemResult = exports.Entity = exports.EntityType = exports.BatchDetectEntitiesRequest = exports.LanguageCode = exports.TextSizeLimitExceededException = exports.InvalidRequestException = exports.InternalServerException = exports.BatchSizeLimitExceededException = exports.BatchDetectDominantLanguageResponse = exports.BatchDetectDominantLanguageItemResult = exports.DominantLanguage = exports.BatchItemError = exports.BatchDetectDominantLanguageRequest = exports.AugmentedManifestsListItem = exports.Split = exports.AugmentedManifestsDocumentTypeFormat = void 0;
|
|
4
4
|
exports.EndpointProperties = exports.EndpointStatus = exports.DescribeEndpointRequest = exports.DescribeDominantLanguageDetectionJobResponse = exports.DominantLanguageDetectionJobProperties = exports.DescribeDominantLanguageDetectionJobRequest = exports.DescribeDocumentClassifierResponse = exports.DocumentClassifierProperties = exports.ModelStatus = exports.DescribeDocumentClassifierRequest = exports.JobNotFoundException = exports.DescribeDocumentClassificationJobResponse = exports.DocumentClassificationJobProperties = exports.OutputDataConfig = exports.JobStatus = exports.InputDataConfig = exports.DocumentReaderConfig = exports.DocumentReadFeatureTypes = exports.DocumentReadMode = exports.DocumentReadAction = exports.DescribeDocumentClassificationJobRequest = exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.DeleteEntityRecognizerResponse = exports.DeleteEntityRecognizerRequest = exports.DeleteEndpointResponse = exports.DeleteEndpointRequest = exports.DeleteDocumentClassifierResponse = exports.DeleteDocumentClassifierRequest = exports.CreateEntityRecognizerResponse = exports.CreateEntityRecognizerRequest = exports.EntityRecognizerInputDataConfig = exports.EntityTypesListItem = exports.EntityRecognizerEntityList = exports.EntityRecognizerDocuments = exports.InputFormat = exports.EntityRecognizerDataFormat = exports.EntityRecognizerAnnotations = exports.ResourceNotFoundException = exports.CreateEndpointResponse = exports.CreateEndpointRequest = exports.TooManyTagsException = exports.TooManyRequestsException = exports.ResourceLimitExceededException = exports.ResourceInUseException = exports.KmsKeyValidationException = exports.CreateDocumentClassifierResponse = exports.CreateDocumentClassifierRequest = exports.VpcConfig = exports.Tag = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpdateEndpointResponse = exports.UpdateEndpointRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TooManyTagKeysException = exports.TagResourceResponse = exports.TagResourceRequest = exports.ConcurrentModificationException = exports.StopTrainingEntityRecognizerResponse = exports.StopTrainingEntityRecognizerRequest = exports.StopTrainingDocumentClassifierResponse = exports.StopTrainingDocumentClassifierRequest = exports.StopSentimentDetectionJobResponse = exports.StopSentimentDetectionJobRequest = exports.StopPiiEntitiesDetectionJobResponse = exports.StopPiiEntitiesDetectionJobRequest = exports.StopKeyPhrasesDetectionJobResponse = exports.StopKeyPhrasesDetectionJobRequest = exports.StopEventsDetectionJobResponse = exports.StopEventsDetectionJobRequest = exports.StopEntitiesDetectionJobResponse = exports.StopEntitiesDetectionJobRequest = exports.StopDominantLanguageDetectionJobResponse = exports.StopDominantLanguageDetectionJobRequest = exports.StartTopicsDetectionJobResponse = exports.StartTopicsDetectionJobRequest = exports.StartSentimentDetectionJobResponse = exports.StartSentimentDetectionJobRequest = exports.StartPiiEntitiesDetectionJobResponse = exports.StartPiiEntitiesDetectionJobRequest = exports.StartKeyPhrasesDetectionJobResponse = void 0;
|
|
5
|
+
exports.ImportModelResponse = exports.ImportModelRequest = exports.DetectSyntaxResponse = exports.DetectSyntaxRequest = exports.DetectSentimentResponse = exports.DetectSentimentRequest = exports.DetectPiiEntitiesResponse = exports.PiiEntity = exports.DetectPiiEntitiesRequest = exports.DetectKeyPhrasesResponse = exports.DetectKeyPhrasesRequest = exports.DetectEntitiesResponse = exports.DetectEntitiesRequest = exports.DetectDominantLanguageResponse = exports.DetectDominantLanguageRequest = exports.DescribeTopicsDetectionJobResponse = exports.TopicsDetectionJobProperties = exports.DescribeTopicsDetectionJobRequest = exports.DescribeTargetedSentimentDetectionJobResponse = exports.TargetedSentimentDetectionJobProperties = exports.DescribeTargetedSentimentDetectionJobRequest = exports.DescribeSentimentDetectionJobResponse = exports.SentimentDetectionJobProperties = exports.DescribeSentimentDetectionJobRequest = exports.DescribeResourcePolicyResponse = exports.DescribeResourcePolicyRequest = exports.DescribePiiEntitiesDetectionJobResponse = exports.PiiEntitiesDetectionJobProperties = exports.RedactionConfig = exports.PiiEntitiesDetectionMaskMode = exports.PiiOutputDataConfig = exports.PiiEntitiesDetectionMode = exports.DescribePiiEntitiesDetectionJobRequest = exports.DescribeKeyPhrasesDetectionJobResponse = exports.KeyPhrasesDetectionJobProperties = exports.DescribeKeyPhrasesDetectionJobRequest = exports.DescribeEventsDetectionJobResponse = exports.EventsDetectionJobProperties = exports.DescribeEventsDetectionJobRequest = exports.DescribeEntityRecognizerResponse = exports.EntityRecognizerProperties = exports.EntityRecognizerMetadata = exports.EntityRecognizerEvaluationMetrics = exports.EntityRecognizerMetadataEntityTypesListItem = exports.EntityTypesEvaluationMetrics = exports.DescribeEntityRecognizerRequest = exports.DescribeEntitiesDetectionJobResponse = exports.EntitiesDetectionJobProperties = exports.DescribeEntitiesDetectionJobRequest = exports.DescribeEndpointResponse = void 0;
|
|
6
|
+
exports.StartDominantLanguageDetectionJobRequest = exports.StartDocumentClassificationJobResponse = exports.StartDocumentClassificationJobRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.ListTopicsDetectionJobsResponse = exports.ListTopicsDetectionJobsRequest = exports.TopicsDetectionJobFilter = exports.ListTargetedSentimentDetectionJobsResponse = exports.ListTargetedSentimentDetectionJobsRequest = exports.TargetedSentimentDetectionJobFilter = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSentimentDetectionJobsResponse = exports.ListSentimentDetectionJobsRequest = exports.SentimentDetectionJobFilter = exports.ListPiiEntitiesDetectionJobsResponse = exports.ListPiiEntitiesDetectionJobsRequest = exports.PiiEntitiesDetectionJobFilter = exports.ListKeyPhrasesDetectionJobsResponse = exports.ListKeyPhrasesDetectionJobsRequest = exports.KeyPhrasesDetectionJobFilter = exports.ListEventsDetectionJobsResponse = exports.ListEventsDetectionJobsRequest = exports.EventsDetectionJobFilter = exports.ListEntityRecognizerSummariesResponse = exports.EntityRecognizerSummary = exports.ListEntityRecognizerSummariesRequest = exports.ListEntityRecognizersResponse = exports.ListEntityRecognizersRequest = exports.EntityRecognizerFilter = exports.ListEntitiesDetectionJobsResponse = exports.ListEntitiesDetectionJobsRequest = exports.EntitiesDetectionJobFilter = exports.ListEndpointsResponse = exports.ListEndpointsRequest = exports.EndpointFilter = exports.ListDominantLanguageDetectionJobsResponse = exports.ListDominantLanguageDetectionJobsRequest = exports.DominantLanguageDetectionJobFilter = exports.ListDocumentClassifierSummariesResponse = exports.DocumentClassifierSummary = exports.ListDocumentClassifierSummariesRequest = exports.ListDocumentClassifiersResponse = exports.ListDocumentClassifiersRequest = exports.DocumentClassifierFilter = exports.ListDocumentClassificationJobsResponse = exports.ListDocumentClassificationJobsRequest = exports.DocumentClassificationJobFilter = exports.InvalidFilterException = void 0;
|
|
7
|
+
exports.UpdateEndpointResponse = exports.UpdateEndpointRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TooManyTagKeysException = exports.TagResourceResponse = exports.TagResourceRequest = exports.ConcurrentModificationException = exports.StopTrainingEntityRecognizerResponse = exports.StopTrainingEntityRecognizerRequest = exports.StopTrainingDocumentClassifierResponse = exports.StopTrainingDocumentClassifierRequest = exports.StopTargetedSentimentDetectionJobResponse = exports.StopTargetedSentimentDetectionJobRequest = exports.StopSentimentDetectionJobResponse = exports.StopSentimentDetectionJobRequest = exports.StopPiiEntitiesDetectionJobResponse = exports.StopPiiEntitiesDetectionJobRequest = exports.StopKeyPhrasesDetectionJobResponse = exports.StopKeyPhrasesDetectionJobRequest = exports.StopEventsDetectionJobResponse = exports.StopEventsDetectionJobRequest = exports.StopEntitiesDetectionJobResponse = exports.StopEntitiesDetectionJobRequest = exports.StopDominantLanguageDetectionJobResponse = exports.StopDominantLanguageDetectionJobRequest = exports.StartTopicsDetectionJobResponse = exports.StartTopicsDetectionJobRequest = exports.StartTargetedSentimentDetectionJobResponse = exports.StartTargetedSentimentDetectionJobRequest = exports.StartSentimentDetectionJobResponse = exports.StartSentimentDetectionJobRequest = exports.StartPiiEntitiesDetectionJobResponse = exports.StartPiiEntitiesDetectionJobRequest = exports.StartKeyPhrasesDetectionJobResponse = exports.StartKeyPhrasesDetectionJobRequest = exports.StartEventsDetectionJobResponse = exports.StartEventsDetectionJobRequest = exports.StartEntitiesDetectionJobResponse = exports.StartEntitiesDetectionJobRequest = exports.StartDominantLanguageDetectionJobResponse = void 0;
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const ComprehendServiceException_1 = require("./ComprehendServiceException");
|
|
10
10
|
var AugmentedManifestsDocumentTypeFormat;
|
|
@@ -951,6 +951,24 @@ var DescribeSentimentDetectionJobResponse;
|
|
|
951
951
|
...obj,
|
|
952
952
|
});
|
|
953
953
|
})(DescribeSentimentDetectionJobResponse = exports.DescribeSentimentDetectionJobResponse || (exports.DescribeSentimentDetectionJobResponse = {}));
|
|
954
|
+
var DescribeTargetedSentimentDetectionJobRequest;
|
|
955
|
+
(function (DescribeTargetedSentimentDetectionJobRequest) {
|
|
956
|
+
DescribeTargetedSentimentDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
957
|
+
...obj,
|
|
958
|
+
});
|
|
959
|
+
})(DescribeTargetedSentimentDetectionJobRequest = exports.DescribeTargetedSentimentDetectionJobRequest || (exports.DescribeTargetedSentimentDetectionJobRequest = {}));
|
|
960
|
+
var TargetedSentimentDetectionJobProperties;
|
|
961
|
+
(function (TargetedSentimentDetectionJobProperties) {
|
|
962
|
+
TargetedSentimentDetectionJobProperties.filterSensitiveLog = (obj) => ({
|
|
963
|
+
...obj,
|
|
964
|
+
});
|
|
965
|
+
})(TargetedSentimentDetectionJobProperties = exports.TargetedSentimentDetectionJobProperties || (exports.TargetedSentimentDetectionJobProperties = {}));
|
|
966
|
+
var DescribeTargetedSentimentDetectionJobResponse;
|
|
967
|
+
(function (DescribeTargetedSentimentDetectionJobResponse) {
|
|
968
|
+
DescribeTargetedSentimentDetectionJobResponse.filterSensitiveLog = (obj) => ({
|
|
969
|
+
...obj,
|
|
970
|
+
});
|
|
971
|
+
})(DescribeTargetedSentimentDetectionJobResponse = exports.DescribeTargetedSentimentDetectionJobResponse || (exports.DescribeTargetedSentimentDetectionJobResponse = {}));
|
|
954
972
|
var DescribeTopicsDetectionJobRequest;
|
|
955
973
|
(function (DescribeTopicsDetectionJobRequest) {
|
|
956
974
|
DescribeTopicsDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1312,6 +1330,24 @@ var ListTagsForResourceResponse;
|
|
|
1312
1330
|
...obj,
|
|
1313
1331
|
});
|
|
1314
1332
|
})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
|
|
1333
|
+
var TargetedSentimentDetectionJobFilter;
|
|
1334
|
+
(function (TargetedSentimentDetectionJobFilter) {
|
|
1335
|
+
TargetedSentimentDetectionJobFilter.filterSensitiveLog = (obj) => ({
|
|
1336
|
+
...obj,
|
|
1337
|
+
});
|
|
1338
|
+
})(TargetedSentimentDetectionJobFilter = exports.TargetedSentimentDetectionJobFilter || (exports.TargetedSentimentDetectionJobFilter = {}));
|
|
1339
|
+
var ListTargetedSentimentDetectionJobsRequest;
|
|
1340
|
+
(function (ListTargetedSentimentDetectionJobsRequest) {
|
|
1341
|
+
ListTargetedSentimentDetectionJobsRequest.filterSensitiveLog = (obj) => ({
|
|
1342
|
+
...obj,
|
|
1343
|
+
});
|
|
1344
|
+
})(ListTargetedSentimentDetectionJobsRequest = exports.ListTargetedSentimentDetectionJobsRequest || (exports.ListTargetedSentimentDetectionJobsRequest = {}));
|
|
1345
|
+
var ListTargetedSentimentDetectionJobsResponse;
|
|
1346
|
+
(function (ListTargetedSentimentDetectionJobsResponse) {
|
|
1347
|
+
ListTargetedSentimentDetectionJobsResponse.filterSensitiveLog = (obj) => ({
|
|
1348
|
+
...obj,
|
|
1349
|
+
});
|
|
1350
|
+
})(ListTargetedSentimentDetectionJobsResponse = exports.ListTargetedSentimentDetectionJobsResponse || (exports.ListTargetedSentimentDetectionJobsResponse = {}));
|
|
1315
1351
|
var TopicsDetectionJobFilter;
|
|
1316
1352
|
(function (TopicsDetectionJobFilter) {
|
|
1317
1353
|
TopicsDetectionJobFilter.filterSensitiveLog = (obj) => ({
|
|
@@ -1426,6 +1462,18 @@ var StartSentimentDetectionJobResponse;
|
|
|
1426
1462
|
...obj,
|
|
1427
1463
|
});
|
|
1428
1464
|
})(StartSentimentDetectionJobResponse = exports.StartSentimentDetectionJobResponse || (exports.StartSentimentDetectionJobResponse = {}));
|
|
1465
|
+
var StartTargetedSentimentDetectionJobRequest;
|
|
1466
|
+
(function (StartTargetedSentimentDetectionJobRequest) {
|
|
1467
|
+
StartTargetedSentimentDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
1468
|
+
...obj,
|
|
1469
|
+
});
|
|
1470
|
+
})(StartTargetedSentimentDetectionJobRequest = exports.StartTargetedSentimentDetectionJobRequest || (exports.StartTargetedSentimentDetectionJobRequest = {}));
|
|
1471
|
+
var StartTargetedSentimentDetectionJobResponse;
|
|
1472
|
+
(function (StartTargetedSentimentDetectionJobResponse) {
|
|
1473
|
+
StartTargetedSentimentDetectionJobResponse.filterSensitiveLog = (obj) => ({
|
|
1474
|
+
...obj,
|
|
1475
|
+
});
|
|
1476
|
+
})(StartTargetedSentimentDetectionJobResponse = exports.StartTargetedSentimentDetectionJobResponse || (exports.StartTargetedSentimentDetectionJobResponse = {}));
|
|
1429
1477
|
var StartTopicsDetectionJobRequest;
|
|
1430
1478
|
(function (StartTopicsDetectionJobRequest) {
|
|
1431
1479
|
StartTopicsDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1510,6 +1558,18 @@ var StopSentimentDetectionJobResponse;
|
|
|
1510
1558
|
...obj,
|
|
1511
1559
|
});
|
|
1512
1560
|
})(StopSentimentDetectionJobResponse = exports.StopSentimentDetectionJobResponse || (exports.StopSentimentDetectionJobResponse = {}));
|
|
1561
|
+
var StopTargetedSentimentDetectionJobRequest;
|
|
1562
|
+
(function (StopTargetedSentimentDetectionJobRequest) {
|
|
1563
|
+
StopTargetedSentimentDetectionJobRequest.filterSensitiveLog = (obj) => ({
|
|
1564
|
+
...obj,
|
|
1565
|
+
});
|
|
1566
|
+
})(StopTargetedSentimentDetectionJobRequest = exports.StopTargetedSentimentDetectionJobRequest || (exports.StopTargetedSentimentDetectionJobRequest = {}));
|
|
1567
|
+
var StopTargetedSentimentDetectionJobResponse;
|
|
1568
|
+
(function (StopTargetedSentimentDetectionJobResponse) {
|
|
1569
|
+
StopTargetedSentimentDetectionJobResponse.filterSensitiveLog = (obj) => ({
|
|
1570
|
+
...obj,
|
|
1571
|
+
});
|
|
1572
|
+
})(StopTargetedSentimentDetectionJobResponse = exports.StopTargetedSentimentDetectionJobResponse || (exports.StopTargetedSentimentDetectionJobResponse = {}));
|
|
1513
1573
|
var StopTrainingDocumentClassifierRequest;
|
|
1514
1574
|
(function (StopTrainingDocumentClassifierRequest) {
|
|
1515
1575
|
StopTrainingDocumentClassifierRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListTargetedSentimentDetectionJobs = void 0;
|
|
4
|
+
const ListTargetedSentimentDetectionJobsCommand_1 = require("../commands/ListTargetedSentimentDetectionJobsCommand");
|
|
5
|
+
const Comprehend_1 = require("../Comprehend");
|
|
6
|
+
const ComprehendClient_1 = require("../ComprehendClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListTargetedSentimentDetectionJobsCommand_1.ListTargetedSentimentDetectionJobsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listTargetedSentimentDetectionJobs(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListTargetedSentimentDetectionJobs(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Comprehend_1.Comprehend) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof ComprehendClient_1.ComprehendClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListTargetedSentimentDetectionJobs = paginateListTargetedSentimentDetectionJobs;
|
|
@@ -12,4 +12,5 @@ tslib_1.__exportStar(require("./ListEntityRecognizersPaginator"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./ListEventsDetectionJobsPaginator"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./ListKeyPhrasesDetectionJobsPaginator"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./ListSentimentDetectionJobsPaginator"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./ListTargetedSentimentDetectionJobsPaginator"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./ListTopicsDetectionJobsPaginator"), exports);
|