@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
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeTargetedSentimentDetectionJobRequest, DescribeTargetedSentimentDetectionJobResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand, serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DescribeTargetedSentimentDetectionJobCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeTargetedSentimentDetectionJobCommand, _super);
|
|
8
|
+
function DescribeTargetedSentimentDetectionJobCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeTargetedSentimentDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ComprehendClient";
|
|
18
|
+
var commandName = "DescribeTargetedSentimentDetectionJobCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeTargetedSentimentDetectionJobRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeTargetedSentimentDetectionJobResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeTargetedSentimentDetectionJobCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeTargetedSentimentDetectionJobCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeTargetedSentimentDetectionJobCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeTargetedSentimentDetectionJobCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListTargetedSentimentDetectionJobsRequest, ListTargetedSentimentDetectionJobsResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand, serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListTargetedSentimentDetectionJobsCommand = (function (_super) {
|
|
7
|
+
__extends(ListTargetedSentimentDetectionJobsCommand, _super);
|
|
8
|
+
function ListTargetedSentimentDetectionJobsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListTargetedSentimentDetectionJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ComprehendClient";
|
|
18
|
+
var commandName = "ListTargetedSentimentDetectionJobsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListTargetedSentimentDetectionJobsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListTargetedSentimentDetectionJobsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListTargetedSentimentDetectionJobsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListTargetedSentimentDetectionJobsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListTargetedSentimentDetectionJobsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListTargetedSentimentDetectionJobsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListTargetedSentimentDetectionJobsCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { StartTargetedSentimentDetectionJobRequest, StartTargetedSentimentDetectionJobResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand, serializeAws_json1_1StartTargetedSentimentDetectionJobCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var StartTargetedSentimentDetectionJobCommand = (function (_super) {
|
|
7
|
+
__extends(StartTargetedSentimentDetectionJobCommand, _super);
|
|
8
|
+
function StartTargetedSentimentDetectionJobCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
StartTargetedSentimentDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ComprehendClient";
|
|
18
|
+
var commandName = "StartTargetedSentimentDetectionJobCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: StartTargetedSentimentDetectionJobRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: StartTargetedSentimentDetectionJobResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
StartTargetedSentimentDetectionJobCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1StartTargetedSentimentDetectionJobCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
StartTargetedSentimentDetectionJobCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return StartTargetedSentimentDetectionJobCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { StartTargetedSentimentDetectionJobCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { StopTargetedSentimentDetectionJobRequest, StopTargetedSentimentDetectionJobResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand, serializeAws_json1_1StopTargetedSentimentDetectionJobCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var StopTargetedSentimentDetectionJobCommand = (function (_super) {
|
|
7
|
+
__extends(StopTargetedSentimentDetectionJobCommand, _super);
|
|
8
|
+
function StopTargetedSentimentDetectionJobCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
StopTargetedSentimentDetectionJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ComprehendClient";
|
|
18
|
+
var commandName = "StopTargetedSentimentDetectionJobCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: StopTargetedSentimentDetectionJobRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: StopTargetedSentimentDetectionJobResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
StopTargetedSentimentDetectionJobCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1StopTargetedSentimentDetectionJobCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
StopTargetedSentimentDetectionJobCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return StopTargetedSentimentDetectionJobCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { StopTargetedSentimentDetectionJobCommand };
|
|
@@ -23,6 +23,7 @@ export * from "./DescribeKeyPhrasesDetectionJobCommand";
|
|
|
23
23
|
export * from "./DescribePiiEntitiesDetectionJobCommand";
|
|
24
24
|
export * from "./DescribeResourcePolicyCommand";
|
|
25
25
|
export * from "./DescribeSentimentDetectionJobCommand";
|
|
26
|
+
export * from "./DescribeTargetedSentimentDetectionJobCommand";
|
|
26
27
|
export * from "./DescribeTopicsDetectionJobCommand";
|
|
27
28
|
export * from "./DetectDominantLanguageCommand";
|
|
28
29
|
export * from "./DetectEntitiesCommand";
|
|
@@ -44,6 +45,7 @@ export * from "./ListKeyPhrasesDetectionJobsCommand";
|
|
|
44
45
|
export * from "./ListPiiEntitiesDetectionJobsCommand";
|
|
45
46
|
export * from "./ListSentimentDetectionJobsCommand";
|
|
46
47
|
export * from "./ListTagsForResourceCommand";
|
|
48
|
+
export * from "./ListTargetedSentimentDetectionJobsCommand";
|
|
47
49
|
export * from "./ListTopicsDetectionJobsCommand";
|
|
48
50
|
export * from "./PutResourcePolicyCommand";
|
|
49
51
|
export * from "./StartDocumentClassificationJobCommand";
|
|
@@ -53,6 +55,7 @@ export * from "./StartEventsDetectionJobCommand";
|
|
|
53
55
|
export * from "./StartKeyPhrasesDetectionJobCommand";
|
|
54
56
|
export * from "./StartPiiEntitiesDetectionJobCommand";
|
|
55
57
|
export * from "./StartSentimentDetectionJobCommand";
|
|
58
|
+
export * from "./StartTargetedSentimentDetectionJobCommand";
|
|
56
59
|
export * from "./StartTopicsDetectionJobCommand";
|
|
57
60
|
export * from "./StopDominantLanguageDetectionJobCommand";
|
|
58
61
|
export * from "./StopEntitiesDetectionJobCommand";
|
|
@@ -60,6 +63,7 @@ export * from "./StopEventsDetectionJobCommand";
|
|
|
60
63
|
export * from "./StopKeyPhrasesDetectionJobCommand";
|
|
61
64
|
export * from "./StopPiiEntitiesDetectionJobCommand";
|
|
62
65
|
export * from "./StopSentimentDetectionJobCommand";
|
|
66
|
+
export * from "./StopTargetedSentimentDetectionJobCommand";
|
|
63
67
|
export * from "./StopTrainingDocumentClassifierCommand";
|
|
64
68
|
export * from "./StopTrainingEntityRecognizerCommand";
|
|
65
69
|
export * from "./TagResourceCommand";
|
|
@@ -730,6 +730,18 @@ export var DescribeSentimentDetectionJobResponse;
|
|
|
730
730
|
(function (DescribeSentimentDetectionJobResponse) {
|
|
731
731
|
DescribeSentimentDetectionJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
732
732
|
})(DescribeSentimentDetectionJobResponse || (DescribeSentimentDetectionJobResponse = {}));
|
|
733
|
+
export var DescribeTargetedSentimentDetectionJobRequest;
|
|
734
|
+
(function (DescribeTargetedSentimentDetectionJobRequest) {
|
|
735
|
+
DescribeTargetedSentimentDetectionJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
736
|
+
})(DescribeTargetedSentimentDetectionJobRequest || (DescribeTargetedSentimentDetectionJobRequest = {}));
|
|
737
|
+
export var TargetedSentimentDetectionJobProperties;
|
|
738
|
+
(function (TargetedSentimentDetectionJobProperties) {
|
|
739
|
+
TargetedSentimentDetectionJobProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
740
|
+
})(TargetedSentimentDetectionJobProperties || (TargetedSentimentDetectionJobProperties = {}));
|
|
741
|
+
export var DescribeTargetedSentimentDetectionJobResponse;
|
|
742
|
+
(function (DescribeTargetedSentimentDetectionJobResponse) {
|
|
743
|
+
DescribeTargetedSentimentDetectionJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
744
|
+
})(DescribeTargetedSentimentDetectionJobResponse || (DescribeTargetedSentimentDetectionJobResponse = {}));
|
|
733
745
|
export var DescribeTopicsDetectionJobRequest;
|
|
734
746
|
(function (DescribeTopicsDetectionJobRequest) {
|
|
735
747
|
DescribeTopicsDetectionJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -975,6 +987,18 @@ export var ListTagsForResourceResponse;
|
|
|
975
987
|
(function (ListTagsForResourceResponse) {
|
|
976
988
|
ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
977
989
|
})(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
|
|
990
|
+
export var TargetedSentimentDetectionJobFilter;
|
|
991
|
+
(function (TargetedSentimentDetectionJobFilter) {
|
|
992
|
+
TargetedSentimentDetectionJobFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
993
|
+
})(TargetedSentimentDetectionJobFilter || (TargetedSentimentDetectionJobFilter = {}));
|
|
994
|
+
export var ListTargetedSentimentDetectionJobsRequest;
|
|
995
|
+
(function (ListTargetedSentimentDetectionJobsRequest) {
|
|
996
|
+
ListTargetedSentimentDetectionJobsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
997
|
+
})(ListTargetedSentimentDetectionJobsRequest || (ListTargetedSentimentDetectionJobsRequest = {}));
|
|
998
|
+
export var ListTargetedSentimentDetectionJobsResponse;
|
|
999
|
+
(function (ListTargetedSentimentDetectionJobsResponse) {
|
|
1000
|
+
ListTargetedSentimentDetectionJobsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1001
|
+
})(ListTargetedSentimentDetectionJobsResponse || (ListTargetedSentimentDetectionJobsResponse = {}));
|
|
978
1002
|
export var TopicsDetectionJobFilter;
|
|
979
1003
|
(function (TopicsDetectionJobFilter) {
|
|
980
1004
|
TopicsDetectionJobFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1051,6 +1075,14 @@ export var StartSentimentDetectionJobResponse;
|
|
|
1051
1075
|
(function (StartSentimentDetectionJobResponse) {
|
|
1052
1076
|
StartSentimentDetectionJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1053
1077
|
})(StartSentimentDetectionJobResponse || (StartSentimentDetectionJobResponse = {}));
|
|
1078
|
+
export var StartTargetedSentimentDetectionJobRequest;
|
|
1079
|
+
(function (StartTargetedSentimentDetectionJobRequest) {
|
|
1080
|
+
StartTargetedSentimentDetectionJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1081
|
+
})(StartTargetedSentimentDetectionJobRequest || (StartTargetedSentimentDetectionJobRequest = {}));
|
|
1082
|
+
export var StartTargetedSentimentDetectionJobResponse;
|
|
1083
|
+
(function (StartTargetedSentimentDetectionJobResponse) {
|
|
1084
|
+
StartTargetedSentimentDetectionJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1085
|
+
})(StartTargetedSentimentDetectionJobResponse || (StartTargetedSentimentDetectionJobResponse = {}));
|
|
1054
1086
|
export var StartTopicsDetectionJobRequest;
|
|
1055
1087
|
(function (StartTopicsDetectionJobRequest) {
|
|
1056
1088
|
StartTopicsDetectionJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1107,6 +1139,14 @@ export var StopSentimentDetectionJobResponse;
|
|
|
1107
1139
|
(function (StopSentimentDetectionJobResponse) {
|
|
1108
1140
|
StopSentimentDetectionJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1109
1141
|
})(StopSentimentDetectionJobResponse || (StopSentimentDetectionJobResponse = {}));
|
|
1142
|
+
export var StopTargetedSentimentDetectionJobRequest;
|
|
1143
|
+
(function (StopTargetedSentimentDetectionJobRequest) {
|
|
1144
|
+
StopTargetedSentimentDetectionJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1145
|
+
})(StopTargetedSentimentDetectionJobRequest || (StopTargetedSentimentDetectionJobRequest = {}));
|
|
1146
|
+
export var StopTargetedSentimentDetectionJobResponse;
|
|
1147
|
+
(function (StopTargetedSentimentDetectionJobResponse) {
|
|
1148
|
+
StopTargetedSentimentDetectionJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1149
|
+
})(StopTargetedSentimentDetectionJobResponse || (StopTargetedSentimentDetectionJobResponse = {}));
|
|
1110
1150
|
export var StopTrainingDocumentClassifierRequest;
|
|
1111
1151
|
(function (StopTrainingDocumentClassifierRequest) {
|
|
1112
1152
|
StopTrainingDocumentClassifierRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTargetedSentimentDetectionJobsCommand, } from "../commands/ListTargetedSentimentDetectionJobsCommand";
|
|
3
|
+
import { Comprehend } from "../Comprehend";
|
|
4
|
+
import { ComprehendClient } from "../ComprehendClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTargetedSentimentDetectionJobsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listTargetedSentimentDetectionJobs.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListTargetedSentimentDetectionJobs(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListTargetedSentimentDetectionJobs_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Comprehend)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ComprehendClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Comprehend | ComprehendClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -9,4 +9,5 @@ export * from "./ListEntityRecognizersPaginator";
|
|
|
9
9
|
export * from "./ListEventsDetectionJobsPaginator";
|
|
10
10
|
export * from "./ListKeyPhrasesDetectionJobsPaginator";
|
|
11
11
|
export * from "./ListSentimentDetectionJobsPaginator";
|
|
12
|
+
export * from "./ListTargetedSentimentDetectionJobsPaginator";
|
|
12
13
|
export * from "./ListTopicsDetectionJobsPaginator";
|