@aws-sdk/client-rekognition 3.46.0 → 3.47.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,19 +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 { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
17
  export var getRuntimeConfig = function (config) {
16
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
17
21
  var clientSharedValues = getSharedRuntimeConfig(config);
18
- 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 });
19
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 { CompareFacesCommandInput, CompareFacesCommandOutput } from "./commands/CompareFacesCommand";
10
10
  import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
@@ -166,6 +166,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
166
166
  * @internal
167
167
  */
168
168
  defaultUserAgentProvider?: Provider<__UserAgent>;
169
+ /**
170
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
171
+ */
172
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
169
173
  }
170
174
  declare type RekognitionClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
171
175
  /**
@@ -13,12 +13,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
13
13
  */
14
14
  Logref?: string;
15
15
  }
16
- export declare namespace AccessDeniedException {
17
- /**
18
- * @internal
19
- */
20
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
21
- }
22
16
  /**
23
17
  * <p>Structure containing the estimated age range, in years, for a face.</p>
24
18
  * <p>Amazon Rekognition estimates an age range for faces detected in the input image. Estimated age
@@ -1095,12 +1089,6 @@ export interface ImageTooLargeException extends __SmithyException, $MetadataBear
1095
1089
  */
1096
1090
  Logref?: string;
1097
1091
  }
1098
- export declare namespace ImageTooLargeException {
1099
- /**
1100
- * @internal
1101
- */
1102
- const filterSensitiveLog: (obj: ImageTooLargeException) => any;
1103
- }
1104
1092
  /**
1105
1093
  * <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
1106
1094
  */
@@ -1114,12 +1102,6 @@ export interface InternalServerError extends __SmithyException, $MetadataBearer
1114
1102
  */
1115
1103
  Logref?: string;
1116
1104
  }
1117
- export declare namespace InternalServerError {
1118
- /**
1119
- * @internal
1120
- */
1121
- const filterSensitiveLog: (obj: InternalServerError) => any;
1122
- }
1123
1105
  /**
1124
1106
  * <p>The provided image format is not supported. </p>
1125
1107
  */
@@ -1133,12 +1115,6 @@ export interface InvalidImageFormatException extends __SmithyException, $Metadat
1133
1115
  */
1134
1116
  Logref?: string;
1135
1117
  }
1136
- export declare namespace InvalidImageFormatException {
1137
- /**
1138
- * @internal
1139
- */
1140
- const filterSensitiveLog: (obj: InvalidImageFormatException) => any;
1141
- }
1142
1118
  /**
1143
1119
  * <p>Input parameter violated a constraint. Validate your parameter before calling the API
1144
1120
  * operation again.</p>
@@ -1153,12 +1129,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
1153
1129
  */
1154
1130
  Logref?: string;
1155
1131
  }
1156
- export declare namespace InvalidParameterException {
1157
- /**
1158
- * @internal
1159
- */
1160
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
1161
- }
1162
1132
  /**
1163
1133
  * <p>Amazon Rekognition is unable to access the S3 object specified in the request.</p>
1164
1134
  */
@@ -1172,12 +1142,6 @@ export interface InvalidS3ObjectException extends __SmithyException, $MetadataBe
1172
1142
  */
1173
1143
  Logref?: string;
1174
1144
  }
1175
- export declare namespace InvalidS3ObjectException {
1176
- /**
1177
- * @internal
1178
- */
1179
- const filterSensitiveLog: (obj: InvalidS3ObjectException) => any;
1180
- }
1181
1145
  /**
1182
1146
  * <p>The number of requests exceeded your throughput limit. If you want to increase this
1183
1147
  * limit, contact Amazon Rekognition.</p>
@@ -1192,12 +1156,6 @@ export interface ProvisionedThroughputExceededException extends __SmithyExceptio
1192
1156
  */
1193
1157
  Logref?: string;
1194
1158
  }
1195
- export declare namespace ProvisionedThroughputExceededException {
1196
- /**
1197
- * @internal
1198
- */
1199
- const filterSensitiveLog: (obj: ProvisionedThroughputExceededException) => any;
1200
- }
1201
1159
  /**
1202
1160
  * <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
1203
1161
  */
@@ -1211,12 +1169,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
1211
1169
  */
1212
1170
  Logref?: string;
1213
1171
  }
