@aws-sdk/client-comprehend 3.36.1 → 3.40.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.
@@ -1,21 +1,53 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-us-east-1": {
5
- hostname: "comprehend-fips.us-east-1.amazonaws.com",
6
- signingRegion: "us-east-1",
4
+ "us-east-1": {
5
+ variants: [
6
+ {
7
+ hostname: "comprehend.us-east-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "comprehend-fips.us-east-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
7
15
  },
8
- "fips-us-east-2": {
9
- hostname: "comprehend-fips.us-east-2.amazonaws.com",
10
- signingRegion: "us-east-2",
16
+ "us-east-2": {
17
+ variants: [
18
+ {
19
+ hostname: "comprehend.us-east-2.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "comprehend-fips.us-east-2.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
- "fips-us-gov-west-1": {
13
- hostname: "comprehend-fips.us-gov-west-1.amazonaws.com",
14
- signingRegion: "us-gov-west-1",
28
+ "us-gov-west-1": {
29
+ variants: [
30
+ {
31
+ hostname: "comprehend.us-gov-west-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ {
35
+ hostname: "comprehend-fips.us-gov-west-1.amazonaws.com",
36
+ tags: ["fips"],
37
+ },
38
+ ],
15
39
  },
16
- "fips-us-west-2": {
17
- hostname: "comprehend-fips.us-west-2.amazonaws.com",
18
- signingRegion: "us-west-2",
40
+ "us-west-2": {
41
+ variants: [
42
+ {
43
+ hostname: "comprehend.us-west-2.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ {
47
+ hostname: "comprehend-fips.us-west-2.amazonaws.com",
48
+ tags: ["fips"],
49
+ },
50
+ ],
19
51
  },
20
52
  };
21
53
  var partitionHash = {
@@ -46,23 +78,89 @@ var partitionHash = {
46
78
  "us-west-1",
47
79
  "us-west-2",
48
80
  ],
49
- hostname: "comprehend.{region}.amazonaws.com",
81
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
82
+ variants: [
83
+ {
84
+ hostname: "comprehend.{region}.amazonaws.com",
85
+ tags: [],
86
+ },
87
+ {
88
+ hostname: "comprehend-fips.{region}.amazonaws.com",
89
+ tags: ["fips"],
90
+ },
91
+ {
92
+ hostname: "comprehend-fips.{region}.api.aws",
93
+ tags: ["dualstack", "fips"],
94
+ },
95
+ {
96
+ hostname: "comprehend.{region}.api.aws",
97
+ tags: ["dualstack"],
98
+ },
99
+ ],
50
100
  },
51
101
  "aws-cn": {
52
102
  regions: ["cn-north-1", "cn-northwest-1"],
53
- hostname: "comprehend.{region}.amazonaws.com.cn",
103
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
104
+ variants: [
105
+ {
106
+ hostname: "comprehend.{region}.amazonaws.com.cn",
107
+ tags: [],
108
+ },
109
+ {
110
+ hostname: "comprehend-fips.{region}.amazonaws.com.cn",
111
+ tags: ["fips"],
112
+ },
113
+ {
114
+ hostname: "comprehend-fips.{region}.api.amazonwebservices.com.cn",
115
+ tags: ["dualstack", "fips"],
116
+ },
117
+ {
118
+ hostname: "comprehend.{region}.api.amazonwebservices.com.cn",
119
+ tags: ["dualstack"],
120
+ },
121
+ ],
54
122
  },
55
123
  "aws-iso": {
56
- regions: ["us-iso-east-1"],
57
- hostname: "comprehend.{region}.c2s.ic.gov",
124
+ regions: ["us-iso-east-1", "us-iso-west-1"],
125
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
126
+ variants: [
127
+ {
128
+ hostname: "comprehend.{region}.c2s.ic.gov",
129
+ tags: [],
130
+ },
131
+ ],
58
132
  },
59
133
  "aws-iso-b": {
60
134
  regions: ["us-isob-east-1"],
61
- hostname: "comprehend.{region}.sc2s.sgov.gov",
135
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
136
+ variants: [
137
+ {
138
+ hostname: "comprehend.{region}.sc2s.sgov.gov",
139
+ tags: [],
140
+ },
141
+ ],
62
142
  },
63
143
  "aws-us-gov": {
64
144
  regions: ["fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
65
- hostname: "comprehend.{region}.amazonaws.com",
145
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
146
+ variants: [
147
+ {
148
+ hostname: "comprehend.{region}.amazonaws.com",
149
+ tags: [],
150
+ },
151
+ {
152
+ hostname: "comprehend-fips.{region}.amazonaws.com",
153
+ tags: ["fips"],
154
+ },
155
+ {
156
+ hostname: "comprehend-fips.{region}.api.aws",
157
+ tags: ["dualstack", "fips"],
158
+ },
159
+ {
160
+ hostname: "comprehend.{region}.api.aws",
161
+ tags: ["dualstack"],
162
+ },
163
+ ],
66
164
  },
67
165
  };
68
166
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
package/dist-es/index.js CHANGED
@@ -1,78 +1,5 @@
1
- export * from "./ComprehendClient";
2
1
  export * from "./Comprehend";
3
- export * from "./commands/BatchDetectDominantLanguageCommand";
4
- export * from "./commands/BatchDetectEntitiesCommand";
5
- export * from "./commands/BatchDetectKeyPhrasesCommand";
6
- export * from "./commands/BatchDetectSentimentCommand";
7
- export * from "./commands/BatchDetectSyntaxCommand";
8
- export * from "./commands/ClassifyDocumentCommand";
9
- export * from "./commands/ContainsPiiEntitiesCommand";
10
- export * from "./commands/CreateDocumentClassifierCommand";
11
- export * from "./commands/CreateEndpointCommand";
12
- export * from "./commands/CreateEntityRecognizerCommand";
13
- export * from "./commands/DeleteDocumentClassifierCommand";
14
- export * from "./commands/DeleteEndpointCommand";
15
- export * from "./commands/DeleteEntityRecognizerCommand";
16
- export * from "./commands/DescribeDocumentClassificationJobCommand";
17
- export * from "./commands/DescribeDocumentClassifierCommand";
18
- export * from "./commands/DescribeDominantLanguageDetectionJobCommand";
19
- export * from "./commands/DescribeEndpointCommand";
20
- export * from "./commands/DescribeEntitiesDetectionJobCommand";
21
- export * from "./commands/DescribeEntityRecognizerCommand";
22
- export * from "./commands/DescribeEventsDetectionJobCommand";
23
- export * from "./commands/DescribeKeyPhrasesDetectionJobCommand";
24
- export * from "./commands/DescribePiiEntitiesDetectionJobCommand";
25
- export * from "./commands/DescribeSentimentDetectionJobCommand";
26
- export * from "./commands/DescribeTopicsDetectionJobCommand";
27
- export * from "./commands/DetectDominantLanguageCommand";
28
- export * from "./commands/DetectEntitiesCommand";
29
- export * from "./commands/DetectKeyPhrasesCommand";
30
- export * from "./commands/DetectPiiEntitiesCommand";
31
- export * from "./commands/DetectSentimentCommand";
32
- export * from "./commands/DetectSyntaxCommand";
33
- export * from "./commands/ListDocumentClassificationJobsCommand";
34
- export * from "./pagination/ListDocumentClassificationJobsPaginator";
35
- export * from "./commands/ListDocumentClassifiersCommand";
36
- export * from "./pagination/ListDocumentClassifiersPaginator";
37
- export * from "./commands/ListDocumentClassifierSummariesCommand";
38
- export * from "./pagination/ListDocumentClassifierSummariesPaginator";
39
- export * from "./commands/ListDominantLanguageDetectionJobsCommand";
40
- export * from "./pagination/ListDominantLanguageDetectionJobsPaginator";
41
- export * from "./commands/ListEndpointsCommand";
42
- export * from "./commands/ListEntitiesDetectionJobsCommand";
43
- export * from "./pagination/ListEntitiesDetectionJobsPaginator";
44
- export * from "./commands/ListEntityRecognizersCommand";
45
- export * from "./pagination/ListEntityRecognizersPaginator";
46
- export * from "./commands/ListEntityRecognizerSummariesCommand";
47
- export * from "./pagination/ListEntityRecognizerSummariesPaginator";
48
- export * from "./commands/ListEventsDetectionJobsCommand";
49
- export * from "./pagination/ListEventsDetectionJobsPaginator";
50
- export * from "./commands/ListKeyPhrasesDetectionJobsCommand";
51
- export * from "./pagination/ListKeyPhrasesDetectionJobsPaginator";
52
- export * from "./commands/ListPiiEntitiesDetectionJobsCommand";
53
- export * from "./commands/ListSentimentDetectionJobsCommand";
54
- export * from "./pagination/ListSentimentDetectionJobsPaginator";
55
- export * from "./commands/ListTagsForResourceCommand";
56
- export * from "./commands/ListTopicsDetectionJobsCommand";
57
- export * from "./pagination/ListTopicsDetectionJobsPaginator";
58
- export * from "./commands/StartDocumentClassificationJobCommand";
59
- export * from "./commands/StartDominantLanguageDetectionJobCommand";
60
- export * from "./commands/StartEntitiesDetectionJobCommand";
61
- export * from "./commands/StartEventsDetectionJobCommand";
62
- export * from "./commands/StartKeyPhrasesDetectionJobCommand";
63
- export * from "./commands/StartPiiEntitiesDetectionJobCommand";
64
- export * from "./commands/StartSentimentDetectionJobCommand";
65
- export * from "./commands/StartTopicsDetectionJobCommand";
66
- export * from "./commands/StopDominantLanguageDetectionJobCommand";
67
- export * from "./commands/StopEntitiesDetectionJobCommand";
68
- export * from "./commands/StopEventsDetectionJobCommand";
69
- export * from "./commands/StopKeyPhrasesDetectionJobCommand";
70
- export * from "./commands/StopPiiEntitiesDetectionJobCommand";
71
- export * from "./commands/StopSentimentDetectionJobCommand";
72
- export * from "./commands/StopTrainingDocumentClassifierCommand";
73
- export * from "./commands/StopTrainingEntityRecognizerCommand";
74
- export * from "./commands/TagResourceCommand";
75
- export * from "./commands/UntagResourceCommand";
76
- export * from "./commands/UpdateEndpointCommand";
77
- export * from "./pagination/Interfaces";
78
- export * from "./models/index";
2
+ export * from "./ComprehendClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,12 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListDocumentClassificationJobsPaginator";
3
+ export * from "./ListDocumentClassifierSummariesPaginator";
4
+ export * from "./ListDocumentClassifiersPaginator";
5
+ export * from "./ListDominantLanguageDetectionJobsPaginator";
6
+ export * from "./ListEntitiesDetectionJobsPaginator";
7
+ export * from "./ListEntityRecognizerSummariesPaginator";
8
+ export * from "./ListEntityRecognizersPaginator";
9
+ export * from "./ListEventsDetectionJobsPaginator";
10
+ export * from "./ListKeyPhrasesDetectionJobsPaginator";
11
+ export * from "./ListSentimentDetectionJobsPaginator";
12
+ export * from "./ListTopicsDetectionJobsPaginator";
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- 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;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
21
  };
@@ -139,6 +139,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
139
139
  * Optional logger for logging debug/info/warn/error.
140
140
  */
141
141
  logger?: __Logger;
142
+ /**
143
+ * Enables IPv6/IPv4 dualstack endpoint.
144
+ */
145
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
146
+ /**
147
+ * Enables FIPS compatible endpoints.
148
+ */
149
+ useFipsEndpoint?: boolean | __Provider<boolean>;
142
150
  /**
143
151
  * Unique service identifier.
144
152
  * @internal
@@ -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";
@@ -1,78 +1,5 @@
1
- export * from "./ComprehendClient";
2
1
  export * from "./Comprehend";
3
- export * from "./commands/BatchDetectDominantLanguageCommand";
4
- export * from "./commands/BatchDetectEntitiesCommand";
5
- export * from "./commands/BatchDetectKeyPhrasesCommand";
6
- export * from "./commands/BatchDetectSentimentCommand";
7
- export * from "./commands/BatchDetectSyntaxCommand";
8
- export * from "./commands/ClassifyDocumentCommand";
9
- export * from "./commands/ContainsPiiEntitiesCommand";
10
- export * from "./commands/CreateDocumentClassifierCommand";
11
- export * from "./commands/CreateEndpointCommand";
12
- export * from "./commands/CreateEntityRecognizerCommand";
13
- export * from "./commands/DeleteDocumentClassifierCommand";
14
- export * from "./commands/DeleteEndpointCommand";
15
- export * from "./commands/DeleteEntityRecognizerCommand";
16
- export * from "./commands/DescribeDocumentClassificationJobCommand";
17
- export * from "./commands/DescribeDocumentClassifierCommand";
18
- export * from "./commands/DescribeDominantLanguageDetectionJobCommand";
19
- export * from "./commands/DescribeEndpointCommand";
20
- export * from "./commands/DescribeEntitiesDetectionJobCommand";
21
- export * from "./commands/DescribeEntityRecognizerCommand";
22
- export * from "./commands/DescribeEventsDetectionJobCommand";
23
- export * from "./commands/DescribeKeyPhrasesDetectionJobCommand";
24
- export * from "./commands/DescribePiiEntitiesDetectionJobCommand";
25
- export * from "./commands/DescribeSentimentDetectionJobCommand";
26
- export * from "./commands/DescribeTopicsDetectionJobCommand";
27
- export * from "./commands/DetectDominantLanguageCommand";
28
- export * from "./commands/DetectEntitiesCommand";
29
- export * from "./commands/DetectKeyPhrasesCommand";
30
- export * from "./commands/DetectPiiEntitiesCommand";
31
- export * from "./commands/DetectSentimentCommand";
32
- export * from "./commands/DetectSyntaxCommand";
33
- export * from "./commands/ListDocumentClassificationJobsCommand";
34
- export * from "./pagination/ListDocumentClassificationJobsPaginator";
35
- export * from "./commands/ListDocumentClassifiersCommand";
36
- export * from "./pagination/ListDocumentClassifiersPaginator";
37
- export * from "./commands/ListDocumentClassifierSummariesCommand";
38
- export * from "./pagination/ListDocumentClassifierSummariesPaginator";
39
- export * from "./commands/ListDominantLanguageDetectionJobsCommand";
40
- export * from "./pagination/ListDominantLanguageDetectionJobsPaginator";
41
- export * from "./commands/ListEndpointsCommand";
42
- export * from "./commands/ListEntitiesDetectionJobsCommand";
43
- export * from "./pagination/ListEntitiesDetectionJobsPaginator";
44
- export * from "./commands/ListEntityRecognizersCommand";
45
- export * from "./pagination/ListEntityRecognizersPaginator";
46
- export * from "./commands/ListEntityRecognizerSummariesCommand";
47
- export * from "./pagination/ListEntityRecognizerSummariesPaginator";
48
- export * from "./commands/ListEventsDetectionJobsCommand";
49
- export * from "./pagination/ListEventsDetectionJobsPaginator";
50
- export * from "./commands/ListKeyPhrasesDetectionJobsCommand";
51
- export * from "./pagination/ListKeyPhrasesDetectionJobsPaginator";
52
- export * from "./commands/ListPiiEntitiesDetectionJobsCommand";
53
- export * from "./commands/ListSentimentDetectionJobsCommand";
54
- export * from "./pagination/ListSentimentDetectionJobsPaginator";
55
- export * from "./commands/ListTagsForResourceCommand";
56
- export * from "./commands/ListTopicsDetectionJobsCommand";
57
- export * from "./pagination/ListTopicsDetectionJobsPaginator";
58
- export * from "./commands/StartDocumentClassificationJobCommand";
59
- export * from "./commands/StartDominantLanguageDetectionJobCommand";
60
- export * from "./commands/StartEntitiesDetectionJobCommand";
61
- export * from "./commands/StartEventsDetectionJobCommand";
62
- export * from "./commands/StartKeyPhrasesDetectionJobCommand";
63
- export * from "./commands/StartPiiEntitiesDetectionJobCommand";
64
- export * from "./commands/StartSentimentDetectionJobCommand";
65
- export * from "./commands/StartTopicsDetectionJobCommand";
66
- export * from "./commands/StopDominantLanguageDetectionJobCommand";
67
- export * from "./commands/StopEntitiesDetectionJobCommand";
68
- export * from "./commands/StopEventsDetectionJobCommand";
69
- export * from "./commands/StopKeyPhrasesDetectionJobCommand";
70
- export * from "./commands/StopPiiEntitiesDetectionJobCommand";
71
- export * from "./commands/StopSentimentDetectionJobCommand";
72
- export * from "./commands/StopTrainingDocumentClassifierCommand";
73
- export * from "./commands/StopTrainingEntityRecognizerCommand";
74
- export * from "./commands/TagResourceCommand";
75
- export * from "./commands/UntagResourceCommand";
76
- export * from "./commands/UpdateEndpointCommand";
77
- export * from "./pagination/Interfaces";
78
- export * from "./models/index";
2
+ export * from "./ComprehendClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,12 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListDocumentClassificationJobsPaginator";
3
+ export * from "./ListDocumentClassifierSummariesPaginator";
4
+ export * from "./ListDocumentClassifiersPaginator";
5
+ export * from "./ListDominantLanguageDetectionJobsPaginator";
6
+ export * from "./ListEntitiesDetectionJobsPaginator";
7
+ export * from "./ListEntityRecognizerSummariesPaginator";
8
+ export * from "./ListEntityRecognizersPaginator";
9
+ export * from "./ListEventsDetectionJobsPaginator";
10
+ export * from "./ListKeyPhrasesDetectionJobsPaginator";
11
+ export * from "./ListSentimentDetectionJobsPaginator";
12
+ export * from "./ListTopicsDetectionJobsPaginator";
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -18,6 +18,8 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
18
18
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
19
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
20
20
  logger: import("@aws-sdk/types").Logger;
21
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
23
  serviceId: string;
22
24
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
@@ -101,6 +101,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
101
101
 
102
102
  logger?: __Logger;
103
103
 
104
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
105
+
106
+ useFipsEndpoint?: boolean | __Provider<boolean>;
107
+
104
108
  serviceId?: string;
105
109
 
106
110
  region?: string | __Provider<string>;
@@ -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";