@aws-sdk/client-comprehend 3.43.0 → 3.47.1

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,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
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
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  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, 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 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), 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
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchDetectDominantLanguageCommandInput, BatchDetectDominantLanguageCommandOutput } from "./commands/BatchDetectDominantLanguageCommand";
10
10
  import { BatchDetectEntitiesCommandInput, BatchDetectEntitiesCommandOutput } from "./commands/BatchDetectEntitiesCommand";
@@ -171,6 +171,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
171
171
  * @internal
172
172
  */
173
173
  defaultUserAgentProvider?: Provider<__UserAgent>;
174
+ /**
175
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
176
+ */
177
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
174
178
  }
175
179
  declare type ComprehendClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
176
180
  /**
@@ -178,12 +178,6 @@ export interface BatchSizeLimitExceededException extends __SmithyException, $Met
178
178
  $fault: "client";
179
179
  Message?: string;
180
180
  }
181
- export declare namespace BatchSizeLimitExceededException {
182
- /**
183
- * @internal
184
- */
185
- const filterSensitiveLog: (obj: BatchSizeLimitExceededException) => any;
186
- }
187
181
  /**
188
182
  * <p>An internal server error occurred. Retry your request.</p>
189
183
  */
@@ -192,12 +186,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
192
186
  $fault: "server";
193
187
  Message?: string;
194
188
  }
195
- export declare namespace InternalServerException {
196
- /**
197
- * @internal
198
- */
199
- const filterSensitiveLog: (obj: InternalServerException) => any;
200
- }
201
189
  /**
202
190
  * <p>The request is invalid.</p>
203
191
  */
@@ -206,12 +194,6 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
206
194
  $fault: "client";
207
195
  Message?: string;
208
196
  }
209
- export declare namespace InvalidRequestException {
210
- /**
211
- * @internal
212
- */
213
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
214
- }
215
197
  /**
216
198
  * <p>The size of the input text exceeds the limit. Use a smaller document.</p>
217
199
  */
@@ -220,12 +202,6 @@ export interface TextSizeLimitExceededException extends __SmithyException, $Meta
220
202
  $fault: "client";
221
203
  Message?: string;
222
204
  }
223
- export declare namespace TextSizeLimitExceededException {
224
- /**
225
- * @internal
226
- */
227
- const filterSensitiveLog: (obj: TextSizeLimitExceededException) => any;
228
- }
229
205
  export declare enum LanguageCode {
230
206
  AR = "ar",
231
207
  DE = "de",
@@ -364,12 +340,6 @@ export interface UnsupportedLanguageException extends __SmithyException, $Metada
364
340
  $fault: "client";
365
341
  Message?: string;
366
342
  }
367
- export declare namespace UnsupportedLanguageException {
368
- /**
369
- * @internal
370
- */
371
- const filterSensitiveLog: (obj: UnsupportedLanguageException) => any;
372
- }
373
343
  export interface BatchDetectKeyPhrasesRequest {
374
344
  /**
375
345
  * <p>A list containing the text of the input documents. The list can contain a maximum of 25
@@ -899,12 +869,6 @@ export interface ResourceUnavailableException extends __SmithyException, $Metada
899
869
  $fault: "client";
900
870
  Message?: string;
901
871
  }
902
- export declare namespace ResourceUnavailableException {
903
- /**
904
- * @internal
905
- */
906
- const filterSensitiveLog: (obj: ResourceUnavailableException) => any;
907
- }
908
872
  export interface ContainsPiiEntitiesRequest {
909
873
  /**
910
874
  * <p>Creates a new document classification request to analyze a single document in real-time,
@@ -1278,12 +1242,6 @@ export interface KmsKeyValidationException extends __SmithyException, $MetadataB
1278
1242
  $fault: "client";
1279
1243
  Message?: string;
1280
1244
  }
1281
- export declare namespace KmsKeyValidationException {
1282
- /**
1283
- * @internal
1284
- */
1285
- const filterSensitiveLog: (obj: KmsKeyValidationException) => any;
1286
- }
1287
1245
  /**
1288
1246
  * <p>The specified resource name is already in use. Use a different name and try your request
1289
1247
  * again.</p>
@@ -1293,12 +1251,6 @@ export interface ResourceInUseException extends __SmithyException, $MetadataBear
1293
1251
  $fault: "client";
1294
1252
  Message?: string;
1295
1253
  }
1296
- export declare namespace ResourceInUseException {
1297
- /**
1298
- * @internal
1299
- */
1300
- const filterSensitiveLog: (obj: ResourceInUseException) => any;
1301
- }
1302
1254
  /**
1303
1255
  * <p>The maximum number of resources per account has been exceeded. Review the resources, and
1304
1256
  * then try your request again.</p>
@@ -1308,12 +1260,6 @@ export interface ResourceLimitExceededException extends __SmithyException, $Meta
1308
1260
  $fault: "client";
1309
1261
  Message?: string;
1310
1262
  }
1311
- export declare namespace ResourceLimitExceededException {
1312
- /**
1313
- * @internal
1314
- */
1315
- const filterSensitiveLog: (obj: ResourceLimitExceededException) => any;
1316
- }
1317
1263
  /**
1318
1264
  * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
1319
1265
  */
