@aws-sdk/client-rekognition 3.42.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.
- package/CHANGELOG.md +48 -0
- package/dist-cjs/endpoints.js +1 -24
- package/dist-cjs/models/models_0.js +7 -114
- package/dist-cjs/protocols/Aws_json1_1.js +1 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -24
- package/dist-es/models/models_0.js +2 -72
- package/dist-es/protocols/Aws_json1_1.js +1 -0
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Rekognition.d.ts +3 -3
- package/dist-types/RekognitionClient.d.ts +5 -1
- package/dist-types/commands/CompareFacesCommand.d.ts +1 -1
- package/dist-types/commands/DetectTextCommand.d.ts +1 -1
- package/dist-types/commands/IndexFacesCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +19 -118
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +5 -73
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
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
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", 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 : (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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), 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 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -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 {
|
|
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
|
-
|
|
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
|
|
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
|
};
|
|
@@ -90,7 +90,7 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
90
90
|
* supported. The image must be formatted as a PNG or JPEG file. </p>
|
|
91
91
|
* <p>In response, the operation returns an array of face matches ordered by similarity score
|
|
92
92
|
* in descending order. For each face match, the response provides a bounding box of the face,
|
|
93
|
-
* facial landmarks, pose details (pitch,
|
|
93
|
+
* facial landmarks, pose details (pitch, roll, and yaw), quality (brightness and sharpness), and
|
|
94
94
|
* confidence value (indicating the level of confidence that the bounding box contains a face).
|
|
95
95
|
* The response also provides a similarity score, which indicates how closely the faces match. </p>
|
|
96
96
|
*
|
|
@@ -594,7 +594,7 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
594
594
|
* <p>The <code>DetectText</code> operation returns text in an array of <a>TextDetection</a> elements, <code>TextDetections</code>. Each
|
|
595
595
|
* <code>TextDetection</code> element provides information about a single word or line of text
|
|
596
596
|
* that was detected in the image. </p>
|
|
597
|
-
* <p>A word is one or more
|
|
597
|
+
* <p>A word is one or more script characters that are not separated by spaces.
|
|
598
598
|
* <code>DetectText</code> can detect up to 100 words in an image.</p>
|
|
599
599
|
* <p>A line is a string of equally spaced words. A line isn't necessarily a complete
|
|
600
600
|
* sentence. For example, a driver's license number is detected as a line. A line ends when there
|
|
@@ -978,7 +978,7 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
978
978
|
* <p>If you request all facial attributes (by using the <code>detectionAttributes</code>
|
|
979
979
|
* parameter), Amazon Rekognition returns detailed facial attributes, such as facial landmarks (for
|
|
980
980
|
* example, location of eye and mouth) and other facial attributes. If you provide
|
|
981
|
-
* the same image, specify the same collection,
|
|
981
|
+
* the same image, specify the same collection, use the same external ID, and use the same model version in the
|
|
982
982
|
* <code>IndexFaces</code> operation, Amazon Rekognition doesn't save duplicate face metadata.</p>
|
|
983
983
|
*
|
|
984
984
|
*
|
|
@@ -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
|
/**
|
|
@@ -34,7 +34,7 @@ export interface CompareFacesCommandOutput extends CompareFacesResponse, __Metad
|
|
|
34
34
|
* supported. The image must be formatted as a PNG or JPEG file. </p>
|
|
35
35
|
* <p>In response, the operation returns an array of face matches ordered by similarity score
|
|
36
36
|
* in descending order. For each face match, the response provides a bounding box of the face,
|
|
37
|
-
* facial landmarks, pose details (pitch,
|
|
37
|
+
* facial landmarks, pose details (pitch, roll, and yaw), quality (brightness and sharpness), and
|
|
38
38
|
* confidence value (indicating the level of confidence that the bounding box contains a face).
|
|
39
39
|
* The response also provides a similarity score, which indicates how closely the faces match. </p>
|
|
40
40
|
*
|
|
@@ -15,7 +15,7 @@ export interface DetectTextCommandOutput extends DetectTextResponse, __MetadataB
|
|
|
15
15
|
* <p>The <code>DetectText</code> operation returns text in an array of <a>TextDetection</a> elements, <code>TextDetections</code>. Each
|
|
16
16
|
* <code>TextDetection</code> element provides information about a single word or line of text
|
|
17
17
|
* that was detected in the image. </p>
|
|
18
|
-
* <p>A word is one or more
|
|
18
|
+
* <p>A word is one or more script characters that are not separated by spaces.
|
|
19
19
|
* <code>DetectText</code> can detect up to 100 words in an image.</p>
|
|
20
20
|
* <p>A line is a string of equally spaced words. A line isn't necessarily a complete
|
|
21
21
|
* sentence. For example, a driver's license number is detected as a line. A line ends when there
|
|
@@ -95,7 +95,7 @@ export interface IndexFacesCommandOutput extends IndexFacesResponse, __MetadataB
|
|
|
95
95
|
* <p>If you request all facial attributes (by using the <code>detectionAttributes</code>
|
|
96
96
|
* parameter), Amazon Rekognition returns detailed facial attributes, such as facial landmarks (for
|
|
97
97
|
* example, location of eye and mouth) and other facial attributes. If you provide
|
|
98
|
-
* the same image, specify the same collection,
|
|
98
|
+
* the same image, specify the same collection, use the same external ID, and use the same model version in the
|
|
99
99
|
* <code>IndexFaces</code> operation, Amazon Rekognition doesn't save duplicate face metadata.</p>
|
|
100
100
|
*
|
|
101
101
|
*
|
|
@@ -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
|
|
@@ -520,10 +514,13 @@ export declare namespace ComparedFace {
|
|
|
520
514
|
}
|
|
521
515
|
export declare enum KnownGenderType {
|
|
522
516
|
Female = "Female",
|
|
523
|
-
Male = "Male"
|
|
517
|
+
Male = "Male",
|
|
518
|
+
Nonbinary = "Nonbinary",
|
|
519
|
+
Unlisted = "Unlisted"
|
|
524
520
|
}
|
|
525
521
|
/**
|
|
526
|
-
* <p>The known gender identity for the celebrity that matches the provided ID
|
|
522
|
+
* <p>The known gender identity for the celebrity that matches the provided ID. The known
|
|
523
|
+
* gender identity can be Male, Female, Nonbinary, or Unlisted.</p>
|
|
527
524
|
*/
|
|
528
525
|
export interface KnownGender {
|
|
529
526
|
/**
|
|
@@ -565,7 +562,8 @@ export interface Celebrity {
|
|
|
565
562
|
*/
|
|
566
563
|
MatchConfidence?: number;
|
|
567
564
|
/**
|
|
568
|
-
* <p>The known gender identity for the celebrity that matches the provided ID
|
|
565
|
+
* <p>The known gender identity for the celebrity that matches the provided ID. The known
|
|
566
|
+
* gender identity can be Male, Female, Nonbinary, or Unlisted.</p>
|
|
569
567
|
*/
|
|
570
568
|
KnownGender?: KnownGender;
|
|
571
569
|
}
|
|
@@ -1091,12 +1089,6 @@ export interface ImageTooLargeException extends __SmithyException, $MetadataBear
|
|
|
1091
1089
|
*/
|
|
1092
1090
|
Logref?: string;
|
|
1093
1091
|
}
|
|
1094
|
-
export declare namespace ImageTooLargeException {
|
|
1095
|
-
/**
|
|
1096
|
-
* @internal
|
|
1097
|
-
*/
|
|
1098
|
-
const filterSensitiveLog: (obj: ImageTooLargeException) => any;
|
|
1099
|
-
}
|
|
1100
1092
|
/**
|
|
1101
1093
|
* <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
|
|
1102
1094
|
*/
|
|
@@ -1110,12 +1102,6 @@ export interface InternalServerError extends __SmithyException, $MetadataBearer
|
|
|
1110
1102
|
*/
|
|
1111
1103
|
Logref?: string;
|
|
1112
1104
|
}
|
|
1113
|
-
export declare namespace InternalServerError {
|
|
1114
|
-
/**
|
|
1115
|
-
* @internal
|
|
1116
|
-
*/
|
|
1117
|
-
const filterSensitiveLog: (obj: InternalServerError) => any;
|
|
1118
|
-
}
|
|
1119
1105
|
/**
|
|
1120
1106
|
* <p>The provided image format is not supported. </p>
|
|
1121
1107
|
*/
|
|
@@ -1129,12 +1115,6 @@ export interface InvalidImageFormatException extends __SmithyException, $Metadat
|
|
|
1129
1115
|
*/
|
|
1130
1116
|
Logref?: string;
|
|
1131
1117
|
}
|
|
1132
|
-
export declare namespace InvalidImageFormatException {
|
|
1133
|
-
/**
|
|
1134
|
-
* @internal
|
|
1135
|
-
*/
|
|
1136
|
-
const filterSensitiveLog: (obj: InvalidImageFormatException) => any;
|
|
1137
|
-
}
|
|
1138
1118
|
/**
|
|
1139
1119
|
* <p>Input parameter violated a constraint. Validate your parameter before calling the API
|
|
1140
1120
|
* operation again.</p>
|
|
@@ -1149,12 +1129,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
|
|
|
1149
1129
|
*/
|
|
1150
1130
|
Logref?: string;
|
|
1151
1131
|
}
|
|
1152
|
-
export declare namespace InvalidParameterException {
|
|
1153
|
-
/**
|
|
1154
|
-
* @internal
|
|
1155
|
-
*/
|
|
1156
|
-
const filterSensitiveLog: (obj: InvalidParameterException) => any;
|
|
1157
|
-
}
|
|
1158
1132
|
/**
|
|
1159
1133
|
* <p>Amazon Rekognition is unable to access the S3 object specified in the request.</p>
|
|
1160
1134
|
*/
|
|
@@ -1168,12 +1142,6 @@ export interface InvalidS3ObjectException extends __SmithyException, $MetadataBe
|
|
|
1168
1142
|
*/
|
|
1169
1143
|
Logref?: string;
|
|
1170
1144
|
}
|
|
1171
|
-
export declare namespace InvalidS3ObjectException {
|
|
1172
|
-
/**
|
|
1173
|
-
* @internal
|
|
1174
|
-
*/
|
|
1175
|
-
const filterSensitiveLog: (obj: InvalidS3ObjectException) => any;
|
|
1176
|
-
}
|
|
1177
1145
|
/**
|
|
1178
1146
|
* <p>The number of requests exceeded your throughput limit. If you want to increase this
|
|
1179
1147
|
* limit, contact Amazon Rekognition.</p>
|
|
@@ -1188,12 +1156,6 @@ export interface ProvisionedThroughputExceededException extends __SmithyExceptio
|
|
|
1188
1156
|
*/
|
|
1189
1157
|
Logref?: string;
|
|
1190
1158
|
}
|
|
1191
|
-
export declare namespace ProvisionedThroughputExceededException {
|
|
1192
|
-
/**
|
|
1193
|
-
* @internal
|
|
1194
|
-
*/
|
|
1195
|
-
const filterSensitiveLog: (obj: ProvisionedThroughputExceededException) => any;
|
|
1196
|
-
}
|
|
1197
1159
|
/**
|
|
1198
1160
|
* <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
|
|
1199
1161
|
*/
|
|
@@ -1207,12 +1169,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
|
|
|
1207
1169
|
*/
|
|
1208
1170
|
Logref?: string;
|
|
1209
1171
|
}
|
|
1210
|
-
export declare namespace ThrottlingException {
|
|
1211
|
-
/**
|
|
1212
|
-
* @internal
|
|
1213
|
-
*/
|
|
1214
|
-
const filterSensitiveLog: (obj: ThrottlingException) => any;
|
|
1215
|
-
}
|
|
1216
1172
|
export declare enum ContentClassifier {
|
|
1217
1173
|
FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
|
|
1218
1174
|
FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION = "FreeOfPersonallyIdentifiableInformation"
|
|
@@ -1301,7 +1257,7 @@ export interface CreateCollectionResponse {
|
|
|
1301
1257
|
*/
|
|
1302
1258
|
CollectionArn?: string;
|
|
1303
1259
|
/**
|
|
1304
|
-
* <p>
|
|
1260
|
+
* <p>Latest face model being used with the collection. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.</p>
|
|
1305
1261
|
*/
|
|
1306
1262
|
FaceModelVersion?: string;
|
|
1307
1263
|
}
|
|
@@ -1324,12 +1280,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
|
|
|
1324
1280
|
*/
|
|
1325
1281
|
Logref?: string;
|
|
1326
1282
|
}
|
|
1327
|
-
export declare namespace ResourceAlreadyExistsException {
|
|
1328
|
-
/**
|
|
1329
|
-
* @internal
|
|
1330
|
-
*/
|
|
1331
|
-
const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
|
|
1332
|
-
}
|
|
1333
1283
|
/**
|
|
1334
1284
|
* <p></p>
|
|
1335
1285
|
*
|
|
@@ -1347,12 +1297,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
|
|
|
1347
1297
|
*/
|
|
1348
1298
|
Logref?: string;
|
|
1349
1299
|
}
|
|
1350
|
-
export declare namespace ServiceQuotaExceededException {
|
|
1351
|
-
/**
|
|
1352
|
-
* @internal
|
|
1353
|
-
*/
|
|
1354
|
-
const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
|
|
1355
|
-
}
|
|
1356
1300
|
/**
|
|
1357
1301
|
* <p>
|
|
1358
1302
|
* The source that Amazon Rekognition Custom Labels uses to create a dataset. To
|
|
@@ -1447,12 +1391,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
1447
1391
|
*/
|
|
1448
1392
|
Logref?: string;
|
|
1449
1393
|
}
|
|
1450
|
-
export declare namespace LimitExceededException {
|
|
1451
|
-
/**
|
|
1452
|
-
* @internal
|
|
1453
|
-
*/
|
|
1454
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
1455
|
-
}
|
|
1456
1394
|
/**
|
|
1457
1395
|
* <p>The resource specified in the request cannot be found.</p>
|
|
1458
1396
|
*/
|
|
@@ -1466,12 +1404,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
1466
1404
|
*/
|
|
1467
1405
|
Logref?: string;
|
|
1468
1406
|
}
|
|
1469
|
-
export declare namespace ResourceNotFoundException {
|
|
1470
|
-
/**
|
|
1471
|
-
* @internal
|
|
1472
|
-
*/
|
|
1473
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
1474
|
-
}
|
|
1475
1407
|
export interface CreateProjectRequest {
|
|
1476
1408
|
/**
|
|
1477
1409
|
* <p>The name of the project to create.</p>
|
|
@@ -1510,12 +1442,6 @@ export interface ResourceInUseException extends __SmithyException, $MetadataBear
|
|
|
1510
1442
|
*/
|
|
1511
1443
|
Logref?: string;
|
|
1512
1444
|
}
|
|
1513
|
-
export declare namespace ResourceInUseException {
|
|
1514
|
-
/**
|
|
1515
|
-
* @internal
|
|
1516
|
-
*/
|
|
1517
|
-
const filterSensitiveLog: (obj: ResourceInUseException) => any;
|
|
1518
|
-
}
|
|
1519
1445
|
/**
|
|
1520
1446
|
* <p>The S3 bucket and folder location where training output is placed.</p>
|
|
1521
1447
|
*/
|
|
@@ -2426,12 +2352,6 @@ export interface InvalidPaginationTokenException extends __SmithyException, $Met
|
|
|
2426
2352
|
*/
|
|
2427
2353
|
Logref?: string;
|
|
2428
2354
|
}
|
|
2429
|
-
export declare namespace InvalidPaginationTokenException {
|
|
2430
|
-
/**
|
|
2431
|
-
* @internal
|
|
2432
|
-
*/
|
|
2433
|
-
const filterSensitiveLog: (obj: InvalidPaginationTokenException) => any;
|
|
2434
|
-
}
|
|
2435
2355
|
export interface DescribeProjectVersionsRequest {
|
|
2436
2356
|
/**
|
|
2437
2357
|
* <p>The Amazon Resource Name (ARN) of the project that contains the models you want to describe.</p>
|
|
@@ -2819,12 +2739,6 @@ export interface ResourceNotReadyException extends __SmithyException, $MetadataB
|
|
|
2819
2739
|
*/
|
|
2820
2740
|
Logref?: string;
|
|
2821
2741
|
}
|
|
2822
|
-
export declare namespace ResourceNotReadyException {
|
|
2823
|
-
/**
|
|
2824
|
-
* @internal
|
|
2825
|
-
*/
|
|
2826
|
-
const filterSensitiveLog: (obj: ResourceNotReadyException) => any;
|
|
2827
|
-
}
|
|
2828
2742
|
export interface DetectFacesRequest {
|
|
2829
2743
|
/**
|
|
2830
2744
|
* <p>The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call
|
|
@@ -3170,12 +3084,6 @@ export interface HumanLoopQuotaExceededException extends __SmithyException, $Met
|
|
|
3170
3084
|
*/
|
|
3171
3085
|
Logref?: string;
|
|
3172
3086
|
}
|
|
3173
|
-
export declare namespace HumanLoopQuotaExceededException {
|
|
3174
|
-
/**
|
|
3175
|
-
* @internal
|
|
3176
|
-
*/
|
|
3177
|
-
const filterSensitiveLog: (obj: HumanLoopQuotaExceededException) => any;
|
|
3178
|
-
}
|
|
3179
3087
|
/**
|
|
3180
3088
|
* <p>Specifies summary attributes to return from a call to <a>DetectProtectiveEquipment</a>.
|
|
3181
3089
|
* You can specify which types of PPE to summarize. You can also specify a minimum confidence value for detections.
|
|
@@ -3520,6 +3428,12 @@ export interface Face {
|
|
|
3520
3428
|
* as a tree).</p>
|
|
3521
3429
|
*/
|
|
3522
3430
|
Confidence?: number;
|
|
3431
|
+
/**
|
|
3432
|
+
* <p>
|
|
3433
|
+
* The version of the face detect and storage model that was used when indexing the face vector.
|
|
3434
|
+
* </p>
|
|
3435
|
+
*/
|
|
3436
|
+
IndexFacesModelVersion?: string;
|
|
3523
3437
|
}
|
|
3524
3438
|
export declare namespace Face {
|
|
3525
3439
|
/**
|
|
@@ -4459,12 +4373,6 @@ export interface IdempotentParameterMismatchException extends __SmithyException,
|
|
|
4459
4373
|
*/
|
|
4460
4374
|
Logref?: string;
|
|
4461
4375
|
}
|
|
4462
|
-
export declare namespace IdempotentParameterMismatchException {
|
|
4463
|
-
/**
|
|
4464
|
-
* @internal
|
|
4465
|
-
*/
|
|
4466
|
-
const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
|
|
4467
|
-
}
|
|
4468
4376
|
export interface IndexFacesRequest {
|
|
4469
4377
|
/**
|
|
4470
4378
|
* <p>The ID of an existing collection to which you want to add the faces that are detected
|
|
@@ -4624,8 +4532,7 @@ export interface IndexFacesResponse {
|
|
|
4624
4532
|
*/
|
|
4625
4533
|
OrientationCorrection?: OrientationCorrection | string;
|
|
4626
4534
|
/**
|
|
4627
|
-
* <p>
|
|
4628
|
-
* collection (<code>CollectionId</code>).</p>
|
|
4535
|
+
* <p>Latest face model being used with the collection. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.</p>
|
|
4629
4536
|
*/
|
|
4630
4537
|
FaceModelVersion?: string;
|
|
4631
4538
|
/**
|
|
@@ -4669,7 +4576,7 @@ export interface ListCollectionsResponse {
|
|
|
4669
4576
|
*/
|
|
4670
4577
|
NextToken?: string;
|
|
4671
4578
|
/**
|
|
4672
|
-
* <p>
|
|
4579
|
+
* <p>Latest face models being used with the corresponding collections in the array. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.
|
|
4673
4580
|
* For example, the value of <code>FaceModelVersions[2]</code> is the version number for the face detection model used
|
|
4674
4581
|
* by the collection in <code>CollectionId[2]</code>.</p>
|
|
4675
4582
|
*/
|
|
@@ -4831,7 +4738,7 @@ export interface ListFacesResponse {
|
|
|
4831
4738
|
*/
|
|
4832
4739
|
NextToken?: string;
|
|
4833
4740
|
/**
|
|
4834
|
-
* <p>
|
|
4741
|
+
* <p>Latest face model being used with the collection. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.</p>
|
|
4835
4742
|
*/
|
|
4836
4743
|
FaceModelVersion?: string;
|
|
4837
4744
|
}
|
|
@@ -5043,7 +4950,7 @@ export interface SearchFacesResponse {
|
|
|
5043
4950
|
*/
|
|
5044
4951
|
FaceMatches?: FaceMatch[];
|
|
5045
4952
|
/**
|
|
5046
|
-
* <p>
|
|
4953
|
+
* <p>Latest face model being used with the collection. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.</p>
|
|
5047
4954
|
*/
|
|
5048
4955
|
FaceModelVersion?: string;
|
|
5049
4956
|
}
|
|
@@ -5118,7 +5025,7 @@ export interface SearchFacesByImageResponse {
|
|
|
5118
5025
|
*/
|
|
5119
5026
|
FaceMatches?: FaceMatch[];
|
|
5120
5027
|
/**
|
|
5121
|
-
* <p>
|
|
5028
|
+
* <p>Latest face model being used with the collection. For more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/face-detection-model.html">Model versioning</a>.</p>
|
|
5122
5029
|
*/
|
|
5123
5030
|
FaceModelVersion?: string;
|
|
5124
5031
|
}
|
|
@@ -5200,12 +5107,6 @@ export interface VideoTooLargeException extends __SmithyException, $MetadataBear
|
|
|
5200
5107
|
*/
|
|
5201
5108
|
Logref?: string;
|
|
5202
5109
|
}
|
|
5203
|
-
export declare namespace VideoTooLargeException {
|
|
5204
|
-
/**
|
|
5205
|
-
* @internal
|
|
5206
|
-
*/
|
|
5207
|
-
const filterSensitiveLog: (obj: VideoTooLargeException) => any;
|
|
5208
|
-
}
|
|
5209
5110
|
export interface StartContentModerationRequest {
|
|
5210
5111
|
/**
|
|
5211
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) |
|
|
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/
|
|
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) |
|
|
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
|
|