@aws-sdk/client-rekognition 3.385.0 → 3.387.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/dist-cjs/RekognitionClient.js +2 -2
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-es/RekognitionClient.js +2 -2
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-types/RekognitionClient.d.ts +2 -2
- package/dist-types/commands/AssociateFacesCommand.d.ts +2 -3
- package/dist-types/commands/CreateDatasetCommand.d.ts +27 -2
- package/dist-types/commands/CreateFaceLivenessSessionCommand.d.ts +8 -5
- package/dist-types/commands/CreateProjectCommand.d.ts +16 -0
- package/dist-types/commands/CreateProjectVersionCommand.d.ts +21 -0
- package/dist-types/commands/CreateUserCommand.d.ts +8 -9
- package/dist-types/commands/DeleteDatasetCommand.d.ts +11 -0
- package/dist-types/commands/DeleteProjectCommand.d.ts +16 -0
- package/dist-types/commands/DeleteProjectVersionCommand.d.ts +16 -0
- package/dist-types/commands/DeleteUserCommand.d.ts +2 -3
- package/dist-types/commands/DescribeDatasetCommand.d.ts +28 -0
- package/dist-types/commands/DescribeProjectVersionsCommand.d.ts +105 -0
- package/dist-types/commands/DescribeProjectsCommand.d.ts +42 -0
- package/dist-types/commands/DetectCustomLabelsCommand.d.ts +33 -0
- package/dist-types/commands/DetectLabelsCommand.d.ts +9 -5
- package/dist-types/commands/DisassociateFacesCommand.d.ts +2 -3
- package/dist-types/commands/DistributeDatasetEntriesCommand.d.ts +18 -0
- package/dist-types/commands/GetFaceDetectionCommand.d.ts +2 -0
- package/dist-types/commands/GetFaceLivenessSessionResultsCommand.d.ts +5 -2
- package/dist-types/commands/GetTextDetectionCommand.d.ts +1 -1
- package/dist-types/commands/ListDatasetEntriesCommand.d.ts +27 -0
- package/dist-types/commands/ListDatasetLabelsCommand.d.ts +37 -0
- package/dist-types/commands/SearchUsersByImageCommand.d.ts +3 -3
- package/dist-types/commands/StartProjectVersionCommand.d.ts +18 -0
- package/dist-types/commands/StopProjectVersionCommand.d.ts +16 -0
- package/dist-types/commands/UpdateDatasetEntriesCommand.d.ts +14 -0
- package/dist-types/models/models_0.d.ts +151 -155
- package/dist-types/ts3.4/RekognitionClient.d.ts +4 -1
- package/package.json +29 -29
|
@@ -15,8 +15,8 @@ Object.defineProperty(exports, "__Client", { enumerable: true, get: function ()
|
|
|
15
15
|
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
16
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
17
|
class RekognitionClient extends smithy_client_1.Client {
|
|
18
|
-
constructor(configuration) {
|
|
19
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
18
|
+
constructor(...[configuration]) {
|
|
19
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
20
20
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
21
21
|
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
22
22
|
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
5
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://rekognition.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -12,8 +12,8 @@ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters"
|
|
|
12
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
13
|
export { __Client };
|
|
14
14
|
export class RekognitionClient extends __Client {
|
|
15
|
-
constructor(configuration) {
|
|
16
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
15
|
+
constructor(...[configuration]) {
|
|
16
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
17
17
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
18
18
|
const _config_2 = resolveRegionConfig(_config_1);
|
|
19
19
|
const _config_3 = resolveEndpointConfig(_config_2);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
2
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://rekognition.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -7,7 +7,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
7
7
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
8
8
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
9
9
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
10
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
11
11
|
import { AssociateFacesCommandInput, AssociateFacesCommandOutput } from "./commands/AssociateFacesCommand";
|
|
12
12
|
import { CompareFacesCommandInput, CompareFacesCommandOutput } from "./commands/CompareFacesCommand";
|
|
13
13
|
import { CopyProjectVersionCommandInput, CopyProjectVersionCommandOutput } from "./commands/CopyProjectVersionCommand";
|
|
@@ -582,7 +582,7 @@ export declare class RekognitionClient extends __Client<__HttpHandlerOptions, Se
|
|
|
582
582
|
* The resolved configuration of RekognitionClient class. This is resolved and normalized from the {@link RekognitionClientConfig | constructor configuration interface}.
|
|
583
583
|
*/
|
|
584
584
|
readonly config: RekognitionClientResolvedConfig;
|
|
585
|
-
constructor(configuration: RekognitionClientConfig);
|
|
585
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<RekognitionClientConfig>);
|
|
586
586
|
/**
|
|
587
587
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
588
588
|
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
@@ -102,9 +102,8 @@ export interface AssociateFacesCommandOutput extends AssociateFacesResponse, __M
|
|
|
102
102
|
* <p>You are not authorized to perform the action.</p>
|
|
103
103
|
*
|
|
104
104
|
* @throws {@link ConflictException} (client fault)
|
|
105
|
-
* <p>
|
|
106
|
-
*
|
|
107
|
-
* </p>
|
|
105
|
+
* <p> A User with the same Id already exists within the collection, or the update or deletion
|
|
106
|
+
* of the User caused an inconsistent state. ** </p>
|
|
108
107
|
*
|
|
109
108
|
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
110
109
|
* <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input
|
|
@@ -25,9 +25,9 @@ export interface CreateDatasetCommandOutput extends CreateDatasetResponse, __Met
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Creates a new Amazon Rekognition Custom Labels dataset. You can create a dataset by using
|
|
27
27
|
* an Amazon Sagemaker format manifest file or by copying an existing Amazon Rekognition Custom Labels dataset.</p>
|
|
28
|
-
* <p>To create a training dataset for a project, specify <code>
|
|
28
|
+
* <p>To create a training dataset for a project, specify <code>TRAIN</code> for the value of
|
|
29
29
|
* <code>DatasetType</code>. To create the test dataset for a project,
|
|
30
|
-
* specify <code>
|
|
30
|
+
* specify <code>TEST</code> for the value of <code>DatasetType</code>.
|
|
31
31
|
* </p>
|
|
32
32
|
* <p>The response from <code>CreateDataset</code> is the Amazon Resource Name (ARN) for the dataset.
|
|
33
33
|
* Creating a dataset takes a while to complete. Use <a>DescribeDataset</a> to check the
|
|
@@ -110,6 +110,31 @@ export interface CreateDatasetCommandOutput extends CreateDatasetResponse, __Met
|
|
|
110
110
|
* @throws {@link RekognitionServiceException}
|
|
111
111
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
112
112
|
*
|
|
113
|
+
* @example To create an Amazon Rekognition Custom Labels dataset
|
|
114
|
+
* ```javascript
|
|
115
|
+
* // Creates an Amazon Rekognition Custom Labels dataset with a manifest file stored in an Amazon S3 bucket.
|
|
116
|
+
* const input = {
|
|
117
|
+
* "DatasetSource": {
|
|
118
|
+
* "GroundTruthManifest": {
|
|
119
|
+
* "S3Object": {
|
|
120
|
+
* "Bucket": "my-bucket",
|
|
121
|
+
* "Name": "datasets/flowers_training/manifests/output/output.manifest"
|
|
122
|
+
* }
|
|
123
|
+
* }
|
|
124
|
+
* },
|
|
125
|
+
* "DatasetType": "TRAIN",
|
|
126
|
+
* "ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690474772815"
|
|
127
|
+
* };
|
|
128
|
+
* const command = new CreateDatasetCommand(input);
|
|
129
|
+
* const response = await client.send(command);
|
|
130
|
+
* /* response ==
|
|
131
|
+
* {
|
|
132
|
+
* "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/train/1690476084535"
|
|
133
|
+
* }
|
|
134
|
+
* *\/
|
|
135
|
+
* // example id: to-create-an-amazon-rekognition-custom-labels-dataset-1690476237145
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
113
138
|
*/
|
|
114
139
|
export declare class CreateDatasetCommand extends $Command<CreateDatasetCommandInput, CreateDatasetCommandOutput, RekognitionClientResolvedConfig> {
|
|
115
140
|
readonly input: CreateDatasetCommandInput;
|
|
@@ -25,11 +25,14 @@ export interface CreateFaceLivenessSessionCommandOutput extends CreateFaceLivene
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>This API operation initiates a Face Liveness session. It returns a <code>SessionId</code>,
|
|
27
27
|
* which you can use to start streaming Face Liveness video and get the results for a Face
|
|
28
|
-
* Liveness session.
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
28
|
+
* Liveness session. </p>
|
|
29
|
+
* <p>You can use the <code>OutputConfig</code> option in the Settings parameter to provide an
|
|
30
|
+
* Amazon S3 bucket location. The Amazon S3 bucket stores reference images and audit images. If no Amazon S3
|
|
31
|
+
* bucket is defined, raw bytes are sent instead. </p>
|
|
32
|
+
* <p>You can use <code>AuditImagesLimit</code> to limit the number of audit images returned
|
|
33
|
+
* when <code>GetFaceLivenessSessionResults</code> is called. This number is between 0 and 4. By
|
|
34
|
+
* default, it is set to 0. The limit is best effort and based on the duration of the
|
|
35
|
+
* selfie-video. </p>
|
|
33
36
|
* @example
|
|
34
37
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
38
|
* ```javascript
|
|
@@ -77,6 +77,22 @@ export interface CreateProjectCommandOutput extends CreateProjectResponse, __Met
|
|
|
77
77
|
* @throws {@link RekognitionServiceException}
|
|
78
78
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
79
79
|
*
|
|
80
|
+
* @example To create an Amazon Rekognition Custom Labels project
|
|
81
|
+
* ```javascript
|
|
82
|
+
* // Creates an Amazon Rekognition Custom Labels project.
|
|
83
|
+
* const input = {
|
|
84
|
+
* "ProjectName": "my-project"
|
|
85
|
+
* };
|
|
86
|
+
* const command = new CreateProjectCommand(input);
|
|
87
|
+
* const response = await client.send(command);
|
|
88
|
+
* /* response ==
|
|
89
|
+
* {
|
|
90
|
+
* "ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690405809285"
|
|
91
|
+
* }
|
|
92
|
+
* *\/
|
|
93
|
+
* // example id: to-create-an-amazon-rekognition-custom-labels-project-1690405898597
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
80
96
|
*/
|
|
81
97
|
export declare class CreateProjectCommand extends $Command<CreateProjectCommandInput, CreateProjectCommandOutput, RekognitionClientResolvedConfig> {
|
|
82
98
|
readonly input: CreateProjectCommandInput;
|
|
@@ -148,6 +148,27 @@ export interface CreateProjectVersionCommandOutput extends CreateProjectVersionR
|
|
|
148
148
|
* @throws {@link RekognitionServiceException}
|
|
149
149
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
150
150
|
*
|
|
151
|
+
* @example To train an Amazon Rekognition Custom Labels model
|
|
152
|
+
* ```javascript
|
|
153
|
+
* // Trains a version of an Amazon Rekognition Custom Labels model.
|
|
154
|
+
* const input = {
|
|
155
|
+
* "OutputConfig": {
|
|
156
|
+
* "S3Bucket": "output_bucket",
|
|
157
|
+
* "S3KeyPrefix": "output_folder"
|
|
158
|
+
* },
|
|
159
|
+
* "ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690474772815",
|
|
160
|
+
* "VersionName": "1"
|
|
161
|
+
* };
|
|
162
|
+
* const command = new CreateProjectVersionCommand(input);
|
|
163
|
+
* const response = await client.send(command);
|
|
164
|
+
* /* response ==
|
|
165
|
+
* {
|
|
166
|
+
* "ProjectVersionArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
|
|
167
|
+
* }
|
|
168
|
+
* *\/
|
|
169
|
+
* // example id: to-train-an-amazon-rekognition-custom-labels-model-1690555832843
|
|
170
|
+
* ```
|
|
171
|
+
*
|
|
151
172
|
*/
|
|
152
173
|
export declare class CreateProjectVersionCommand extends $Command<CreateProjectVersionCommandInput, CreateProjectVersionCommandOutput, RekognitionClientResolvedConfig> {
|
|
153
174
|
readonly input: CreateProjectVersionCommandInput;
|
|
@@ -24,13 +24,13 @@ export interface CreateUserCommandOutput extends CreateUserResponse, __MetadataB
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Creates a new User within a collection specified by <code>CollectionId</code>. Takes
|
|
27
|
-
*
|
|
28
|
-
* within the collection. The provided <code>UserId</code> will alias the system generated
|
|
29
|
-
*
|
|
27
|
+
* <code>UserId</code> as a parameter, which is a user provided ID which should be unique
|
|
28
|
+
* within the collection. The provided <code>UserId</code> will alias the system generated UUID
|
|
29
|
+
* to make the <code>UserId</code> more user friendly. </p>
|
|
30
30
|
* <p>Uses a <code>ClientToken</code>, an idempotency token that ensures a call to
|
|
31
|
-
*
|
|
32
|
-
* generates an idempotency token for the requests. This prevents retries after a network
|
|
33
|
-
*
|
|
31
|
+
* <code>CreateUser</code> completes only once. If the value is not supplied, the AWS SDK
|
|
32
|
+
* generates an idempotency token for the requests. This prevents retries after a network error
|
|
33
|
+
* results from making multiple <code>CreateUser</code> calls. </p>
|
|
34
34
|
* @example
|
|
35
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
36
|
* ```javascript
|
|
@@ -58,9 +58,8 @@ export interface CreateUserCommandOutput extends CreateUserResponse, __MetadataB
|
|
|
58
58
|
* <p>You are not authorized to perform the action.</p>
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link ConflictException} (client fault)
|
|
61
|
-
* <p>
|
|
62
|
-
*
|
|
63
|
-
* </p>
|
|
61
|
+
* <p> A User with the same Id already exists within the collection, or the update or deletion
|
|
62
|
+
* of the User caused an inconsistent state. ** </p>
|
|
64
63
|
*
|
|
65
64
|
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
66
65
|
* <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input
|
|
@@ -85,6 +85,17 @@ export interface DeleteDatasetCommandOutput extends DeleteDatasetResponse, __Met
|
|
|
85
85
|
* @throws {@link RekognitionServiceException}
|
|
86
86
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
87
87
|
*
|
|
88
|
+
* @example To delete an Amazon Rekognition Custom Labels dataset
|
|
89
|
+
* ```javascript
|
|
90
|
+
* // Deletes an Amazon Rekognition Custom Labels dataset.
|
|
91
|
+
* const input = {
|
|
92
|
+
* "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/test/1690556733321"
|
|
93
|
+
* };
|
|
94
|
+
* const command = new DeleteDatasetCommand(input);
|
|
95
|
+
* await client.send(command);
|
|
96
|
+
* // example id: to-delete-an-amazon-rekognition-custom-labels-dataset-1690826556349
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
88
99
|
*/
|
|
89
100
|
export declare class DeleteDatasetCommand extends $Command<DeleteDatasetCommandInput, DeleteDatasetCommandOutput, RekognitionClientResolvedConfig> {
|
|
90
101
|
readonly input: DeleteDatasetCommandInput;
|
|
@@ -81,6 +81,22 @@ export interface DeleteProjectCommandOutput extends DeleteProjectResponse, __Met
|
|
|
81
81
|
* @throws {@link RekognitionServiceException}
|
|
82
82
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
83
83
|
*
|
|
84
|
+
* @example To delete an Amazon Rekognition Custom Labels project
|
|
85
|
+
* ```javascript
|
|
86
|
+
* // Deletes an Amazon Rekognition Custom Labels projects.
|
|
87
|
+
* const input = {
|
|
88
|
+
* "ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690405809285"
|
|
89
|
+
* };
|
|
90
|
+
* const command = new DeleteProjectCommand(input);
|
|
91
|
+
* const response = await client.send(command);
|
|
92
|
+
* /* response ==
|
|
93
|
+
* {
|
|
94
|
+
* "Status": "DELETING"
|
|
95
|
+
* }
|
|
96
|
+
* *\/
|
|
97
|
+
* // example id: to-delete-an-amazon-rekognition-custom-labels-project-1690409093478
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
84
100
|
*/
|
|
85
101
|
export declare class DeleteProjectCommand extends $Command<DeleteProjectCommandInput, DeleteProjectCommandOutput, RekognitionClientResolvedConfig> {
|
|
86
102
|
readonly input: DeleteProjectCommandInput;
|
|
@@ -80,6 +80,22 @@ export interface DeleteProjectVersionCommandOutput extends DeleteProjectVersionR
|
|
|
80
80
|
* @throws {@link RekognitionServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
82
82
|
*
|
|
83
|
+
* @example To delete an Amazon Rekognition Custom Labels model
|
|
84
|
+
* ```javascript
|
|
85
|
+
* // Deletes a version of an Amazon Rekognition Custom Labels model.
|
|
86
|
+
* const input = {
|
|
87
|
+
* "ProjectVersionArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
|
|
88
|
+
* };
|
|
89
|
+
* const command = new DeleteProjectVersionCommand(input);
|
|
90
|
+
* const response = await client.send(command);
|
|
91
|
+
* /* response ==
|
|
92
|
+
* {
|
|
93
|
+
* "Status": "DELETING"
|
|
94
|
+
* }
|
|
95
|
+
* *\/
|
|
96
|
+
* // example id: to-delete-an-amazon-rekognition-custom-labels-model-1690827562055
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
83
99
|
*/
|
|
84
100
|
export declare class DeleteProjectVersionCommand extends $Command<DeleteProjectVersionCommandInput, DeleteProjectVersionCommandOutput, RekognitionClientResolvedConfig> {
|
|
85
101
|
readonly input: DeleteProjectVersionCommandInput;
|
|
@@ -55,9 +55,8 @@ export interface DeleteUserCommandOutput extends DeleteUserResponse, __MetadataB
|
|
|
55
55
|
* <p>You are not authorized to perform the action.</p>
|
|
56
56
|
*
|
|
57
57
|
* @throws {@link ConflictException} (client fault)
|
|
58
|
-
* <p>
|
|
59
|
-
*
|
|
60
|
-
* </p>
|
|
58
|
+
* <p> A User with the same Id already exists within the collection, or the update or deletion
|
|
59
|
+
* of the User caused an inconsistent state. ** </p>
|
|
61
60
|
*
|
|
62
61
|
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
63
62
|
* <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input
|
|
@@ -86,6 +86,34 @@ export interface DescribeDatasetCommandOutput extends DescribeDatasetResponse, _
|
|
|
86
86
|
* @throws {@link RekognitionServiceException}
|
|
87
87
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
88
88
|
*
|
|
89
|
+
* @example To describe an Amazon Rekognition Custom Labels dataset
|
|
90
|
+
* ```javascript
|
|
91
|
+
* // Describes an Amazon Rekognition Custom Labels dataset.
|
|
92
|
+
* const input = {
|
|
93
|
+
* "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/train/1690476084535"
|
|
94
|
+
* };
|
|
95
|
+
* const command = new DescribeDatasetCommand(input);
|
|
96
|
+
* const response = await client.send(command);
|
|
97
|
+
* /* response ==
|
|
98
|
+
* {
|
|
99
|
+
* "DatasetDescription": {
|
|
100
|
+
* "CreationTimestamp": "2023-07-27T09:41:24.738000-07:00",
|
|
101
|
+
* "DatasetStats": {
|
|
102
|
+
* "ErrorEntries": 0,
|
|
103
|
+
* "LabeledEntries": 15,
|
|
104
|
+
* "TotalEntries": 15,
|
|
105
|
+
* "TotalLabels": 9
|
|
106
|
+
* },
|
|
107
|
+
* "LastUpdatedTimestamp": "2023-07-28T09:46:45.406000-07:00",
|
|
108
|
+
* "Status": "UPDATE_FAILED",
|
|
109
|
+
* "StatusMessage": "The manifest file contains images from multiple S3 buckets.",
|
|
110
|
+
* "StatusMessageCode": "CLIENT_ERROR"
|
|
111
|
+
* }
|
|
112
|
+
* }
|
|
113
|
+
* *\/
|
|
114
|
+
* // example id: to-describe-an-amazon-rekognition-custom-labels-dataset-1690827075604
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
89
117
|
*/
|
|
90
118
|
export declare class DescribeDatasetCommand extends $Command<DescribeDatasetCommandInput, DescribeDatasetCommandOutput, RekognitionClientResolvedConfig> {
|
|
91
119
|
readonly input: DescribeDatasetCommandInput;
|
|
@@ -181,6 +181,111 @@ export interface DescribeProjectVersionsCommandOutput extends DescribeProjectVer
|
|
|
181
181
|
* @throws {@link RekognitionServiceException}
|
|
182
182
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
183
183
|
*
|
|
184
|
+
* @example To describe an Amazon Rekognition Custom Labels model
|
|
185
|
+
* ```javascript
|
|
186
|
+
* // Describes a version of an Amazon Rekognition Custom Labels model.
|
|
187
|
+
* const input = {
|
|
188
|
+
* "ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1690474772815",
|
|
189
|
+
* "VersionNames": [
|
|
190
|
+
* "1"
|
|
191
|
+
* ]
|
|
192
|
+
* };
|
|
193
|
+
* const command = new DescribeProjectVersionsCommand(input);
|
|
194
|
+
* const response = await client.send(command);
|
|
195
|
+
* /* response ==
|
|
196
|
+
* {
|
|
197
|
+
* "NextToken": "",
|
|
198
|
+
* "ProjectVersionDescriptions": [
|
|
199
|
+
* {
|
|
200
|
+
* "BillableTrainingTimeInSeconds": 1899,
|
|
201
|
+
* "CreationTimestamp": "2023-07-28T08:05:51.958000-07:00",
|
|
202
|
+
* "EvaluationResult": {
|
|
203
|
+
* "F1Score": 1,
|
|
204
|
+
* "Summary": {
|
|
205
|
+
* "S3Object": {
|
|
206
|
+
* "Bucket": "custom-labels-console-us-east-1-111111111",
|
|
207
|
+
* "Name": "my-model-output/EvaluationResultSummary-my-project-1.json"
|
|
208
|
+
* }
|
|
209
|
+
* }
|
|
210
|
+
* },
|
|
211
|
+
* "ManifestSummary": {
|
|
212
|
+
* "S3Object": {
|
|
213
|
+
* "Bucket": "custom-labels-console-us-east-1-111111111",
|
|
214
|
+
* "Name": "my-model-output/ManifestSummary-my-project-1.json"
|
|
215
|
+
* }
|
|
216
|
+
* },
|
|
217
|
+
* "OutputConfig": {
|
|
218
|
+
* "S3Bucket": "custom-labels-console-us-east-1-111111111",
|
|
219
|
+
* "S3KeyPrefix": "my-model-output"
|
|
220
|
+
* },
|
|
221
|
+
* "ProjectVersionArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958",
|
|
222
|
+
* "Status": "TRAINING_COMPLETED",
|
|
223
|
+
* "StatusMessage": "The model is ready to run.",
|
|
224
|
+
* "TestingDataResult": {
|
|
225
|
+
* "Input": {
|
|
226
|
+
* "AutoCreate": false
|
|
227
|
+
* },
|
|
228
|
+
* "Output": {
|
|
229
|
+
* "Assets": [
|
|
230
|
+
* {
|
|
231
|
+
* "GroundTruthManifest": {
|
|
232
|
+
* "S3Object": {
|
|
233
|
+
* "Bucket": "custom-labels-console-us-east-1-111111111",
|
|
234
|
+
* "Name": "my-model-output/TestingGroundTruth-my-project-1.json"
|
|
235
|
+
* }
|
|
236
|
+
* }
|
|
237
|
+
* }
|
|
238
|
+
* ],
|
|
239
|
+
* "AutoCreate": false
|
|
240
|
+
* },
|
|
241
|
+
* "Validation": {
|
|
242
|
+
* "Assets": [
|
|
243
|
+
* {
|
|
244
|
+
* "GroundTruthManifest": {
|
|
245
|
+
* "S3Object": {
|
|
246
|
+
* "Bucket": "custom-labels-console-us-east-1-111111111",
|
|
247
|
+
* "Name": "my-model-output/TestingManifestWithValidation-my-project-1.json"
|
|
248
|
+
* }
|
|
249
|
+
* }
|
|
250
|
+
* }
|
|
251
|
+
* ]
|
|
252
|
+
* }
|
|
253
|
+
* },
|
|
254
|
+
* "TrainingDataResult": {
|
|
255
|
+
* "Input": {},
|
|
256
|
+
* "Output": {
|
|
257
|
+
* "Assets": [
|
|
258
|
+
* {
|
|
259
|
+
* "GroundTruthManifest": {
|
|
260
|
+
* "S3Object": {
|
|
261
|
+
* "Bucket": "custom-labels-console-us-east-1-111111111",
|
|
262
|
+
* "Name": "my-model-output/TrainingGroundTruth-my-project-1.json"
|
|
263
|
+
* }
|
|
264
|
+
* }
|
|
265
|
+
* }
|
|
266
|
+
* ]
|
|
267
|
+
* },
|
|
268
|
+
* "Validation": {
|
|
269
|
+
* "Assets": [
|
|
270
|
+
* {
|
|
271
|
+
* "GroundTruthManifest": {
|
|
272
|
+
* "S3Object": {
|
|
273
|
+
* "Bucket": "custom-labels-console-us-east-1-111111111",
|
|
274
|
+
* "Name": "my-model-output/TrainingManifestWithValidation-my-project-1.json"
|
|
275
|
+
* }
|
|
276
|
+
* }
|
|
277
|
+
* }
|
|
278
|
+
* ]
|
|
279
|
+
* }
|
|
280
|
+
* },
|
|
281
|
+
* "TrainingEndTimestamp": "2023-07-28T08:33:10.827000-07:00"
|
|
282
|
+
* }
|
|
283
|
+
* ]
|
|
284
|
+
* }
|
|
285
|
+
* *\/
|
|
286
|
+
* // example id: to-describes-an-amazon-rekognition-custom-labels-model-1690558265950
|
|
287
|
+
* ```
|
|
288
|
+
*
|
|
184
289
|
*/
|
|
185
290
|
export declare class DescribeProjectVersionsCommand extends $Command<DescribeProjectVersionsCommandInput, DescribeProjectVersionsCommandOutput, RekognitionClientResolvedConfig> {
|
|
186
291
|
readonly input: DescribeProjectVersionsCommandInput;
|
|
@@ -92,6 +92,48 @@ export interface DescribeProjectsCommandOutput extends DescribeProjectsResponse,
|
|
|
92
92
|
* @throws {@link RekognitionServiceException}
|
|
93
93
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
94
94
|
*
|
|
95
|
+
* @example To describe an Amazon Rekognition Custom Labels project.
|
|
96
|
+
* ```javascript
|
|
97
|
+
* // Describes an Amazon Rekognition Custom Labels projects.
|
|
98
|
+
* const input = {
|
|
99
|
+
* "ProjectNames": [
|
|
100
|
+
* "my-project"
|
|
101
|
+
* ]
|
|
102
|
+
* };
|
|
103
|
+
* const command = new DescribeProjectsCommand(input);
|
|
104
|
+
* const response = await client.send(command);
|
|
105
|
+
* /* response ==
|
|
106
|
+
* {
|
|
107
|
+
* "ProjectDescriptions": [
|
|
108
|
+
* {
|
|
109
|
+
* "CreationTimestamp": "2022-06-13T15:16:00.634000-07:00",
|
|
110
|
+
* "Datasets": [
|
|
111
|
+
* {
|
|
112
|
+
* "CreationTimestamp": "2022-06-13T15:17:34.620000-07:00",
|
|
113
|
+
* "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/test/1655158654491",
|
|
114
|
+
* "DatasetType": "TEST",
|
|
115
|
+
* "Status": "CREATE_COMPLETE",
|
|
116
|
+
* "StatusMessage": "The dataset was successfully created from the manifest file.",
|
|
117
|
+
* "StatusMessageCode": "SUCCESS"
|
|
118
|
+
* },
|
|
119
|
+
* {
|
|
120
|
+
* "CreationTimestamp": "2022-06-13T15:17:50.118000-07:00",
|
|
121
|
+
* "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/dataset/train/1655158669954",
|
|
122
|
+
* "DatasetType": "TRAIN",
|
|
123
|
+
* "Status": "CREATE_COMPLETE",
|
|
124
|
+
* "StatusMessage": "The dataset was successfully created from the manifest file.",
|
|
125
|
+
* "StatusMessageCode": "SUCCESS"
|
|
126
|
+
* }
|
|
127
|
+
* ],
|
|
128
|
+
* "ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/1655158560634",
|
|
129
|
+
* "Status": "CREATED"
|
|
130
|
+
* }
|
|
131
|
+
* ]
|
|
132
|
+
* }
|
|
133
|
+
* *\/
|
|
134
|
+
* // example id: to-describe-an-amazon-rekognition-custom-labels-project-1690400952376
|
|
135
|
+
* ```
|
|
136
|
+
*
|
|
95
137
|
*/
|
|
96
138
|
export declare class DescribeProjectsCommand extends $Command<DescribeProjectsCommandInput, DescribeProjectsCommandOutput, RekognitionClientResolvedConfig> {
|
|
97
139
|
readonly input: DescribeProjectsCommandInput;
|
|
@@ -152,6 +152,39 @@ export interface DetectCustomLabelsCommandOutput extends DetectCustomLabelsRespo
|
|
|
152
152
|
* @throws {@link RekognitionServiceException}
|
|
153
153
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
154
154
|
*
|
|
155
|
+
* @example To detect custom labels in an image with an Amazon Rekognition Custom Labels model
|
|
156
|
+
* ```javascript
|
|
157
|
+
* // Detects custom labels in an image with an Amazon Rekognition Custom Labels model
|
|
158
|
+
* const input = {
|
|
159
|
+
* "Image": {
|
|
160
|
+
* "S3Object": {
|
|
161
|
+
* "Bucket": "custom-labels-console-us-east-1-1111111111",
|
|
162
|
+
* "Name": "assets/flowers_1_test_dataset/camellia4.jpg"
|
|
163
|
+
* }
|
|
164
|
+
* },
|
|
165
|
+
* "MaxResults": 100,
|
|
166
|
+
* "MinConfidence": 50,
|
|
167
|
+
* "ProjectVersionArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/my-project.2023-07-31T11.49.37/1690829378219"
|
|
168
|
+
* };
|
|
169
|
+
* const command = new DetectCustomLabelsCommand(input);
|
|
170
|
+
* const response = await client.send(command);
|
|
171
|
+
* /* response ==
|
|
172
|
+
* {
|
|
173
|
+
* "CustomLabels": [
|
|
174
|
+
* {
|
|
175
|
+
* "Confidence": 67.56399536132812,
|
|
176
|
+
* "Name": "with_leaves"
|
|
177
|
+
* },
|
|
178
|
+
* {
|
|
179
|
+
* "Confidence": 50.65699768066406,
|
|
180
|
+
* "Name": "without_leaves"
|
|
181
|
+
* }
|
|
182
|
+
* ]
|
|
183
|
+
* }
|
|
184
|
+
* *\/
|
|
185
|
+
* // example id: to-detect-custom-labels-in-images-with-an-amazon-rekognition-custom-labels-model-1690832037913
|
|
186
|
+
* ```
|
|
187
|
+
*
|
|
155
188
|
*/
|
|
156
189
|
export declare class DetectCustomLabelsCommand extends $Command<DetectCustomLabelsCommandInput, DetectCustomLabelsCommandOutput, RekognitionClientResolvedConfig> {
|
|
157
190
|
readonly input: DetectCustomLabelsCommandInput;
|
|
@@ -46,9 +46,11 @@ export interface DetectLabelsCommandOutput extends DetectLabelsResponse, __Metad
|
|
|
46
46
|
* labels or with label categories. You can specify inclusive filters, exclusive filters, or a
|
|
47
47
|
* combination of inclusive and exclusive filters. For more information on filtering see <a href="https://docs.aws.amazon.com/rekognition/latest/dg/labels-detect-labels-image.html">Detecting
|
|
48
48
|
* Labels in an Image</a>.</p>
|
|
49
|
-
* <p>
|
|
50
|
-
* labels returned. The default is 55%. You can also add the
|
|
51
|
-
*
|
|
49
|
+
* <p>When getting labels, you can specify <code>MinConfidence</code> to control the
|
|
50
|
+
* confidence threshold for the labels returned. The default is 55%. You can also add the
|
|
51
|
+
* <code>MaxLabels</code> parameter to limit the number of labels returned. The default and
|
|
52
|
+
* upper limit is 1000 labels. These arguments are only valid when supplying GENERAL_LABELS as a
|
|
53
|
+
* feature type.</p>
|
|
52
54
|
* <p>
|
|
53
55
|
* <b>Response Elements</b>
|
|
54
56
|
* </p>
|
|
@@ -95,10 +97,12 @@ export interface DetectLabelsCommandOutput extends DetectLabelsResponse, __Metad
|
|
|
95
97
|
* <p>Dominant Color - An array of the dominant colors in the image. </p>
|
|
96
98
|
* </li>
|
|
97
99
|
* <li>
|
|
98
|
-
* <p>Foreground - Information about the sharpness, brightness, and dominant colors of the
|
|
100
|
+
* <p>Foreground - Information about the sharpness, brightness, and dominant colors of the
|
|
101
|
+
* input image’s foreground. </p>
|
|
99
102
|
* </li>
|
|
100
103
|
* <li>
|
|
101
|
-
* <p>Background - Information about the sharpness, brightness, and dominant colors of the
|
|
104
|
+
* <p>Background - Information about the sharpness, brightness, and dominant colors of the
|
|
105
|
+
* input image’s background.</p>
|
|
102
106
|
* </li>
|
|
103
107
|
* </ul>
|
|
104
108
|
* <p>The list of returned labels will include at least one label for every detected object,
|
|
@@ -77,9 +77,8 @@ export interface DisassociateFacesCommandOutput extends DisassociateFacesRespons
|
|
|
77
77
|
* <p>You are not authorized to perform the action.</p>
|
|
78
78
|
*
|
|
79
79
|
* @throws {@link ConflictException} (client fault)
|
|
80
|
-
* <p>
|
|
81
|
-
*
|
|
82
|
-
* </p>
|
|
80
|
+
* <p> A User with the same Id already exists within the collection, or the update or deletion
|
|
81
|
+
* of the User caused an inconsistent state. ** </p>
|
|
83
82
|
*
|
|
84
83
|
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
85
84
|
* <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input
|
|
@@ -87,6 +87,24 @@ export interface DistributeDatasetEntriesCommandOutput extends DistributeDataset
|
|
|
87
87
|
* @throws {@link RekognitionServiceException}
|
|
88
88
|
* <p>Base exception class for all service exceptions from Rekognition service.</p>
|
|
89
89
|
*
|
|
90
|
+
* @example To distribute an Amazon Rekognition Custom Labels dataset
|
|
91
|
+
* ```javascript
|
|
92
|
+
* // Distributes an Amazon Rekognition Custom Labels training dataset to a test dataset.
|
|
93
|
+
* const input = {
|
|
94
|
+
* "Datasets": [
|
|
95
|
+
* {
|
|
96
|
+
* "Arn": "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106"
|
|
97
|
+
* },
|
|
98
|
+
* {
|
|
99
|
+
* "Arn": "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/test/1690564858106"
|
|
100
|
+
* }
|
|
101
|
+
* ]
|
|
102
|
+
* };
|
|
103
|
+
* const command = new DistributeDatasetEntriesCommand(input);
|
|
104
|
+
* await client.send(command);
|
|
105
|
+
* // example id: to-distribute-to-an-amazon-rekognition-custom-labels-dataset-1690816977073
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
90
108
|
*/
|
|
91
109
|
export declare class DistributeDatasetEntriesCommand extends $Command<DistributeDatasetEntriesCommandInput, DistributeDatasetEntriesCommandOutput, RekognitionClientResolvedConfig> {
|
|
92
110
|
readonly input: DistributeDatasetEntriesCommandInput;
|