@@ -1322,12 +1268,6 @@ export interface TooManyRequestsException extends __SmithyException, $MetadataBe
1322
1268
  $fault: "client";
1323
1269
  Message?: string;
1324
1270
  }
1325
- export declare namespace TooManyRequestsException {
1326
- /**
1327
- * @internal
1328
- */
1329
- const filterSensitiveLog: (obj: TooManyRequestsException) => any;
1330
- }
1331
1271
  /**
1332
1272
  * <p>The request contains more tags than can be associated with a resource (50 tags per
1333
1273
  * resource). The maximum number of tags includes both existing tags and those included in your
@@ -1338,12 +1278,6 @@ export interface TooManyTagsException extends __SmithyException, $MetadataBearer
1338
1278
  $fault: "client";
1339
1279
  Message?: string;
1340
1280
  }
1341
- export declare namespace TooManyTagsException {
1342
- /**
1343
- * @internal
1344
- */
1345
- const filterSensitiveLog: (obj: TooManyTagsException) => any;
1346
- }
1347
1281
  export interface CreateEndpointRequest {
1348
1282
  /**
1349
1283
  * <p>This is the descriptive suffix that becomes part of the <code>EndpointArn</code> used for
@@ -1406,12 +1340,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
1406
1340
  $fault: "client";
1407
1341
  Message?: string;
1408
1342
  }
1409
- export declare namespace ResourceNotFoundException {
1410
- /**
1411
- * @internal
1412
- */
1413
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
1414
- }
1415
1343
  /**
1416
1344
  * <p>Describes the annotations associated with a entity recognizer.</p>
1417
1345
  */
@@ -2019,12 +1947,6 @@ export interface JobNotFoundException extends __SmithyException, $MetadataBearer
2019
1947
  $fault: "client";
2020
1948
  Message?: string;
2021
1949
  }