1214
- export declare namespace ThrottlingException {
1215
- /**
1216
- * @internal
1217
- */
1218
- const filterSensitiveLog: (obj: ThrottlingException) => any;
1219
- }
1220
1172
  export declare enum ContentClassifier {
1221
1173
  FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
1222
1174
  FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION = "FreeOfPersonallyIdentifiableInformation"
@@ -1328,12 +1280,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
1328
1280
  */
1329
1281
  Logref?: string;
1330
1282
  }
1331
- export declare namespace ResourceAlreadyExistsException {
1332
- /**
1333
- * @internal
1334
- */
1335
- const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
1336
- }
1337
1283
  /**
1338
1284
  * <p></p>
1339
1285
  *
@@ -1351,12 +1297,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
1351
1297
  */
1352
1298
  Logref?: string;
1353
1299
  }
1354
- export declare namespace ServiceQuotaExceededException {
1355
- /**
1356
- * @internal
1357
- */
1358
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
1359
- }
1360
1300
  /**
1361
1301
  * <p>
1362
1302
  * The source that Amazon Rekognition Custom Labels uses to create a dataset. To
@@ -1451,12 +1391,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
1451
1391
  */
1452
1392
  Logref?: string;
1453
1393
  }
1454
- export declare namespace LimitExceededException {
1455
- /**
1456
- * @internal
1457
- */
1458
- const filterSensitiveLog: (obj: LimitExceededException) => any;
1459
- }
1460
1394
  /**
1461
1395
  * <p>The resource specified in the request cannot be found.</p>
1462
1396
  */
@@ -1470,12 +1404,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
1470
1404
  */
1471
1405
  Logref?: string;
1472
1406
  }
1473
- export declare namespace ResourceNotFoundException {
1474
- /**
1475
- * @internal
1476
- */
1477
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
1478
- }
1479
1407
  export interface CreateProjectRequest {
1480
1408
  /**
1481
1409
  * <p>The name of the project to create.</p>
@@ -1514,12 +1442,6 @@ export interface ResourceInUseException extends __SmithyException, $MetadataBear
1514
1442
  */
1515
1443
  Logref?: string;
1516
1444
  }
1517
- export declare namespace ResourceInUseException {
1518
- /**
1519
- * @internal
1520
- */
1521
- const filterSensitiveLog: (obj: ResourceInUseException) => any;
1522
- }
1523
1445
  /**
1524
1446
  * <p>The S3 bucket and folder location where training output is placed.</p>
1525
1447
  */
@@ -2430,12 +2352,6 @@ export interface InvalidPaginationTokenException extends __SmithyException, $Met
2430
2352
  */
2431
2353
  Logref?: string;
2432
2354
  }
2433
- export declare namespace InvalidPaginationTokenException {
2434
- /**
2435
- * @internal
2436
- */
2437
- const filterSensitiveLog: (obj: InvalidPaginationTokenException) => any;
2438
- }
2439
2355
  export interface DescribeProjectVersionsRequest {
2440
2356
  /**
2441
2357
  * <p>The Amazon Resource Name (ARN) of the project that contains the models you want to describe.</p>
@@ -2823,12 +2739,6 @@ export interface ResourceNotReadyException extends __SmithyException, $MetadataB
2823
2739
  */
2824
2740
  Logref?: string;
2825
2741
  }
2826
- export declare namespace ResourceNotReadyException {
2827
- /**
2828
- * @internal
2829
- */
2830
- const filterSensitiveLog: (obj: ResourceNotReadyException) => any;
2831
- }
2832
2742
  export interface DetectFacesRequest {
2833
2743
  /**
2834
2744
  * <p>The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call
@@ -3174,12 +3084,6 @@ export interface HumanLoopQuotaExceededException extends __SmithyException, $Met
3174
3084
  */
3175
3085
  Logref?: string;
3176
3086
  }
3177
- export declare namespace HumanLoopQuotaExceededException {
3178
- /**
3179
- * @internal
3180
- */
3181
- const filterSensitiveLog: (obj: HumanLoopQuotaExceededException) => any;
3182
- }
3183
3087
  /**
3184
3088
  * <p>Specifies summary attributes to return from a call to <a>DetectProtectiveEquipment</a>.
3185
3089
  * You can specify which types of PPE to summarize. You can also specify a minimum confidence value for detections.
@@ -4469,12 +4373,6 @@ export interface IdempotentParameterMismatchException extends __SmithyException,
4469
4373
  */
4470
4374
  Logref?: string;
4471
4375
  }
