@aws-sdk/client-comprehend 3.37.0 → 3.41.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 +42 -0
- package/dist-cjs/commands/index.js +66 -0
- package/dist-cjs/endpoints.js +123 -17
- package/dist-cjs/index.js +4 -77
- package/dist-cjs/pagination/index.js +15 -0
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/commands/index.js +63 -0
- package/dist-es/endpoints.js +123 -17
- package/dist-es/index.js +4 -77
- package/dist-es/pagination/index.js +12 -0
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/ComprehendClient.d.ts +8 -0
- package/dist-types/commands/BatchDetectDominantLanguageCommand.d.ts +1 -1
- package/dist-types/commands/BatchDetectEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/BatchDetectKeyPhrasesCommand.d.ts +1 -1
- package/dist-types/commands/BatchDetectSentimentCommand.d.ts +1 -1
- package/dist-types/commands/BatchDetectSyntaxCommand.d.ts +1 -1
- package/dist-types/commands/ClassifyDocumentCommand.d.ts +1 -1
- package/dist-types/commands/ContainsPiiEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/CreateDocumentClassifierCommand.d.ts +1 -1
- package/dist-types/commands/CreateEndpointCommand.d.ts +1 -1
- package/dist-types/commands/CreateEntityRecognizerCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDocumentClassifierCommand.d.ts +1 -1
- package/dist-types/commands/DeleteEndpointCommand.d.ts +1 -1
- package/dist-types/commands/DeleteEntityRecognizerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDocumentClassificationJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDocumentClassifierCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDominantLanguageDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEndpointCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEntitiesDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEntityRecognizerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEventsDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeKeyPhrasesDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribePiiEntitiesDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSentimentDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTopicsDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/DetectDominantLanguageCommand.d.ts +1 -1
- package/dist-types/commands/DetectEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/DetectKeyPhrasesCommand.d.ts +1 -1
- package/dist-types/commands/DetectPiiEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/DetectSentimentCommand.d.ts +1 -1
- package/dist-types/commands/DetectSyntaxCommand.d.ts +1 -1
- package/dist-types/commands/ListDocumentClassificationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListDocumentClassifierSummariesCommand.d.ts +1 -1
- package/dist-types/commands/ListDocumentClassifiersCommand.d.ts +1 -1
- package/dist-types/commands/ListDominantLanguageDetectionJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListEndpointsCommand.d.ts +1 -1
- package/dist-types/commands/ListEntitiesDetectionJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListEntityRecognizerSummariesCommand.d.ts +1 -1
- package/dist-types/commands/ListEntityRecognizersCommand.d.ts +1 -1
- package/dist-types/commands/ListEventsDetectionJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListKeyPhrasesDetectionJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListPiiEntitiesDetectionJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListSentimentDetectionJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTopicsDetectionJobsCommand.d.ts +1 -1
- package/dist-types/commands/StartDocumentClassificationJobCommand.d.ts +1 -1
- package/dist-types/commands/StartDominantLanguageDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StartEntitiesDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StartEventsDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StartKeyPhrasesDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StartPiiEntitiesDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StartSentimentDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StartTopicsDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StopDominantLanguageDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StopEntitiesDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StopEventsDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StopKeyPhrasesDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StopPiiEntitiesDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StopSentimentDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StopTrainingDocumentClassifierCommand.d.ts +1 -1
- package/dist-types/commands/StopTrainingEntityRecognizerCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEndpointCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +63 -0
- package/dist-types/index.d.ts +4 -77
- package/dist-types/pagination/index.d.ts +12 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/ComprehendClient.d.ts +4 -0
- package/dist-types/ts3.4/commands/index.d.ts +63 -0
- package/dist-types/ts3.4/index.d.ts +4 -77
- package/dist-types/ts3.4/pagination/index.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,48 @@
|
|
|
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.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @aws-sdk/client-comprehend
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
42
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
6
48
|
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
7
49
|
|
|
8
50
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./BatchDetectDominantLanguageCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./BatchDetectEntitiesCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./BatchDetectKeyPhrasesCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./BatchDetectSentimentCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./BatchDetectSyntaxCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ClassifyDocumentCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ContainsPiiEntitiesCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./CreateDocumentClassifierCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./CreateEndpointCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./CreateEntityRecognizerCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DeleteDocumentClassifierCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./DeleteEndpointCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./DeleteEntityRecognizerCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DescribeDocumentClassificationJobCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./DescribeDocumentClassifierCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./DescribeDominantLanguageDetectionJobCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./DescribeEndpointCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./DescribeEntitiesDetectionJobCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./DescribeEntityRecognizerCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./DescribeEventsDetectionJobCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./DescribeKeyPhrasesDetectionJobCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./DescribePiiEntitiesDetectionJobCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./DescribeSentimentDetectionJobCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./DescribeTopicsDetectionJobCommand"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./DetectDominantLanguageCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./DetectEntitiesCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./DetectKeyPhrasesCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./DetectPiiEntitiesCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./DetectSentimentCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./DetectSyntaxCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./ListDocumentClassificationJobsCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./ListDocumentClassifierSummariesCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./ListDocumentClassifiersCommand"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./ListDominantLanguageDetectionJobsCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./ListEndpointsCommand"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./ListEntitiesDetectionJobsCommand"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./ListEntityRecognizerSummariesCommand"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./ListEntityRecognizersCommand"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./ListEventsDetectionJobsCommand"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./ListKeyPhrasesDetectionJobsCommand"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./ListPiiEntitiesDetectionJobsCommand"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./ListSentimentDetectionJobsCommand"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./ListTopicsDetectionJobsCommand"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./StartDocumentClassificationJobCommand"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./StartDominantLanguageDetectionJobCommand"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./StartEntitiesDetectionJobCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./StartEventsDetectionJobCommand"), exports);
|
|
52
|
+
tslib_1.__exportStar(require("./StartKeyPhrasesDetectionJobCommand"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./StartPiiEntitiesDetectionJobCommand"), exports);
|
|
54
|
+
tslib_1.__exportStar(require("./StartSentimentDetectionJobCommand"), exports);
|
|
55
|
+
tslib_1.__exportStar(require("./StartTopicsDetectionJobCommand"), exports);
|
|
56
|
+
tslib_1.__exportStar(require("./StopDominantLanguageDetectionJobCommand"), exports);
|
|
57
|
+
tslib_1.__exportStar(require("./StopEntitiesDetectionJobCommand"), exports);
|
|
58
|
+
tslib_1.__exportStar(require("./StopEventsDetectionJobCommand"), exports);
|
|
59
|
+
tslib_1.__exportStar(require("./StopKeyPhrasesDetectionJobCommand"), exports);
|
|
60
|
+
tslib_1.__exportStar(require("./StopPiiEntitiesDetectionJobCommand"), exports);
|
|
61
|
+
tslib_1.__exportStar(require("./StopSentimentDetectionJobCommand"), exports);
|
|
62
|
+
tslib_1.__exportStar(require("./StopTrainingDocumentClassifierCommand"), exports);
|
|
63
|
+
tslib_1.__exportStar(require("./StopTrainingEntityRecognizerCommand"), exports);
|
|
64
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
65
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
66
|
+
tslib_1.__exportStar(require("./UpdateEndpointCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -3,21 +3,53 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
5
|
const regionHash = {
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"us-east-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "comprehend.us-east-1.amazonaws.com",
|
|
10
|
+
tags: [],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
hostname: "comprehend-fips.us-east-1.amazonaws.com",
|
|
14
|
+
tags: ["fips"],
|
|
15
|
+
},
|
|
16
|
+
],
|
|
9
17
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
"us-east-2": {
|
|
19
|
+
variants: [
|
|
20
|
+
{
|
|
21
|
+
hostname: "comprehend.us-east-2.amazonaws.com",
|
|
22
|
+
tags: [],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
hostname: "comprehend-fips.us-east-2.amazonaws.com",
|
|
26
|
+
tags: ["fips"],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
13
29
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
"us-gov-west-1": {
|
|
31
|
+
variants: [
|
|
32
|
+
{
|
|
33
|
+
hostname: "comprehend.us-gov-west-1.amazonaws.com",
|
|
34
|
+
tags: [],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
hostname: "comprehend-fips.us-gov-west-1.amazonaws.com",
|
|
38
|
+
tags: ["fips"],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
17
41
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
42
|
+
"us-west-2": {
|
|
43
|
+
variants: [
|
|
44
|
+
{
|
|
45
|
+
hostname: "comprehend.us-west-2.amazonaws.com",
|
|
46
|
+
tags: [],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
hostname: "comprehend-fips.us-west-2.amazonaws.com",
|
|
50
|
+
tags: ["fips"],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
21
53
|
},
|
|
22
54
|
};
|
|
23
55
|
const partitionHash = {
|
|
@@ -48,23 +80,97 @@ const partitionHash = {
|
|
|
48
80
|
"us-west-1",
|
|
49
81
|
"us-west-2",
|
|
50
82
|
],
|
|
51
|
-
|
|
83
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
84
|
+
variants: [
|
|
85
|
+
{
|
|
86
|
+
hostname: "comprehend.{region}.amazonaws.com",
|
|
87
|
+
tags: [],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
hostname: "comprehend-fips.{region}.amazonaws.com",
|
|
91
|
+
tags: ["fips"],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
hostname: "comprehend-fips.{region}.api.aws",
|
|
95
|
+
tags: ["dualstack", "fips"],
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
hostname: "comprehend.{region}.api.aws",
|
|
99
|
+
tags: ["dualstack"],
|
|
100
|
+
},
|
|
101
|
+
],
|
|
52
102
|
},
|
|
53
103
|
"aws-cn": {
|
|
54
104
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
55
|
-
|
|
105
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
106
|
+
variants: [
|
|
107
|
+
{
|
|
108
|
+
hostname: "comprehend.{region}.amazonaws.com.cn",
|
|
109
|
+
tags: [],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
hostname: "comprehend-fips.{region}.amazonaws.com.cn",
|
|
113
|
+
tags: ["fips"],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
hostname: "comprehend-fips.{region}.api.amazonwebservices.com.cn",
|
|
117
|
+
tags: ["dualstack", "fips"],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
hostname: "comprehend.{region}.api.amazonwebservices.com.cn",
|
|
121
|
+
tags: ["dualstack"],
|
|
122
|
+
},
|
|
123
|
+
],
|
|
56
124
|
},
|
|
57
125
|
"aws-iso": {
|
|
58
126
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
59
|
-
|
|
127
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
128
|
+
variants: [
|
|
129
|
+
{
|
|
130
|
+
hostname: "comprehend.{region}.c2s.ic.gov",
|
|
131
|
+
tags: [],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
hostname: "comprehend-fips.{region}.c2s.ic.gov",
|
|
135
|
+
tags: ["fips"],
|
|
136
|
+
},
|
|
137
|
+
],
|
|
60
138
|
},
|
|
61
139
|
"aws-iso-b": {
|
|
62
140
|
regions: ["us-isob-east-1"],
|
|
63
|
-
|
|
141
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
142
|
+
variants: [
|
|
143
|
+
{
|
|
144
|
+
hostname: "comprehend.{region}.sc2s.sgov.gov",
|
|
145
|
+
tags: [],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
hostname: "comprehend-fips.{region}.sc2s.sgov.gov",
|
|
149
|
+
tags: ["fips"],
|
|
150
|
+
},
|
|
151
|
+
],
|
|
64
152
|
},
|
|
65
153
|
"aws-us-gov": {
|
|
66
154
|
regions: ["fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
67
|
-
|
|
155
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
156
|
+
variants: [
|
|
157
|
+
{
|
|
158
|
+
hostname: "comprehend.{region}.amazonaws.com",
|
|
159
|
+
tags: [],
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
hostname: "comprehend-fips.{region}.amazonaws.com",
|
|
163
|
+
tags: ["fips"],
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
hostname: "comprehend-fips.{region}.api.aws",
|
|
167
|
+
tags: ["dualstack", "fips"],
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
hostname: "comprehend.{region}.api.aws",
|
|
171
|
+
tags: ["dualstack"],
|
|
172
|
+
},
|
|
173
|
+
],
|
|
68
174
|
},
|
|
69
175
|
};
|
|
70
176
|
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,81 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./ComprehendClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./Comprehend"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./
|
|
10
|
-
tslib_1.__exportStar(require("./commands/BatchDetectSyntaxCommand"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./commands/ClassifyDocumentCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./commands/ContainsPiiEntitiesCommand"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./commands/CreateDocumentClassifierCommand"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./commands/CreateEndpointCommand"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./commands/CreateEntityRecognizerCommand"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./commands/DeleteDocumentClassifierCommand"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./commands/DeleteEndpointCommand"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./commands/DeleteEntityRecognizerCommand"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./commands/DescribeDocumentClassificationJobCommand"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./commands/DescribeDocumentClassifierCommand"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./commands/DescribeDominantLanguageDetectionJobCommand"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./commands/DescribeEndpointCommand"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./commands/DescribeEntitiesDetectionJobCommand"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./commands/DescribeEntityRecognizerCommand"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./commands/DescribeEventsDetectionJobCommand"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./commands/DescribeKeyPhrasesDetectionJobCommand"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./commands/DescribePiiEntitiesDetectionJobCommand"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./commands/DescribeSentimentDetectionJobCommand"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./commands/DescribeTopicsDetectionJobCommand"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./commands/DetectDominantLanguageCommand"), exports);
|
|
31
|
-
tslib_1.__exportStar(require("./commands/DetectEntitiesCommand"), exports);
|
|
32
|
-
tslib_1.__exportStar(require("./commands/DetectKeyPhrasesCommand"), exports);
|
|
33
|
-
tslib_1.__exportStar(require("./commands/DetectPiiEntitiesCommand"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./commands/DetectSentimentCommand"), exports);
|
|
35
|
-
tslib_1.__exportStar(require("./commands/DetectSyntaxCommand"), exports);
|
|
36
|
-
tslib_1.__exportStar(require("./commands/ListDocumentClassificationJobsCommand"), exports);
|
|
37
|
-
tslib_1.__exportStar(require("./pagination/ListDocumentClassificationJobsPaginator"), exports);
|
|
38
|
-
tslib_1.__exportStar(require("./commands/ListDocumentClassifiersCommand"), exports);
|
|
39
|
-
tslib_1.__exportStar(require("./pagination/ListDocumentClassifiersPaginator"), exports);
|
|
40
|
-
tslib_1.__exportStar(require("./commands/ListDocumentClassifierSummariesCommand"), exports);
|
|
41
|
-
tslib_1.__exportStar(require("./pagination/ListDocumentClassifierSummariesPaginator"), exports);
|
|
42
|
-
tslib_1.__exportStar(require("./commands/ListDominantLanguageDetectionJobsCommand"), exports);
|
|
43
|
-
tslib_1.__exportStar(require("./pagination/ListDominantLanguageDetectionJobsPaginator"), exports);
|
|
44
|
-
tslib_1.__exportStar(require("./commands/ListEndpointsCommand"), exports);
|
|
45
|
-
tslib_1.__exportStar(require("./commands/ListEntitiesDetectionJobsCommand"), exports);
|
|
46
|
-
tslib_1.__exportStar(require("./pagination/ListEntitiesDetectionJobsPaginator"), exports);
|
|
47
|
-
tslib_1.__exportStar(require("./commands/ListEntityRecognizersCommand"), exports);
|
|
48
|
-
tslib_1.__exportStar(require("./pagination/ListEntityRecognizersPaginator"), exports);
|
|
49
|
-
tslib_1.__exportStar(require("./commands/ListEntityRecognizerSummariesCommand"), exports);
|
|
50
|
-
tslib_1.__exportStar(require("./pagination/ListEntityRecognizerSummariesPaginator"), exports);
|
|
51
|
-
tslib_1.__exportStar(require("./commands/ListEventsDetectionJobsCommand"), exports);
|
|
52
|
-
tslib_1.__exportStar(require("./pagination/ListEventsDetectionJobsPaginator"), exports);
|
|
53
|
-
tslib_1.__exportStar(require("./commands/ListKeyPhrasesDetectionJobsCommand"), exports);
|
|
54
|
-
tslib_1.__exportStar(require("./pagination/ListKeyPhrasesDetectionJobsPaginator"), exports);
|
|
55
|
-
tslib_1.__exportStar(require("./commands/ListPiiEntitiesDetectionJobsCommand"), exports);
|
|
56
|
-
tslib_1.__exportStar(require("./commands/ListSentimentDetectionJobsCommand"), exports);
|
|
57
|
-
tslib_1.__exportStar(require("./pagination/ListSentimentDetectionJobsPaginator"), exports);
|
|
58
|
-
tslib_1.__exportStar(require("./commands/ListTagsForResourceCommand"), exports);
|
|
59
|
-
tslib_1.__exportStar(require("./commands/ListTopicsDetectionJobsCommand"), exports);
|
|
60
|
-
tslib_1.__exportStar(require("./pagination/ListTopicsDetectionJobsPaginator"), exports);
|
|
61
|
-
tslib_1.__exportStar(require("./commands/StartDocumentClassificationJobCommand"), exports);
|
|
62
|
-
tslib_1.__exportStar(require("./commands/StartDominantLanguageDetectionJobCommand"), exports);
|
|
63
|
-
tslib_1.__exportStar(require("./commands/StartEntitiesDetectionJobCommand"), exports);
|
|
64
|
-
tslib_1.__exportStar(require("./commands/StartEventsDetectionJobCommand"), exports);
|
|
65
|
-
tslib_1.__exportStar(require("./commands/StartKeyPhrasesDetectionJobCommand"), exports);
|
|
66
|
-
tslib_1.__exportStar(require("./commands/StartPiiEntitiesDetectionJobCommand"), exports);
|
|
67
|
-
tslib_1.__exportStar(require("./commands/StartSentimentDetectionJobCommand"), exports);
|
|
68
|
-
tslib_1.__exportStar(require("./commands/StartTopicsDetectionJobCommand"), exports);
|
|
69
|
-
tslib_1.__exportStar(require("./commands/StopDominantLanguageDetectionJobCommand"), exports);
|
|
70
|
-
tslib_1.__exportStar(require("./commands/StopEntitiesDetectionJobCommand"), exports);
|
|
71
|
-
tslib_1.__exportStar(require("./commands/StopEventsDetectionJobCommand"), exports);
|
|
72
|
-
tslib_1.__exportStar(require("./commands/StopKeyPhrasesDetectionJobCommand"), exports);
|
|
73
|
-
tslib_1.__exportStar(require("./commands/StopPiiEntitiesDetectionJobCommand"), exports);
|
|
74
|
-
tslib_1.__exportStar(require("./commands/StopSentimentDetectionJobCommand"), exports);
|
|
75
|
-
tslib_1.__exportStar(require("./commands/StopTrainingDocumentClassifierCommand"), exports);
|
|
76
|
-
tslib_1.__exportStar(require("./commands/StopTrainingEntityRecognizerCommand"), exports);
|
|
77
|
-
tslib_1.__exportStar(require("./commands/TagResourceCommand"), exports);
|
|
78
|
-
tslib_1.__exportStar(require("./commands/UntagResourceCommand"), exports);
|
|
79
|
-
tslib_1.__exportStar(require("./commands/UpdateEndpointCommand"), exports);
|
|
80
|
-
tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
|
|
81
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ComprehendClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListDocumentClassificationJobsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListDocumentClassifierSummariesPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListDocumentClassifiersPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListDominantLanguageDetectionJobsPaginator"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListEntitiesDetectionJobsPaginator"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ListEntityRecognizerSummariesPaginator"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./ListEntityRecognizersPaginator"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./ListEventsDetectionJobsPaginator"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./ListKeyPhrasesDetectionJobsPaginator"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./ListSentimentDetectionJobsPaginator"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./ListTopicsDetectionJobsPaginator"), exports);
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
13
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
16
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
18
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
18
19
|
return {
|
|
19
20
|
...clientSharedValues,
|
|
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
|
|
|
30
31
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
31
32
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
32
33
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
19
|
const getRuntimeConfig = (config) => {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
23
|
return {
|
|
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
|
|
|
35
35
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
36
36
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
37
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
39
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export * from "./BatchDetectDominantLanguageCommand";
|
|
2
|
+
export * from "./BatchDetectEntitiesCommand";
|
|
3
|
+
export * from "./BatchDetectKeyPhrasesCommand";
|
|
4
|
+
export * from "./BatchDetectSentimentCommand";
|
|
5
|
+
export * from "./BatchDetectSyntaxCommand";
|
|
6
|
+
export * from "./ClassifyDocumentCommand";
|
|
7
|
+
export * from "./ContainsPiiEntitiesCommand";
|
|
8
|
+
export * from "./CreateDocumentClassifierCommand";
|
|
9
|
+
export * from "./CreateEndpointCommand";
|
|
10
|
+
export * from "./CreateEntityRecognizerCommand";
|
|
11
|
+
export * from "./DeleteDocumentClassifierCommand";
|
|
12
|
+
export * from "./DeleteEndpointCommand";
|
|
13
|
+
export * from "./DeleteEntityRecognizerCommand";
|
|
14
|
+
export * from "./DescribeDocumentClassificationJobCommand";
|
|
15
|
+
export * from "./DescribeDocumentClassifierCommand";
|
|
16
|
+
export * from "./DescribeDominantLanguageDetectionJobCommand";
|
|
17
|
+
export * from "./DescribeEndpointCommand";
|
|
18
|
+
export * from "./DescribeEntitiesDetectionJobCommand";
|
|
19
|
+
export * from "./DescribeEntityRecognizerCommand";
|
|
20
|
+
export * from "./DescribeEventsDetectionJobCommand";
|
|
21
|
+
export * from "./DescribeKeyPhrasesDetectionJobCommand";
|
|
22
|
+
export * from "./DescribePiiEntitiesDetectionJobCommand";
|
|
23
|
+
export * from "./DescribeSentimentDetectionJobCommand";
|
|
24
|
+
export * from "./DescribeTopicsDetectionJobCommand";
|
|
25
|
+
export * from "./DetectDominantLanguageCommand";
|
|
26
|
+
export * from "./DetectEntitiesCommand";
|
|
27
|
+
export * from "./DetectKeyPhrasesCommand";
|
|
28
|
+
export * from "./DetectPiiEntitiesCommand";
|
|
29
|
+
export * from "./DetectSentimentCommand";
|
|
30
|
+
export * from "./DetectSyntaxCommand";
|
|
31
|
+
export * from "./ListDocumentClassificationJobsCommand";
|
|
32
|
+
export * from "./ListDocumentClassifierSummariesCommand";
|
|
33
|
+
export * from "./ListDocumentClassifiersCommand";
|
|
34
|
+
export * from "./ListDominantLanguageDetectionJobsCommand";
|
|
35
|
+
export * from "./ListEndpointsCommand";
|
|
36
|
+
export * from "./ListEntitiesDetectionJobsCommand";
|
|
37
|
+
export * from "./ListEntityRecognizerSummariesCommand";
|
|
38
|
+
export * from "./ListEntityRecognizersCommand";
|
|
39
|
+
export * from "./ListEventsDetectionJobsCommand";
|
|
40
|
+
export * from "./ListKeyPhrasesDetectionJobsCommand";
|
|
41
|
+
export * from "./ListPiiEntitiesDetectionJobsCommand";
|
|
42
|
+
export * from "./ListSentimentDetectionJobsCommand";
|
|
43
|
+
export * from "./ListTagsForResourceCommand";
|
|
44
|
+
export * from "./ListTopicsDetectionJobsCommand";
|
|
45
|
+
export * from "./StartDocumentClassificationJobCommand";
|
|
46
|
+
export * from "./StartDominantLanguageDetectionJobCommand";
|
|
47
|
+
export * from "./StartEntitiesDetectionJobCommand";
|
|
48
|
+
export * from "./StartEventsDetectionJobCommand";
|
|
49
|
+
export * from "./StartKeyPhrasesDetectionJobCommand";
|
|
50
|
+
export * from "./StartPiiEntitiesDetectionJobCommand";
|
|
51
|
+
export * from "./StartSentimentDetectionJobCommand";
|
|
52
|
+
export * from "./StartTopicsDetectionJobCommand";
|
|
53
|
+
export * from "./StopDominantLanguageDetectionJobCommand";
|
|
54
|
+
export * from "./StopEntitiesDetectionJobCommand";
|
|
55
|
+
export * from "./StopEventsDetectionJobCommand";
|
|
56
|
+
export * from "./StopKeyPhrasesDetectionJobCommand";
|
|
57
|
+
export * from "./StopPiiEntitiesDetectionJobCommand";
|
|
58
|
+
export * from "./StopSentimentDetectionJobCommand";
|
|
59
|
+
export * from "./StopTrainingDocumentClassifierCommand";
|
|
60
|
+
export * from "./StopTrainingEntityRecognizerCommand";
|
|
61
|
+
export * from "./TagResourceCommand";
|
|
62
|
+
export * from "./UntagResourceCommand";
|
|
63
|
+
export * from "./UpdateEndpointCommand";
|