2022
- export declare namespace JobNotFoundException {
2023
- /**
2024
- * @internal
2025
- */
2026
- const filterSensitiveLog: (obj: JobNotFoundException) => any;
2027
- }
2028
1950
  export interface DescribeDocumentClassifierRequest {
2029
1951
  /**
2030
1952
  * <p>The Amazon Resource Name (ARN) that identifies the document classifier. The operation returns this identifier in its
@@ -3593,12 +3515,6 @@ export interface InvalidFilterException extends __SmithyException, $MetadataBear
3593
3515
  $fault: "client";
3594
3516
  Message?: string;
3595
3517
  }
3596
- export declare namespace InvalidFilterException {
3597
- /**
3598
- * @internal
3599
- */
3600
- const filterSensitiveLog: (obj: InvalidFilterException) => any;
3601
- }
3602
3518
  /**
3603
3519
  * <p>Provides information for filtering a list of document classification jobs. For more
3604
3520
  * information, see the operation. You can
@@ -5576,12 +5492,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
5576
5492
  $fault: "client";
5577
5493
  Message?: string;
5578
5494
  }
5579
- export declare namespace ConcurrentModificationException {
5580
- /**
5581
- * @internal
5582
- */
5583
- const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
5584
- }
5585
5495
  export interface TagResourceRequest {
5586
5496
  /**
5587
5497
  * <p>The Amazon Resource Name (ARN) of the given Amazon Comprehend resource to which you want
@@ -5617,12 +5527,6 @@ export interface TooManyTagKeysException extends __SmithyException, $MetadataBea
5617
5527
  $fault: "client";
5618
5528
  Message?: string;
5619
5529
  }
5620
- export declare namespace TooManyTagKeysException {
5621
- /**
5622
- * @internal
5623
- */
5624
- const filterSensitiveLog: (obj: TooManyTagKeysException) => any;
5625
- }
5626
5530
  export interface UntagResourceRequest {
5627
5531
  /**
5628
5532
  * <p> The Amazon Resource Name (ARN) of the given Amazon Comprehend resource from which you
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { ComprehendClientConfig } from "./ComprehendClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { ComprehendClientConfig } from "./ComprehendClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchDetectDominantLanguageCommandInput, BatchDetectDominantLanguageCommandOutput } from "./commands/BatchDetectDominantLanguageCommand";
10
10
  import { BatchDetectEntitiesCommandInput, BatchDetectEntitiesCommandOutput } from "./commands/BatchDetectEntitiesCommand";
@@ -114,6 +114,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
114
114
  regionInfoProvider?: RegionInfoProvider;
115
115
 
116
116
  defaultUserAgentProvider?: Provider<__UserAgent>;
117
+
118
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
117
119
  }
118
120
  declare type ComprehendClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
119
121
 
@@ -85,40 +85,24 @@ export interface BatchSizeLimitExceededException extends __SmithyException, $Met
85
85
  $fault: "client";
86
86
  Message?: string;
87
87
  }
88
- export declare namespace BatchSizeLimitExceededException {
89
-
90
- const filterSensitiveLog: (obj: BatchSizeLimitExceededException) => any;
91
- }
92
88
 
93
89
  export interface InternalServerException extends __SmithyException, $MetadataBearer {
94
90
  name: "InternalServerException";
95
91
  $fault: "server";
96
92
  Message?: string;
97
93
  }
98
- export declare namespace InternalServerException {
99
-
100
- const filterSensitiveLog: (obj: InternalServerException) => any;
101
- }
102
94
 
103
95
  export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
104
96
  name: "InvalidRequestException";
105
97
  $fault: "client";
106
98
  Message?: string;
107
99
  }
108
- export declare namespace InvalidRequestException {
109
-
110
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
111
- }
112
100
 
113
101
  export interface TextSizeLimitExceededException extends __SmithyException, $MetadataBearer {
114
102
  name: "TextSizeLimitExceededException";
115
103
  $fault: "client";
116
104
  Message?: string;
117
105
  }
118
- export declare namespace TextSizeLimitExceededException {
119
-
120
- const filterSensitiveLog: (obj: TextSizeLimitExceededException) => any;
121
- }
122
106
  export declare enum LanguageCode {
123
107
  AR = "ar",
124
108
  DE = "de",
@@ -198,10 +182,6 @@ export interface UnsupportedLanguageException extends __SmithyException, $Metada
198
182
  $fault: "client";
199
183
  Message?: string;
200
184
  }
201
- export declare namespace UnsupportedLanguageException {
202
-
203
- const filterSensitiveLog: (obj: UnsupportedLanguageException) => any;
204
- }
205
185
  export interface BatchDetectKeyPhrasesRequest {
206
186
 
207
187
  TextList: string[] | undefined;
@@ -475,10 +455,6 @@ export interface ResourceUnavailableException extends __SmithyException, $Metada
475
455
  $fault: "client";
476
456
  Message?: string;
477
457
  }
478
- export declare namespace ResourceUnavailableException {
479
-
480
- const filterSensitiveLog: (obj: ResourceUnavailableException) => any;
481
- }
482
458
  export interface ContainsPiiEntitiesRequest {
483
459
 
484
460
  Text: string | undefined;
@@ -635,50 +611,30 @@ export interface KmsKeyValidationException extends __SmithyException, $MetadataB
635
611
  $fault: "client";
636
612
  Message?: string;
637
613
  }
638
- export declare namespace KmsKeyValidationException {
639
-
640
- const filterSensitiveLog: (obj: KmsKeyValidationException) => any;
641
- }
642
614
 
643
615
  export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
644
616
  name: "ResourceInUseException";
645
617
  $fault: "client";
646
618
  Message?: string;
647
619
  }
648
- export declare namespace ResourceInUseException {
649
-
650
- const filterSensitiveLog: (obj: ResourceInUseException) => any;
651
- }
652
620
 
653
621
  export interface ResourceLimitExceededException extends __SmithyException, $MetadataBearer {
654
622
  name: "ResourceLimitExceededException";
655
623
  $fault: "client";
656
624
  Message?: string;
657
625
  }
658
- export declare namespace ResourceLimitExceededException {
659
-
660
- const filterSensitiveLog: (obj: ResourceLimitExceededException) => any;
661
- }
662
626
 
663
627
  export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
664
628
  name: "TooManyRequestsException";
665
629
  $fault: "client";
666
630
  Message?: string;
667
631
  }
668
- export declare namespace TooManyRequestsException {
669
-
670
- const filterSensitiveLog: (obj: TooManyRequestsException) => any;
671
- }
672
632
 
673
633
  export interface TooManyTagsException extends __SmithyException, $MetadataBearer {
674
634
  name: "TooManyTagsException";
675
635
  $fault: "client";
676
636
  Message?: string;
677
637
  }
678
- export declare namespace TooManyTagsException {
679
-
680
- const filterSensitiveLog: (obj: TooManyTagsException) => any;
681
- }
682
638
  export interface CreateEndpointRequest {
683
639
 
684
640
  EndpointName: string | undefined;
@@ -711,10 +667,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
711
667
  $fault: "client";
712
668
  Message?: string;
713
669
  }
714
- export declare namespace ResourceNotFoundException {
715
-
716
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
717
- }
718
670
 
719
671
  export interface EntityRecognizerAnnotations {
720
672
 
@@ -972,10 +924,6 @@ export interface JobNotFoundException extends __SmithyException, $MetadataBearer
972
924
  $fault: "client";
973
925
  Message?: string;
974
926
  }
975
- export declare namespace JobNotFoundException {
976
-
977
- const filterSensitiveLog: (obj: JobNotFoundException) => any;
978
- }
979
927
  export interface DescribeDocumentClassifierRequest {
980
928
 
981
929
  DocumentClassifierArn: string | undefined;
@@ -1705,10 +1653,6 @@ export interface InvalidFilterException extends __SmithyException, $MetadataBear
1705
1653
  $fault: "client";
1706
1654
  Message?: string;
1707
1655
  }
1708
- export declare namespace InvalidFilterException {
1709
-
1710
- const filterSensitiveLog: (obj: InvalidFilterException) => any;
1711
- }
1712
1656
 
1713
1657
  export interface DocumentClassificationJobFilter {
1714
1658
 
@@ -2636,10 +2580,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
2636
2580
  $fault: "client";
2637
2581
  Message?: string;
2638
2582
  }
2639
- export declare namespace ConcurrentModificationException {
2640
-
2641
- const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
2642
- }
2643
2583
  export interface TagResourceRequest {
2644
2584
 
2645
2585
  ResourceArn: string | undefined;
@@ -2662,10 +2602,6 @@ export interface TooManyTagKeysException extends __SmithyException, $MetadataBea
2662
2602
  $fault: "client";
2663
2603
  Message?: string;
2664
2604
  }
2665
- export declare namespace TooManyTagKeysException {
2666
-
2667
- const filterSensitiveLog: (obj: TooManyTagKeysException) => any;
2668
- }
2669
2605
  export interface UntagResourceRequest {
2670
2606
 
2671
2607
  ResourceArn: string | undefined;
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { ComprehendClientConfig } from "./ComprehendClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { ComprehendClientConfig } from "./ComprehendClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: ComprehendClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;