4472
- export declare namespace IdempotentParameterMismatchException {
4473
- /**
4474
- * @internal
4475
- */
4476
- const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
4477
- }
4478
4376
  export interface IndexFacesRequest {
4479
4377
  /**
4480
4378
  * <p>The ID of an existing collection to which you want to add the faces that are detected
@@ -5209,12 +5107,6 @@ export interface VideoTooLargeException extends __SmithyException, $MetadataBear
5209
5107
  */
5210
5108
  Logref?: string;
5211
5109
  }
5212
- export declare namespace VideoTooLargeException {
5213
- /**
5214
- * @internal
5215
- */
5216
- const filterSensitiveLog: (obj: VideoTooLargeException) => any;
5217
- }
5218
5110
  export interface StartContentModerationRequest {
5219
5111
  /**
5220
5112
  * <p>The video in which you want to detect inappropriate, unwanted, or offensive content. The video must be stored
@@ -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 { RekognitionClientConfig } from "./RekognitionClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
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: RekognitionClientConfig) => {
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 { RekognitionClientConfig } from "./RekognitionClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
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: RekognitionClientConfig) => {
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 { CompareFacesCommandInput, CompareFacesCommandOutput } from "./commands/CompareFacesCommand";
10
10
  import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
@@ -109,6 +109,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
109
109
  regionInfoProvider?: RegionInfoProvider;
110
110
 
111
111
  defaultUserAgentProvider?: Provider<__UserAgent>;
112
+
113
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
112
114
  }
113
115
  declare type RekognitionClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
114
116
 
@@ -9,10 +9,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
9
9
 
10
10
  Logref?: string;
11
11
  }
12
- export declare namespace AccessDeniedException {
13
-
14
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
15
- }
16
12
 
17
13
  export interface AgeRange {
18
14
 
@@ -536,10 +532,6 @@ export interface ImageTooLargeException extends __SmithyException, $MetadataBear
536
532
 
537
533
  Logref?: string;
538
534
  }
539
- export declare namespace ImageTooLargeException {
540
-
541
- const filterSensitiveLog: (obj: ImageTooLargeException) => any;
542
- }
543
535
 
544
536
  export interface InternalServerError extends __SmithyException, $MetadataBearer {
545
537
  name: "InternalServerError";
@@ -549,10 +541,6 @@ export interface InternalServerError extends __SmithyException, $MetadataBearer
549
541
 
550
542
  Logref?: string;
551
543
  }
552
- export declare namespace InternalServerError {
553
-
554
- const filterSensitiveLog: (obj: InternalServerError) => any;
555
- }
556
544
 
557
545
  export interface InvalidImageFormatException extends __SmithyException, $MetadataBearer {
558
546
  name: "InvalidImageFormatException";
@@ -562,10 +550,6 @@ export interface InvalidImageFormatException extends __SmithyException, $Metadat
562
550
 
563
551
  Logref?: string;
564
552
  }
565
- export declare namespace InvalidImageFormatException {
566
-
567
- const filterSensitiveLog: (obj: InvalidImageFormatException) => any;
568
- }
569
553
 
570
554
  export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
571
555
  name: "InvalidParameterException";
@@ -575,10 +559,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
575
559
 
576
560
  Logref?: string;
577
561
  }
578
- export declare namespace InvalidParameterException {
579
-
580
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
581
- }
582
562
 
583
563
  export interface InvalidS3ObjectException extends __SmithyException, $MetadataBearer {
584
564
  name: "InvalidS3ObjectException";
@@ -588,10 +568,6 @@ export interface InvalidS3ObjectException extends __SmithyException, $MetadataBe
588
568
 
589
569
  Logref?: string;
590
570
  }
591
- export declare namespace InvalidS3ObjectException {
592
-
593
- const filterSensitiveLog: (obj: InvalidS3ObjectException) => any;
594
- }
595
571
 
596
572
  export interface ProvisionedThroughputExceededException extends __SmithyException, $MetadataBearer {
597
573
  name: "ProvisionedThroughputExceededException";
@@ -601,10 +577,6 @@ export interface ProvisionedThroughputExceededException extends __SmithyExceptio
601
577
 
602
578
  Logref?: string;
603
579
  }
604
- export declare namespace ProvisionedThroughputExceededException {
605
-
606
- const filterSensitiveLog: (obj: ProvisionedThroughputExceededException) => any;
607
- }
608
580
 
609
581
  export interface ThrottlingException extends __SmithyException, $MetadataBearer {
610
582
  name: "ThrottlingException";
@@ -614,10 +586,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
614
586
 
615
587
  Logref?: string;
616
588
  }
617
- export declare namespace ThrottlingException {
618
-
619
- const filterSensitiveLog: (obj: ThrottlingException) => any;
620
- }
621
589
  export declare enum ContentClassifier {
622
590
  FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
623
591
  FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION = "FreeOfPersonallyIdentifiableInformation"
@@ -683,10 +651,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
683
651
 
684
652
  Logref?: string;
685
653
  }
686
- export declare namespace ResourceAlreadyExistsException {
687
-
688
- const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
689
- }
690
654
 
691
655
  export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
692
656
  name: "ServiceQuotaExceededException";
@@ -696,10 +660,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
696
660
 
697
661
  Logref?: string;
698
662
  }
699
- export declare namespace ServiceQuotaExceededException {
700
-
701
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
702
- }
703
663
 
704
664
  export interface DatasetSource {
705
665
 
@@ -744,10 +704,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
744
704
 
745
705
  Logref?: string;
746
706
  }
747
- export declare namespace LimitExceededException {
748
-
749
- const filterSensitiveLog: (obj: LimitExceededException) => any;
750
- }
751
707
 
752
708
  export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
753
709
  name: "ResourceNotFoundException";
@@ -757,10 +713,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
757
713
 
758
714
  Logref?: string;
759
715
  }
760
- export declare namespace ResourceNotFoundException {
761
-
762
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
763
- }
764
716
  export interface CreateProjectRequest {
765
717
 
766
718
  ProjectName: string | undefined;
@@ -786,10 +738,6 @@ export interface ResourceInUseException extends __SmithyException, $MetadataBear
786
738
 
787
739
  Logref?: string;
788
740
  }
789
- export declare namespace ResourceInUseException {
790
-
791
- const filterSensitiveLog: (obj: ResourceInUseException) => any;
792
- }
793
741
 
794
742
  export interface OutputConfig {
795
743
 
@@ -1262,10 +1210,6 @@ export interface InvalidPaginationTokenException extends __SmithyException, $Met
1262
1210
 
1263
1211
  Logref?: string;
1264
1212
  }
1265
- export declare namespace InvalidPaginationTokenException {
1266
-
1267
- const filterSensitiveLog: (obj: InvalidPaginationTokenException) => any;
1268
- }
1269
1213
  export interface DescribeProjectVersionsRequest {
1270
1214
 
1271
1215
  ProjectArn: string | undefined;
@@ -1450,10 +1394,6 @@ export interface ResourceNotReadyException extends __SmithyException, $MetadataB
1450
1394
 
1451
1395
  Logref?: string;
1452
1396
  }
1453
- export declare namespace ResourceNotReadyException {
1454
-
1455
- const filterSensitiveLog: (obj: ResourceNotReadyException) => any;
1456
- }
1457
1397
  export interface DetectFacesRequest {
1458
1398
 
1459
1399
  Image: Image | undefined;
@@ -1620,10 +1560,6 @@ export interface HumanLoopQuotaExceededException extends __SmithyException, $Met
1620
1560
 
1621
1561
  Logref?: string;
1622
1562
  }
1623
- export declare namespace HumanLoopQuotaExceededException {
1624
-
1625
- const filterSensitiveLog: (obj: HumanLoopQuotaExceededException) => any;
1626
- }
1627
1563
 
1628
1564
  export interface ProtectiveEquipmentSummarizationAttributes {
1629
1565
 
@@ -2278,10 +2214,6 @@ export interface IdempotentParameterMismatchException extends __SmithyException,
2278
2214
 
2279
2215
  Logref?: string;
2280
2216
  }
2281
- export declare namespace IdempotentParameterMismatchException {
2282
-
2283
- const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
2284
- }
2285
2217
  export interface IndexFacesRequest {
2286
2218
 
2287
2219
  CollectionId: string | undefined;
@@ -2608,10 +2540,6 @@ export interface VideoTooLargeException extends __SmithyException, $MetadataBear
2608
2540
 
2609
2541
  Logref?: string;
2610
2542
  }
2611
- export declare namespace VideoTooLargeException {
2612
-
2613
- const filterSensitiveLog: (obj: VideoTooLargeException) => any;
2614
- }
2615
2543
  export interface StartContentModerationRequest {
2616
2544
 
2617
2545
  Video: Video | 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 { RekognitionClientConfig } from "./RekognitionClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
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: RekognitionClientConfig) => {
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 { RekognitionClientConfig } from "./RekognitionClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: RekognitionClientConfig) => {
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: RekognitionClientConfig) => {
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;