@aws-sdk/client-rekognition 3.39.0 → 3.43.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 +39 -0
- package/dist-cjs/Rekognition.js +105 -0
- package/dist-cjs/commands/CreateDatasetCommand.js +36 -0
- package/dist-cjs/commands/DeleteDatasetCommand.js +36 -0
- package/dist-cjs/commands/DescribeDatasetCommand.js +36 -0
- package/dist-cjs/commands/DistributeDatasetEntriesCommand.js +36 -0
- package/dist-cjs/commands/ListDatasetEntriesCommand.js +36 -0
- package/dist-cjs/commands/ListDatasetLabelsCommand.js +36 -0
- package/dist-cjs/commands/UpdateDatasetEntriesCommand.js +36 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoints.js +157 -24
- package/dist-cjs/models/models_0.js +170 -16
- package/dist-cjs/pagination/ListDatasetEntriesPaginator.js +35 -0
- package/dist-cjs/pagination/ListDatasetLabelsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1077 -54
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/Rekognition.js +105 -0
- package/dist-es/commands/CreateDatasetCommand.js +39 -0
- package/dist-es/commands/DeleteDatasetCommand.js +39 -0
- package/dist-es/commands/DescribeDatasetCommand.js +39 -0
- package/dist-es/commands/DistributeDatasetEntriesCommand.js +39 -0
- package/dist-es/commands/ListDatasetEntriesCommand.js +39 -0
- package/dist-es/commands/ListDatasetLabelsCommand.js +39 -0
- package/dist-es/commands/UpdateDatasetEntriesCommand.js +39 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoints.js +157 -24
- package/dist-es/models/models_0.js +117 -8
- package/dist-es/pagination/ListDatasetEntriesPaginator.js +74 -0
- package/dist-es/pagination/ListDatasetLabelsPaginator.js +74 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +1111 -51
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/Rekognition.d.ts +209 -29
- package/dist-types/RekognitionClient.d.ts +17 -2
- package/dist-types/commands/CompareFacesCommand.d.ts +1 -1
- package/dist-types/commands/CreateCollectionCommand.d.ts +1 -1
- package/dist-types/commands/CreateDatasetCommand.d.ts +59 -0
- package/dist-types/commands/CreateProjectCommand.d.ts +3 -3
- package/dist-types/commands/CreateProjectVersionCommand.d.ts +33 -5
- package/dist-types/commands/CreateStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCollectionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDatasetCommand.d.ts +44 -0
- package/dist-types/commands/DeleteFacesCommand.d.ts +1 -1
- package/dist-types/commands/DeleteProjectCommand.d.ts +5 -1
- package/dist-types/commands/DeleteProjectVersionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/DescribeCollectionCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetCommand.d.ts +39 -0
- package/dist-types/commands/DescribeProjectVersionsCommand.d.ts +3 -3
- package/dist-types/commands/DescribeProjectsCommand.d.ts +2 -2
- package/dist-types/commands/DescribeStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/DetectCustomLabelsCommand.d.ts +1 -1
- package/dist-types/commands/DetectFacesCommand.d.ts +1 -1
- package/dist-types/commands/DetectLabelsCommand.d.ts +1 -1
- package/dist-types/commands/DetectModerationLabelsCommand.d.ts +1 -1
- package/dist-types/commands/DetectProtectiveEquipmentCommand.d.ts +1 -1
- package/dist-types/commands/DetectTextCommand.d.ts +1 -1
- package/dist-types/commands/DistributeDatasetEntriesCommand.d.ts +46 -0
- package/dist-types/commands/GetCelebrityInfoCommand.d.ts +1 -1
- package/dist-types/commands/GetCelebrityRecognitionCommand.d.ts +23 -18
- package/dist-types/commands/GetContentModerationCommand.d.ts +1 -1
- package/dist-types/commands/GetFaceDetectionCommand.d.ts +1 -1
- package/dist-types/commands/GetFaceSearchCommand.d.ts +1 -1
- package/dist-types/commands/GetLabelDetectionCommand.d.ts +1 -1
- package/dist-types/commands/GetPersonTrackingCommand.d.ts +1 -1
- package/dist-types/commands/GetSegmentDetectionCommand.d.ts +1 -1
- package/dist-types/commands/GetTextDetectionCommand.d.ts +1 -1
- package/dist-types/commands/IndexFacesCommand.d.ts +1 -1
- package/dist-types/commands/ListCollectionsCommand.d.ts +1 -1
- package/dist-types/commands/ListDatasetEntriesCommand.d.ts +49 -0
- package/dist-types/commands/ListDatasetLabelsCommand.d.ts +40 -0
- package/dist-types/commands/ListFacesCommand.d.ts +1 -1
- package/dist-types/commands/ListStreamProcessorsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/RecognizeCelebritiesCommand.d.ts +4 -4
- package/dist-types/commands/SearchFacesByImageCommand.d.ts +1 -1
- package/dist-types/commands/SearchFacesCommand.d.ts +1 -1
- package/dist-types/commands/StartCelebrityRecognitionCommand.d.ts +1 -1
- package/dist-types/commands/StartContentModerationCommand.d.ts +1 -1
- package/dist-types/commands/StartFaceDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartFaceSearchCommand.d.ts +1 -1
- package/dist-types/commands/StartLabelDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartPersonTrackingCommand.d.ts +1 -1
- package/dist-types/commands/StartProjectVersionCommand.d.ts +1 -1
- package/dist-types/commands/StartSegmentDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/StartTextDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StopProjectVersionCommand.d.ts +1 -1
- package/dist-types/commands/StopStreamProcessorCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDatasetEntriesCommand.d.ts +62 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +622 -51
- package/dist-types/pagination/ListDatasetEntriesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListDatasetLabelsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +21 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/Rekognition.d.ts +35 -0
- package/dist-types/ts3.4/RekognitionClient.d.ts +13 -2
- package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DistributeDatasetEntriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDatasetEntriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDatasetLabelsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateDatasetEntriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +283 -23
- package/dist-types/ts3.4/pagination/ListDatasetEntriesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDatasetLabelsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +21 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +24 -24
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
|
10
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
13
|
export var getRuntimeConfig = function (config) {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
14
15
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
16
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
16
17
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
16
|
export var getRuntimeConfig = function (config) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
21
|
};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { CompareFacesCommandInput, CompareFacesCommandOutput } from "./commands/CompareFacesCommand";
|
|
3
3
|
import { CreateCollectionCommandInput, CreateCollectionCommandOutput } from "./commands/CreateCollectionCommand";
|
|
4
|
+
import { CreateDatasetCommandInput, CreateDatasetCommandOutput } from "./commands/CreateDatasetCommand";
|
|
4
5
|
import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
|
|
5
6
|
import { CreateProjectVersionCommandInput, CreateProjectVersionCommandOutput } from "./commands/CreateProjectVersionCommand";
|
|
6
7
|
import { CreateStreamProcessorCommandInput, CreateStreamProcessorCommandOutput } from "./commands/CreateStreamProcessorCommand";
|
|
7
8
|
import { DeleteCollectionCommandInput, DeleteCollectionCommandOutput } from "./commands/DeleteCollectionCommand";
|
|
9
|
+
import { DeleteDatasetCommandInput, DeleteDatasetCommandOutput } from "./commands/DeleteDatasetCommand";
|
|
8
10
|
import { DeleteFacesCommandInput, DeleteFacesCommandOutput } from "./commands/DeleteFacesCommand";
|
|
9
11
|
import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./commands/DeleteProjectCommand";
|
|
10
12
|
import { DeleteProjectVersionCommandInput, DeleteProjectVersionCommandOutput } from "./commands/DeleteProjectVersionCommand";
|
|
11
13
|
import { DeleteStreamProcessorCommandInput, DeleteStreamProcessorCommandOutput } from "./commands/DeleteStreamProcessorCommand";
|
|
12
14
|
import { DescribeCollectionCommandInput, DescribeCollectionCommandOutput } from "./commands/DescribeCollectionCommand";
|
|
15
|
+
import { DescribeDatasetCommandInput, DescribeDatasetCommandOutput } from "./commands/DescribeDatasetCommand";
|
|
13
16
|
import { DescribeProjectsCommandInput, DescribeProjectsCommandOutput } from "./commands/DescribeProjectsCommand";
|
|
14
17
|
import { DescribeProjectVersionsCommandInput, DescribeProjectVersionsCommandOutput } from "./commands/DescribeProjectVersionsCommand";
|
|
15
18
|
import { DescribeStreamProcessorCommandInput, DescribeStreamProcessorCommandOutput } from "./commands/DescribeStreamProcessorCommand";
|
|
@@ -19,6 +22,7 @@ import { DetectLabelsCommandInput, DetectLabelsCommandOutput } from "./commands/
|
|
|
19
22
|
import { DetectModerationLabelsCommandInput, DetectModerationLabelsCommandOutput } from "./commands/DetectModerationLabelsCommand";
|
|
20
23
|
import { DetectProtectiveEquipmentCommandInput, DetectProtectiveEquipmentCommandOutput } from "./commands/DetectProtectiveEquipmentCommand";
|
|
21
24
|
import { DetectTextCommandInput, DetectTextCommandOutput } from "./commands/DetectTextCommand";
|
|
25
|
+
import { DistributeDatasetEntriesCommandInput, DistributeDatasetEntriesCommandOutput } from "./commands/DistributeDatasetEntriesCommand";
|
|
22
26
|
import { GetCelebrityInfoCommandInput, GetCelebrityInfoCommandOutput } from "./commands/GetCelebrityInfoCommand";
|
|
23
27
|
import { GetCelebrityRecognitionCommandInput, GetCelebrityRecognitionCommandOutput } from "./commands/GetCelebrityRecognitionCommand";
|
|
24
28
|
import { GetContentModerationCommandInput, GetContentModerationCommandOutput } from "./commands/GetContentModerationCommand";
|
|
@@ -30,6 +34,8 @@ import { GetSegmentDetectionCommandInput, GetSegmentDetectionCommandOutput } fro
|
|
|
30
34
|
import { GetTextDetectionCommandInput, GetTextDetectionCommandOutput } from "./commands/GetTextDetectionCommand";
|
|
31
35
|
import { IndexFacesCommandInput, IndexFacesCommandOutput } from "./commands/IndexFacesCommand";
|
|
32
36
|
import { ListCollectionsCommandInput, ListCollectionsCommandOutput } from "./commands/ListCollectionsCommand";
|
|
37
|
+
import { ListDatasetEntriesCommandInput, ListDatasetEntriesCommandOutput } from "./commands/ListDatasetEntriesCommand";
|
|
38
|
+
import { ListDatasetLabelsCommandInput, ListDatasetLabelsCommandOutput } from "./commands/ListDatasetLabelsCommand";
|
|
33
39
|
import { ListFacesCommandInput, ListFacesCommandOutput } from "./commands/ListFacesCommand";
|
|
34
40
|
import { ListStreamProcessorsCommandInput, ListStreamProcessorsCommandOutput } from "./commands/ListStreamProcessorsCommand";
|
|
35
41
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
@@ -50,6 +56,7 @@ import { StopProjectVersionCommandInput, StopProjectVersionCommandOutput } from
|
|
|
50
56
|
import { StopStreamProcessorCommandInput, StopStreamProcessorCommandOutput } from "./commands/StopStreamProcessorCommand";
|
|
51
57
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
52
58
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
59
|
+
import { UpdateDatasetEntriesCommandInput, UpdateDatasetEntriesCommandOutput } from "./commands/UpdateDatasetEntriesCommand";
|
|
53
60
|
import { RekognitionClient } from "./RekognitionClient";
|
|
54
61
|
/**
|
|
55
62
|
* <p>This is the Amazon Rekognition API reference.</p>
|
|
@@ -142,8 +149,38 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
142
149
|
createCollection(args: CreateCollectionCommandInput, cb: (err: any, data?: CreateCollectionCommandOutput) => void): void;
|
|
143
150
|
createCollection(args: CreateCollectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCollectionCommandOutput) => void): void;
|
|
144
151
|
/**
|
|
145
|
-
* <p>Creates a new Amazon Rekognition Custom Labels
|
|
146
|
-
*
|
|
152
|
+
* <p>Creates a new Amazon Rekognition Custom Labels dataset. You can create a dataset by using
|
|
153
|
+
* an Amazon Sagemaker format manifest file or by copying an existing Amazon Rekognition Custom Labels dataset.</p>
|
|
154
|
+
*
|
|
155
|
+
* <p>To create a training dataset for a project, specify <code>train</code> for the value of
|
|
156
|
+
* <code>DatasetType</code>. To create the test dataset for a project,
|
|
157
|
+
* specify <code>test</code> for the value of <code>DatasetType</code>.
|
|
158
|
+
* </p>
|
|
159
|
+
*
|
|
160
|
+
*
|
|
161
|
+
* <p>The response from <code>CreateDataset</code> is the Amazon Resource Name (ARN) for the dataset.
|
|
162
|
+
* Creating a dataset takes a while to complete. Use <a>DescribeDataset</a> to check the
|
|
163
|
+
* current status. The dataset created successfully if the value of <code>Status</code> is
|
|
164
|
+
* <code>CREATE_COMPLETE</code>. </p>
|
|
165
|
+
* <p>To check if any non-terminal errors occurred, call <a>ListDatasetEntries</a>
|
|
166
|
+
* and check for the presence of <code>errors</code> lists in the JSON Lines.</p>
|
|
167
|
+
* <p>Dataset creation fails if a terminal error occurs (<code>Status</code> = <code>CREATE_FAILED</code>).
|
|
168
|
+
* Currently, you can't access the terminal error information.
|
|
169
|
+
*
|
|
170
|
+
* </p>
|
|
171
|
+
*
|
|
172
|
+
*
|
|
173
|
+
* <p>For more information, see Creating dataset in the <i>Amazon Rekognition Custom Labels Developer Guide</i>.</p>
|
|
174
|
+
*
|
|
175
|
+
* <p>This operation requires permissions to perform the <code>rekognition:CreateDataset</code> action.
|
|
176
|
+
* If you want to copy an existing dataset, you also require permission to perform the <code>rekognition:ListDatasetEntries</code> action.</p>
|
|
177
|
+
*/
|
|
178
|
+
createDataset(args: CreateDatasetCommandInput, options?: __HttpHandlerOptions): Promise<CreateDatasetCommandOutput>;
|
|
179
|
+
createDataset(args: CreateDatasetCommandInput, cb: (err: any, data?: CreateDatasetCommandOutput) => void): void;
|
|
180
|
+
createDataset(args: CreateDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDatasetCommandOutput) => void): void;
|
|
181
|
+
/**
|
|
182
|
+
* <p>Creates a new Amazon Rekognition Custom Labels project. A project is a group of resources (datasets, model versions)
|
|
183
|
+
* that you use to create and manage Amazon Rekognition Custom Labels models. </p>
|
|
147
184
|
* <p>This operation requires permissions to perform the <code>rekognition:CreateProject</code> action.</p>
|
|
148
185
|
*/
|
|
149
186
|
createProject(args: CreateProjectCommandInput, options?: __HttpHandlerOptions): Promise<CreateProjectCommandOutput>;
|
|
@@ -151,14 +188,42 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
151
188
|
createProject(args: CreateProjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProjectCommandOutput) => void): void;
|
|
152
189
|
/**
|
|
153
190
|
* <p>Creates a new version of a model and begins training.
|
|
154
|
-
* Models are managed as part of an Amazon Rekognition Custom Labels project.
|
|
155
|
-
*
|
|
191
|
+
* Models are managed as part of an Amazon Rekognition Custom Labels project.
|
|
192
|
+
* The response from <code>CreateProjectVersion</code>
|
|
156
193
|
* is an Amazon Resource Name (ARN) for the version of the model. </p>
|
|
194
|
+
*
|
|
195
|
+
*
|
|
196
|
+
* <p>Training uses the training and test datasets associated with the project.
|
|
197
|
+
* For more information, see Creating training and test dataset in the <i>Amazon Rekognition Custom Labels Developer Guide</i>.
|
|
198
|
+
* </p>
|
|
199
|
+
*
|
|
200
|
+
*
|
|
201
|
+
* <note>
|
|
202
|
+
* <p>You can train a modelin a project that doesn't have associated datasets by specifying manifest files in the
|
|
203
|
+
* <code>TrainingData</code> and <code>TestingData</code> fields.
|
|
204
|
+
* </p>
|
|
205
|
+
* <p>If you open the console after training a model with manifest files, Amazon Rekognition Custom Labels creates
|
|
206
|
+
* the datasets for you using the most recent manifest files. You can no longer train
|
|
207
|
+
* a model version for the project by specifying manifest files. </p>
|
|
208
|
+
* <p>Instead of training with a project without associated datasets,
|
|
209
|
+
* we recommend that you use the manifest
|
|
210
|
+
* files to create training and test datasets for the project.</p>
|
|
211
|
+
* </note>
|
|
212
|
+
*
|
|
213
|
+
*
|
|
157
214
|
* <p>Training takes a while to complete. You can get the current status by calling
|
|
158
|
-
* <a>DescribeProjectVersions</a
|
|
215
|
+
* <a>DescribeProjectVersions</a>. Training completed successfully if
|
|
216
|
+
* the value of the <code>Status</code> field is <code>TRAINING_COMPLETED</code>.</p>
|
|
217
|
+
*
|
|
218
|
+
* <p>If training
|
|
219
|
+
* fails, see Debugging a failed model training in the <i>Amazon Rekognition Custom Labels</i> developer guide. </p>
|
|
220
|
+
*
|
|
221
|
+
*
|
|
159
222
|
* <p>Once training has successfully completed, call <a>DescribeProjectVersions</a> to
|
|
160
|
-
* get the training results and evaluate the model.
|
|
223
|
+
* get the training results and evaluate the model. For more information, see Improving a trained Amazon Rekognition Custom Labels model
|
|
224
|
+
* in the <i>Amazon Rekognition Custom Labels</i> developers guide.
|
|
161
225
|
* </p>
|
|
226
|
+
*
|
|
162
227
|
* <p>After evaluating the model, you start the model
|
|
163
228
|
* by calling <a>StartProjectVersion</a>.</p>
|
|
164
229
|
* <p>This operation requires permissions to perform the <code>rekognition:CreateProjectVersion</code> action.</p>
|
|
@@ -192,6 +257,21 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
192
257
|
deleteCollection(args: DeleteCollectionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCollectionCommandOutput>;
|
|
193
258
|
deleteCollection(args: DeleteCollectionCommandInput, cb: (err: any, data?: DeleteCollectionCommandOutput) => void): void;
|
|
194
259
|
deleteCollection(args: DeleteCollectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCollectionCommandOutput) => void): void;
|
|
260
|
+
/**
|
|
261
|
+
* <p>Deletes an existing Amazon Rekognition Custom Labels dataset.
|
|
262
|
+
* Deleting a dataset might take while. Use <a>DescribeDataset</a> to check the
|
|
263
|
+
* current status. The dataset is still deleting if the value of <code>Status</code> is
|
|
264
|
+
* <code>DELETE_IN_PROGRESS</code>. If you try to access the dataset after it is deleted, you get
|
|
265
|
+
* a <code>ResourceNotFoundException</code> exception.
|
|
266
|
+
*
|
|
267
|
+
* </p>
|
|
268
|
+
* <p>You can't delete a dataset while it is creating (<code>Status</code> = <code>CREATE_IN_PROGRESS</code>)
|
|
269
|
+
* or if the dataset is updating (<code>Status</code> = <code>UPDATE_IN_PROGRESS</code>).</p>
|
|
270
|
+
* <p>This operation requires permissions to perform the <code>rekognition:DeleteDataset</code> action.</p>
|
|
271
|
+
*/
|
|
272
|
+
deleteDataset(args: DeleteDatasetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDatasetCommandOutput>;
|
|
273
|
+
deleteDataset(args: DeleteDatasetCommandInput, cb: (err: any, data?: DeleteDatasetCommandOutput) => void): void;
|
|
274
|
+
deleteDataset(args: DeleteDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDatasetCommandOutput) => void): void;
|
|
195
275
|
/**
|
|
196
276
|
* <p>Deletes faces from a collection. You specify a collection ID and an array of face IDs
|
|
197
277
|
* to remove from the collection.</p>
|
|
@@ -204,6 +284,10 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
204
284
|
/**
|
|
205
285
|
* <p>Deletes an Amazon Rekognition Custom Labels project. To delete a project you must first delete all models associated
|
|
206
286
|
* with the project. To delete a model, see <a>DeleteProjectVersion</a>.</p>
|
|
287
|
+
* <p>
|
|
288
|
+
* <code>DeleteProject</code> is an asynchronous operation. To check if the project is deleted,
|
|
289
|
+
* call <a>DescribeProjects</a>. The project is deleted when the project no longer appears in the
|
|
290
|
+
* response.</p>
|
|
207
291
|
* <p>This operation requires permissions to perform the
|
|
208
292
|
* <code>rekognition:DeleteProject</code> action. </p>
|
|
209
293
|
*/
|
|
@@ -242,16 +326,26 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
242
326
|
describeCollection(args: DescribeCollectionCommandInput, cb: (err: any, data?: DescribeCollectionCommandOutput) => void): void;
|
|
243
327
|
describeCollection(args: DescribeCollectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCollectionCommandOutput) => void): void;
|
|
244
328
|
/**
|
|
245
|
-
* <p>
|
|
329
|
+
* <p>
|
|
330
|
+
* Describes an Amazon Rekognition Custom Labels dataset. You can get information such as the current status of a dataset and
|
|
331
|
+
* statistics about the images and labels in a dataset.
|
|
332
|
+
* </p>
|
|
333
|
+
* <p>This operation requires permissions to perform the <code>rekognition:DescribeDataset</code> action.</p>
|
|
334
|
+
*/
|
|
335
|
+
describeDataset(args: DescribeDatasetCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDatasetCommandOutput>;
|
|
336
|
+
describeDataset(args: DescribeDatasetCommandInput, cb: (err: any, data?: DescribeDatasetCommandOutput) => void): void;
|
|
337
|
+
describeDataset(args: DescribeDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDatasetCommandOutput) => void): void;
|
|
338
|
+
/**
|
|
339
|
+
* <p>Gets information about your Amazon Rekognition Custom Labels projects. </p>
|
|
246
340
|
* <p>This operation requires permissions to perform the <code>rekognition:DescribeProjects</code> action.</p>
|
|
247
341
|
*/
|
|
248
342
|
describeProjects(args: DescribeProjectsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeProjectsCommandOutput>;
|
|
249
343
|
describeProjects(args: DescribeProjectsCommandInput, cb: (err: any, data?: DescribeProjectsCommandOutput) => void): void;
|
|
250
344
|
describeProjects(args: DescribeProjectsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeProjectsCommandOutput) => void): void;
|
|
251
345
|
/**
|
|
252
|
-
* <p>Lists and describes the
|
|
346
|
+
* <p>Lists and describes the versions of a model in an Amazon Rekognition Custom Labels project. You
|
|
253
347
|
* can specify up to 10 model versions in <code>ProjectVersionArns</code>. If
|
|
254
|
-
* you don't specify a value, descriptions for all
|
|
348
|
+
* you don't specify a value, descriptions for all model versions in the project are returned.</p>
|
|
255
349
|
* <p>This operation requires permissions to perform the <code>rekognition:DescribeProjectVersions</code>
|
|
256
350
|
* action.</p>
|
|
257
351
|
*/
|
|
@@ -518,6 +612,23 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
518
612
|
detectText(args: DetectTextCommandInput, options?: __HttpHandlerOptions): Promise<DetectTextCommandOutput>;
|
|
519
613
|
detectText(args: DetectTextCommandInput, cb: (err: any, data?: DetectTextCommandOutput) => void): void;
|
|
520
614
|
detectText(args: DetectTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectTextCommandOutput) => void): void;
|
|
615
|
+
/**
|
|
616
|
+
* <p>Distributes the entries (images) in a training dataset across the training dataset and the test dataset for a project.
|
|
617
|
+
* <code>DistributeDatasetEntries</code> moves 20% of the training dataset images to the test dataset.
|
|
618
|
+
* An entry is a JSON Line that describes an image.
|
|
619
|
+
* </p>
|
|
620
|
+
* <p>You supply the Amazon Resource Names (ARN) of a project's training dataset and test dataset.
|
|
621
|
+
* The training dataset must contain the images that you want to split. The test dataset
|
|
622
|
+
* must be empty. The datasets must belong to the same project. To create training and test datasets for a project, call <a>CreateDataset</a>.</p>
|
|
623
|
+
* <p>Distributing a dataset takes a while to complete. To check the status call <code>DescribeDataset</code>. The operation
|
|
624
|
+
* is complete when the <code>Status</code> field for the training dataset and the test dataset is <code>UPDATE_COMPLETE</code>.
|
|
625
|
+
* If the dataset split fails, the value of <code>Status</code> is <code>UPDATE_FAILED</code>.</p>
|
|
626
|
+
*
|
|
627
|
+
* <p>This operation requires permissions to perform the <code>rekognition:DistributeDatasetEntries</code> action.</p>
|
|
628
|
+
*/
|
|
629
|
+
distributeDatasetEntries(args: DistributeDatasetEntriesCommandInput, options?: __HttpHandlerOptions): Promise<DistributeDatasetEntriesCommandOutput>;
|
|
630
|
+
distributeDatasetEntries(args: DistributeDatasetEntriesCommandInput, cb: (err: any, data?: DistributeDatasetEntriesCommandOutput) => void): void;
|
|
631
|
+
distributeDatasetEntries(args: DistributeDatasetEntriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DistributeDatasetEntriesCommandOutput) => void): void;
|
|
521
632
|
/**
|
|
522
633
|
* <p>Gets the name and additional information about a celebrity based on their Amazon Rekognition ID.
|
|
523
634
|
* The additional information is returned as an array of URLs. If there is no additional
|
|
@@ -534,28 +645,33 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
534
645
|
/**
|
|
535
646
|
* <p>Gets the celebrity recognition results for a Amazon Rekognition Video analysis started by
|
|
536
647
|
* <a>StartCelebrityRecognition</a>.</p>
|
|
537
|
-
* <p>Celebrity recognition in a video is an asynchronous operation. Analysis is started by a
|
|
538
|
-
* to <a>StartCelebrityRecognition</a>
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
*
|
|
648
|
+
* <p>Celebrity recognition in a video is an asynchronous operation. Analysis is started by a
|
|
649
|
+
* call to <a>StartCelebrityRecognition</a> which returns a job identifier
|
|
650
|
+
* (<code>JobId</code>). </p>
|
|
651
|
+
* <p>When the celebrity recognition operation finishes, Amazon Rekognition Video publishes a completion
|
|
652
|
+
* status to the Amazon Simple Notification Service topic registered in the initial call to
|
|
653
|
+
* <code>StartCelebrityRecognition</code>. To get the results of the celebrity recognition
|
|
654
|
+
* analysis, first check that the status value published to the Amazon SNS topic is
|
|
655
|
+
* <code>SUCCEEDED</code>. If so, call <code>GetCelebrityDetection</code> and pass the job
|
|
656
|
+
* identifier (<code>JobId</code>) from the initial call to <code>StartCelebrityDetection</code>. </p>
|
|
544
657
|
*
|
|
545
658
|
* <p>For more information, see Working With Stored Videos in the Amazon Rekognition Developer Guide.</p>
|
|
546
659
|
* <p>
|
|
547
|
-
* <code>GetCelebrityRecognition</code> returns detected celebrities and the time(s) they
|
|
548
|
-
* (<code>Celebrities</code>) of <a>CelebrityRecognition</a>
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
* </
|
|
660
|
+
* <code>GetCelebrityRecognition</code> returns detected celebrities and the time(s) they
|
|
661
|
+
* are detected in an array (<code>Celebrities</code>) of <a>CelebrityRecognition</a>
|
|
662
|
+
* objects. Each <code>CelebrityRecognition</code>
|
|
663
|
+
* contains information about the celebrity in a <a>CelebrityDetail</a> object and the
|
|
664
|
+
* time, <code>Timestamp</code>, the celebrity was detected. This <a>CelebrityDetail</a> object stores information about the detected celebrity's face
|
|
665
|
+
* attributes, a face bounding box, known gender, the celebrity's name, and a confidence
|
|
666
|
+
* estimate.</p>
|
|
552
667
|
* <note>
|
|
553
668
|
* <p>
|
|
554
|
-
* <code>GetCelebrityRecognition</code> only returns the default
|
|
555
|
-
*
|
|
556
|
-
*
|
|
557
|
-
*
|
|
558
|
-
*
|
|
669
|
+
* <code>GetCelebrityRecognition</code> only returns the default facial
|
|
670
|
+
* attributes (<code>BoundingBox</code>, <code>Confidence</code>, <code>Landmarks</code>,
|
|
671
|
+
* <code>Pose</code>, and <code>Quality</code>). The <code>BoundingBox</code> field only
|
|
672
|
+
* applies to the detected face instance. The other facial attributes listed in the
|
|
673
|
+
* <code>Face</code> object of the following response syntax are not returned. For more
|
|
674
|
+
* information, see FaceDetail in the Amazon Rekognition Developer Guide. </p>
|
|
559
675
|
* </note>
|
|
560
676
|
* <p>By default, the <code>Celebrities</code> array is sorted by time (milliseconds from the start of the video).
|
|
561
677
|
* You can also sort the array by celebrity by specifying the value <code>ID</code> in the <code>SortBy</code> input parameter.</p>
|
|
@@ -889,6 +1005,37 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
889
1005
|
listCollections(args: ListCollectionsCommandInput, options?: __HttpHandlerOptions): Promise<ListCollectionsCommandOutput>;
|
|
890
1006
|
listCollections(args: ListCollectionsCommandInput, cb: (err: any, data?: ListCollectionsCommandOutput) => void): void;
|
|
891
1007
|
listCollections(args: ListCollectionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCollectionsCommandOutput) => void): void;
|
|
1008
|
+
/**
|
|
1009
|
+
* <p>
|
|
1010
|
+
* Lists the entries (images) within a dataset. An entry is a
|
|
1011
|
+
* JSON Line that contains the information for a single image, including
|
|
1012
|
+
* the image location, assigned labels, and object location bounding boxes. For
|
|
1013
|
+
* more information, see <a href="https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/md-manifest-files.html">Creating a manifest file</a>.</p>
|
|
1014
|
+
* <p>JSON Lines in the response include information about non-terminal
|
|
1015
|
+
* errors found in the dataset.
|
|
1016
|
+
* Non terminal errors are reported in <code>errors</code> lists within each JSON Line. The
|
|
1017
|
+
* same information is reported in the training and testing validation result manifests that
|
|
1018
|
+
* Amazon Rekognition Custom Labels creates during model training.
|
|
1019
|
+
* </p>
|
|
1020
|
+
*
|
|
1021
|
+
* <p>You can filter the response in variety of ways, such as choosing which labels to return and returning JSON Lines created after a specific date.
|
|
1022
|
+
* </p>
|
|
1023
|
+
* <p>This operation requires permissions to perform the <code>rekognition:ListDatasetEntries</code> action.</p>
|
|
1024
|
+
*/
|
|
1025
|
+
listDatasetEntries(args: ListDatasetEntriesCommandInput, options?: __HttpHandlerOptions): Promise<ListDatasetEntriesCommandOutput>;
|
|
1026
|
+
listDatasetEntries(args: ListDatasetEntriesCommandInput, cb: (err: any, data?: ListDatasetEntriesCommandOutput) => void): void;
|
|
1027
|
+
listDatasetEntries(args: ListDatasetEntriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatasetEntriesCommandOutput) => void): void;
|
|
1028
|
+
/**
|
|
1029
|
+
* <p>Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see
|
|
1030
|
+
* <a href="https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/md-labeling-images.html">Labeling images</a>.
|
|
1031
|
+
* </p>
|
|
1032
|
+
* <p>
|
|
1033
|
+
* Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images
|
|
1034
|
+
* in the <i>Amazon Rekognition Custom Labels Developer Guide</i>. </p>
|
|
1035
|
+
*/
|
|
1036
|
+
listDatasetLabels(args: ListDatasetLabelsCommandInput, options?: __HttpHandlerOptions): Promise<ListDatasetLabelsCommandOutput>;
|
|
1037
|
+
listDatasetLabels(args: ListDatasetLabelsCommandInput, cb: (err: any, data?: ListDatasetLabelsCommandOutput) => void): void;
|
|
1038
|
+
listDatasetLabels(args: ListDatasetLabelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatasetLabelsCommandOutput) => void): void;
|
|
892
1039
|
/**
|
|
893
1040
|
* <p>Returns metadata for faces in the specified collection.
|
|
894
1041
|
* This metadata includes information such as the bounding box coordinates, the confidence
|
|
@@ -922,9 +1069,9 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
922
1069
|
* <p>Returns an array of celebrities recognized in the input image. For more information, see Recognizing Celebrities
|
|
923
1070
|
* in the Amazon Rekognition Developer Guide. </p>
|
|
924
1071
|
* <p>
|
|
925
|
-
* <code>RecognizeCelebrities</code> returns the 64 largest faces in the image. It lists
|
|
926
|
-
* recognized celebrities in the <code>CelebrityFaces</code> array and unrecognized faces in
|
|
927
|
-
*
|
|
1072
|
+
* <code>RecognizeCelebrities</code> returns the 64 largest faces in the image. It lists the
|
|
1073
|
+
* recognized celebrities in the <code>CelebrityFaces</code> array and any unrecognized faces in
|
|
1074
|
+
* the <code>UnrecognizedFaces</code> array. <code>RecognizeCelebrities</code> doesn't return
|
|
928
1075
|
* celebrities whose faces aren't among the largest 64 faces in the image.</p>
|
|
929
1076
|
*
|
|
930
1077
|
* <p>For each celebrity recognized, <code>RecognizeCelebrities</code> returns a
|
|
@@ -1223,4 +1370,37 @@ export declare class Rekognition extends RekognitionClient {
|
|
|
1223
1370
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
1224
1371
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
1225
1372
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
1373
|
+
/**
|
|
1374
|
+
* <p>Adds or updates one or more entries (images) in a dataset. An entry is a JSON Line which contains the
|
|
1375
|
+
* information for a single image, including
|
|
1376
|
+
* the image location, assigned labels, and object location bounding boxes. For more information,
|
|
1377
|
+
* see Image-Level labels in manifest files and Object localization in manifest files in the <i>Amazon Rekognition Custom Labels Developer Guide</i>.
|
|
1378
|
+
* </p>
|
|
1379
|
+
*
|
|
1380
|
+
*
|
|
1381
|
+
*
|
|
1382
|
+
* <p>If the <code>source-ref</code> field in the JSON line references an existing image, the existing image in the dataset
|
|
1383
|
+
* is updated.
|
|
1384
|
+
* If <code>source-ref</code> field doesn't reference an existing image, the image is added as a new image to the dataset. </p>
|
|
1385
|
+
*
|
|
1386
|
+
* <p>You specify the changes that you want to make in the <code>Changes</code> input parameter.
|
|
1387
|
+
* There isn't a limit to the number JSON Lines that you can change, but the size of <code>Changes</code> must be less
|
|
1388
|
+
* than 5MB.</p>
|
|
1389
|
+
*
|
|
1390
|
+
*
|
|
1391
|
+
* <p>
|
|
1392
|
+
* <code>UpdateDatasetEntries</code> returns immediatly, but the dataset update might take a while to complete.
|
|
1393
|
+
* Use <a>DescribeDataset</a> to check the
|
|
1394
|
+
* current status. The dataset updated successfully if the value of <code>Status</code> is
|
|
1395
|
+
* <code>UPDATE_COMPLETE</code>. </p>
|
|
1396
|
+
* <p>To check if any non-terminal errors occured, call <a>ListDatasetEntries</a>
|
|
1397
|
+
* and check for the presence of <code>errors</code> lists in the JSON Lines.</p>
|
|
1398
|
+
* <p>Dataset update fails if a terminal error occurs (<code>Status</code> = <code>UPDATE_FAILED</code>).
|
|
1399
|
+
* Currently, you can't access the terminal error information from the Amazon Rekognition Custom Labels SDK.
|
|
1400
|
+
* </p>
|
|
1401
|
+
* <p>This operation requires permissions to perform the <code>rekognition:UpdateDatasetEntries</code> action.</p>
|
|
1402
|
+
*/
|
|
1403
|
+
updateDatasetEntries(args: UpdateDatasetEntriesCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDatasetEntriesCommandOutput>;
|
|
1404
|
+
updateDatasetEntries(args: UpdateDatasetEntriesCommandInput, cb: (err: any, data?: UpdateDatasetEntriesCommandOutput) => void): void;
|
|
1405
|
+
updateDatasetEntries(args: UpdateDatasetEntriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDatasetEntriesCommandOutput) => void): void;
|
|
1226
1406
|
}
|
|
@@ -8,15 +8,18 @@ import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, Smith
|
|
|
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";
|
|
11
|
+
import { CreateDatasetCommandInput, CreateDatasetCommandOutput } from "./commands/CreateDatasetCommand";
|
|
11
12
|
import { CreateProjectCommandInput, CreateProjectCommandOutput } from "./commands/CreateProjectCommand";
|
|
12
13
|
import { CreateProjectVersionCommandInput, CreateProjectVersionCommandOutput } from "./commands/CreateProjectVersionCommand";
|
|
13
14
|
import { CreateStreamProcessorCommandInput, CreateStreamProcessorCommandOutput } from "./commands/CreateStreamProcessorCommand";
|
|
14
15
|
import { DeleteCollectionCommandInput, DeleteCollectionCommandOutput } from "./commands/DeleteCollectionCommand";
|
|
16
|
+
import { DeleteDatasetCommandInput, DeleteDatasetCommandOutput } from "./commands/DeleteDatasetCommand";
|
|
15
17
|
import { DeleteFacesCommandInput, DeleteFacesCommandOutput } from "./commands/DeleteFacesCommand";
|
|
16
18
|
import { DeleteProjectCommandInput, DeleteProjectCommandOutput } from "./commands/DeleteProjectCommand";
|
|
17
19
|
import { DeleteProjectVersionCommandInput, DeleteProjectVersionCommandOutput } from "./commands/DeleteProjectVersionCommand";
|
|
18
20
|
import { DeleteStreamProcessorCommandInput, DeleteStreamProcessorCommandOutput } from "./commands/DeleteStreamProcessorCommand";
|
|
19
21
|
import { DescribeCollectionCommandInput, DescribeCollectionCommandOutput } from "./commands/DescribeCollectionCommand";
|
|
22
|
+
import { DescribeDatasetCommandInput, DescribeDatasetCommandOutput } from "./commands/DescribeDatasetCommand";
|
|
20
23
|
import { DescribeProjectsCommandInput, DescribeProjectsCommandOutput } from "./commands/DescribeProjectsCommand";
|
|
21
24
|
import { DescribeProjectVersionsCommandInput, DescribeProjectVersionsCommandOutput } from "./commands/DescribeProjectVersionsCommand";
|
|
22
25
|
import { DescribeStreamProcessorCommandInput, DescribeStreamProcessorCommandOutput } from "./commands/DescribeStreamProcessorCommand";
|
|
@@ -26,6 +29,7 @@ import { DetectLabelsCommandInput, DetectLabelsCommandOutput } from "./commands/
|
|
|
26
29
|
import { DetectModerationLabelsCommandInput, DetectModerationLabelsCommandOutput } from "./commands/DetectModerationLabelsCommand";
|
|
27
30
|
import { DetectProtectiveEquipmentCommandInput, DetectProtectiveEquipmentCommandOutput } from "./commands/DetectProtectiveEquipmentCommand";
|
|
28
31
|
import { DetectTextCommandInput, DetectTextCommandOutput } from "./commands/DetectTextCommand";
|
|
32
|
+
import { DistributeDatasetEntriesCommandInput, DistributeDatasetEntriesCommandOutput } from "./commands/DistributeDatasetEntriesCommand";
|
|
29
33
|
import { GetCelebrityInfoCommandInput, GetCelebrityInfoCommandOutput } from "./commands/GetCelebrityInfoCommand";
|
|
30
34
|
import { GetCelebrityRecognitionCommandInput, GetCelebrityRecognitionCommandOutput } from "./commands/GetCelebrityRecognitionCommand";
|
|
31
35
|
import { GetContentModerationCommandInput, GetContentModerationCommandOutput } from "./commands/GetContentModerationCommand";
|
|
@@ -37,6 +41,8 @@ import { GetSegmentDetectionCommandInput, GetSegmentDetectionCommandOutput } fro
|
|
|
37
41
|
import { GetTextDetectionCommandInput, GetTextDetectionCommandOutput } from "./commands/GetTextDetectionCommand";
|
|
38
42
|
import { IndexFacesCommandInput, IndexFacesCommandOutput } from "./commands/IndexFacesCommand";
|
|
39
43
|
import { ListCollectionsCommandInput, ListCollectionsCommandOutput } from "./commands/ListCollectionsCommand";
|
|
44
|
+
import { ListDatasetEntriesCommandInput, ListDatasetEntriesCommandOutput } from "./commands/ListDatasetEntriesCommand";
|
|
45
|
+
import { ListDatasetLabelsCommandInput, ListDatasetLabelsCommandOutput } from "./commands/ListDatasetLabelsCommand";
|
|
40
46
|
import { ListFacesCommandInput, ListFacesCommandOutput } from "./commands/ListFacesCommand";
|
|
41
47
|
import { ListStreamProcessorsCommandInput, ListStreamProcessorsCommandOutput } from "./commands/ListStreamProcessorsCommand";
|
|
42
48
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
@@ -57,8 +63,9 @@ import { StopProjectVersionCommandInput, StopProjectVersionCommandOutput } from
|
|
|
57
63
|
import { StopStreamProcessorCommandInput, StopStreamProcessorCommandOutput } from "./commands/StopStreamProcessorCommand";
|
|
58
64
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
59
65
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
60
|
-
|
|
61
|
-
export declare type
|
|
66
|
+
import { UpdateDatasetEntriesCommandInput, UpdateDatasetEntriesCommandOutput } from "./commands/UpdateDatasetEntriesCommand";
|
|
67
|
+
export declare type ServiceInputTypes = CompareFacesCommandInput | CreateCollectionCommandInput | CreateDatasetCommandInput | CreateProjectCommandInput | CreateProjectVersionCommandInput | CreateStreamProcessorCommandInput | DeleteCollectionCommandInput | DeleteDatasetCommandInput | DeleteFacesCommandInput | DeleteProjectCommandInput | DeleteProjectVersionCommandInput | DeleteStreamProcessorCommandInput | DescribeCollectionCommandInput | DescribeDatasetCommandInput | DescribeProjectVersionsCommandInput | DescribeProjectsCommandInput | DescribeStreamProcessorCommandInput | DetectCustomLabelsCommandInput | DetectFacesCommandInput | DetectLabelsCommandInput | DetectModerationLabelsCommandInput | DetectProtectiveEquipmentCommandInput | DetectTextCommandInput | DistributeDatasetEntriesCommandInput | GetCelebrityInfoCommandInput | GetCelebrityRecognitionCommandInput | GetContentModerationCommandInput | GetFaceDetectionCommandInput | GetFaceSearchCommandInput | GetLabelDetectionCommandInput | GetPersonTrackingCommandInput | GetSegmentDetectionCommandInput | GetTextDetectionCommandInput | IndexFacesCommandInput | ListCollectionsCommandInput | ListDatasetEntriesCommandInput | ListDatasetLabelsCommandInput | ListFacesCommandInput | ListStreamProcessorsCommandInput | ListTagsForResourceCommandInput | RecognizeCelebritiesCommandInput | SearchFacesByImageCommandInput | SearchFacesCommandInput | StartCelebrityRecognitionCommandInput | StartContentModerationCommandInput | StartFaceDetectionCommandInput | StartFaceSearchCommandInput | StartLabelDetectionCommandInput | StartPersonTrackingCommandInput | StartProjectVersionCommandInput | StartSegmentDetectionCommandInput | StartStreamProcessorCommandInput | StartTextDetectionCommandInput | StopProjectVersionCommandInput | StopStreamProcessorCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDatasetEntriesCommandInput;
|
|
68
|
+
export declare type ServiceOutputTypes = CompareFacesCommandOutput | CreateCollectionCommandOutput | CreateDatasetCommandOutput | CreateProjectCommandOutput | CreateProjectVersionCommandOutput | CreateStreamProcessorCommandOutput | DeleteCollectionCommandOutput | DeleteDatasetCommandOutput | DeleteFacesCommandOutput | DeleteProjectCommandOutput | DeleteProjectVersionCommandOutput | DeleteStreamProcessorCommandOutput | DescribeCollectionCommandOutput | DescribeDatasetCommandOutput | DescribeProjectVersionsCommandOutput | DescribeProjectsCommandOutput | DescribeStreamProcessorCommandOutput | DetectCustomLabelsCommandOutput | DetectFacesCommandOutput | DetectLabelsCommandOutput | DetectModerationLabelsCommandOutput | DetectProtectiveEquipmentCommandOutput | DetectTextCommandOutput | DistributeDatasetEntriesCommandOutput | GetCelebrityInfoCommandOutput | GetCelebrityRecognitionCommandOutput | GetContentModerationCommandOutput | GetFaceDetectionCommandOutput | GetFaceSearchCommandOutput | GetLabelDetectionCommandOutput | GetPersonTrackingCommandOutput | GetSegmentDetectionCommandOutput | GetTextDetectionCommandOutput | IndexFacesCommandOutput | ListCollectionsCommandOutput | ListDatasetEntriesCommandOutput | ListDatasetLabelsCommandOutput | ListFacesCommandOutput | ListStreamProcessorsCommandOutput | ListTagsForResourceCommandOutput | RecognizeCelebritiesCommandOutput | SearchFacesByImageCommandOutput | SearchFacesCommandOutput | StartCelebrityRecognitionCommandOutput | StartContentModerationCommandOutput | StartFaceDetectionCommandOutput | StartFaceSearchCommandOutput | StartLabelDetectionCommandOutput | StartPersonTrackingCommandOutput | StartProjectVersionCommandOutput | StartSegmentDetectionCommandOutput | StartStreamProcessorCommandOutput | StartTextDetectionCommandOutput | StopProjectVersionCommandOutput | StopStreamProcessorCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDatasetEntriesCommandOutput;
|
|
62
69
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
63
70
|
/**
|
|
64
71
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -127,6 +134,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
127
134
|
* Optional logger for logging debug/info/warn/error.
|
|
128
135
|
*/
|
|
129
136
|
logger?: __Logger;
|
|
137
|
+
/**
|
|
138
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
139
|
+
*/
|
|
140
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
141
|
+
/**
|
|
142
|
+
* Enables FIPS compatible endpoints.
|
|
143
|
+
*/
|
|
144
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
130
145
|
/**
|
|
131
146
|
* Unique service identifier.
|
|
132
147
|
* @internal
|
|
@@ -82,7 +82,7 @@ export interface CompareFacesCommandOutput extends CompareFacesResponse, __Metad
|
|
|
82
82
|
*
|
|
83
83
|
* @see {@link CompareFacesCommandInput} for command's `input` shape.
|
|
84
84
|
* @see {@link CompareFacesCommandOutput} for command's `response` shape.
|
|
85
|
-
* @see {@link RekognitionClientResolvedConfig | config} for
|
|
85
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
86
86
|
*
|
|
87
87
|
*/
|
|
88
88
|
export declare class CompareFacesCommand extends $Command<CompareFacesCommandInput, CompareFacesCommandOutput, RekognitionClientResolvedConfig> {
|
|
@@ -32,7 +32,7 @@ export interface CreateCollectionCommandOutput extends CreateCollectionResponse,
|
|
|
32
32
|
*
|
|
33
33
|
* @see {@link CreateCollectionCommandInput} for command's `input` shape.
|
|
34
34
|
* @see {@link CreateCollectionCommandOutput} for command's `response` shape.
|
|
35
|
-
* @see {@link RekognitionClientResolvedConfig | config} for
|
|
35
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
38
|
export declare class CreateCollectionCommand extends $Command<CreateCollectionCommandInput, CreateCollectionCommandOutput, RekognitionClientResolvedConfig> {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { CreateDatasetRequest, CreateDatasetResponse } from "../models/models_0";
|
|
4
|
+
import { RekognitionClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RekognitionClient";
|
|
5
|
+
export interface CreateDatasetCommandInput extends CreateDatasetRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateDatasetCommandOutput extends CreateDatasetResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Creates a new Amazon Rekognition Custom Labels dataset. You can create a dataset by using
|
|
11
|
+
* an Amazon Sagemaker format manifest file or by copying an existing Amazon Rekognition Custom Labels dataset.</p>
|
|
12
|
+
*
|
|
13
|
+
* <p>To create a training dataset for a project, specify <code>train</code> for the value of
|
|
14
|
+
* <code>DatasetType</code>. To create the test dataset for a project,
|
|
15
|
+
* specify <code>test</code> for the value of <code>DatasetType</code>.
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* <p>The response from <code>CreateDataset</code> is the Amazon Resource Name (ARN) for the dataset.
|
|
20
|
+
* Creating a dataset takes a while to complete. Use <a>DescribeDataset</a> to check the
|
|
21
|
+
* current status. The dataset created successfully if the value of <code>Status</code> is
|
|
22
|
+
* <code>CREATE_COMPLETE</code>. </p>
|
|
23
|
+
* <p>To check if any non-terminal errors occurred, call <a>ListDatasetEntries</a>
|
|
24
|
+
* and check for the presence of <code>errors</code> lists in the JSON Lines.</p>
|
|
25
|
+
* <p>Dataset creation fails if a terminal error occurs (<code>Status</code> = <code>CREATE_FAILED</code>).
|
|
26
|
+
* Currently, you can't access the terminal error information.
|
|
27
|
+
*
|
|
28
|
+
* </p>
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* <p>For more information, see Creating dataset in the <i>Amazon Rekognition Custom Labels Developer Guide</i>.</p>
|
|
32
|
+
*
|
|
33
|
+
* <p>This operation requires permissions to perform the <code>rekognition:CreateDataset</code> action.
|
|
34
|
+
* If you want to copy an existing dataset, you also require permission to perform the <code>rekognition:ListDatasetEntries</code> action.</p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { RekognitionClient, CreateDatasetCommand } from "@aws-sdk/client-rekognition"; // ES Modules import
|
|
39
|
+
* // const { RekognitionClient, CreateDatasetCommand } = require("@aws-sdk/client-rekognition"); // CommonJS import
|
|
40
|
+
* const client = new RekognitionClient(config);
|
|
41
|
+
* const command = new CreateDatasetCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @see {@link CreateDatasetCommandInput} for command's `input` shape.
|
|
46
|
+
* @see {@link CreateDatasetCommandOutput} for command's `response` shape.
|
|
47
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
export declare class CreateDatasetCommand extends $Command<CreateDatasetCommandInput, CreateDatasetCommandOutput, RekognitionClientResolvedConfig> {
|
|
51
|
+
readonly input: CreateDatasetCommandInput;
|
|
52
|
+
constructor(input: CreateDatasetCommandInput);
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RekognitionClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDatasetCommandInput, CreateDatasetCommandOutput>;
|
|
57
|
+
private serialize;
|
|
58
|
+
private deserialize;
|
|
59
|
+
}
|
|
@@ -7,8 +7,8 @@ export interface CreateProjectCommandInput extends CreateProjectRequest {
|
|
|
7
7
|
export interface CreateProjectCommandOutput extends CreateProjectResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Creates a new Amazon Rekognition Custom Labels project. A project is a
|
|
11
|
-
*
|
|
10
|
+
* <p>Creates a new Amazon Rekognition Custom Labels project. A project is a group of resources (datasets, model versions)
|
|
11
|
+
* that you use to create and manage Amazon Rekognition Custom Labels models. </p>
|
|
12
12
|
* <p>This operation requires permissions to perform the <code>rekognition:CreateProject</code> action.</p>
|
|
13
13
|
* @example
|
|
14
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -22,7 +22,7 @@ export interface CreateProjectCommandOutput extends CreateProjectResponse, __Met
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link CreateProjectCommandInput} for command's `input` shape.
|
|
24
24
|
* @see {@link CreateProjectCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link RekognitionClientResolvedConfig | config} for
|
|
25
|
+
* @see {@link RekognitionClientResolvedConfig | config} for RekognitionClient's `config` shape.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export declare class CreateProjectCommand extends $Command<CreateProjectCommandInput, CreateProjectCommandOutput, RekognitionClientResolvedConfig> {
|