@aws-sdk/client-rekognition 3.386.0 → 3.388.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.
@@ -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);
@@ -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);
@@ -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.
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -105,6 +105,33 @@ export interface ListDatasetEntriesCommandOutput extends ListDatasetEntriesRespo
105
105
  * @throws {@link RekognitionServiceException}
106
106
  * <p>Base exception class for all service exceptions from Rekognition service.</p>
107
107
  *
108
+ * @example To list the entries in an Amazon Rekognition Custom Labels dataset
109
+ * ```javascript
110
+ * // Lists the JSON line entries in an Amazon Rekognition Custom Labels dataset.
111
+ * const input = {
112
+ * "ContainsLabels": [
113
+ * "camellia"
114
+ * ],
115
+ * "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106",
116
+ * "HasErrors": true,
117
+ * "Labeled": true,
118
+ * "MaxResults": 100,
119
+ * "NextToken": "",
120
+ * "SourceRefContains": "camellia4.jpg"
121
+ * };
122
+ * const command = new ListDatasetEntriesCommand(input);
123
+ * const response = await client.send(command);
124
+ * /* response ==
125
+ * {
126
+ * "DatasetEntries": [
127
+ * "{\"source-ref\":\"s3://custom-labels-console-us-east-1-1111111111/assets/flowers_1_train_dataset/camellia4.jpg\",\"camellia\":1,\"camellia-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/camellia\",\"class-name\":\"camellia\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:32:13.456Z\",\"type\":\"groundtruth/image-classification\"},\"with_leaves\":1,\"with_leaves-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/with_leaves\",\"class-name\":\"with_leaves\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:32:13.456Z\",\"type\":\"groundtruth/image-classification\"},\"cl-metadata\":{\"is_labeled\":true}}"
128
+ * ],
129
+ * "NextToken": ""
130
+ * }
131
+ * *\/
132
+ * // example id: to-list-the-entries-in-an-amazon-rekognition-custom-labels-dataset-1690823292345
133
+ * ```
134
+ *
108
135
  */
109
136
  export declare class ListDatasetEntriesCommand extends $Command<ListDatasetEntriesCommandInput, ListDatasetEntriesCommandOutput, RekognitionClientResolvedConfig> {
110
137
  readonly input: ListDatasetEntriesCommandInput;
@@ -97,6 +97,43 @@ export interface ListDatasetLabelsCommandOutput extends ListDatasetLabelsRespons
97
97
  * @throws {@link RekognitionServiceException}
98
98
  * <p>Base exception class for all service exceptions from Rekognition service.</p>
99
99
  *
100
+ * @example To list the entries in an Amazon Rekognition Custom Labels dataset
101
+ * ```javascript
102
+ * // Lists the JSON line entries in an Amazon Rekognition Custom Labels dataset.
103
+ * const input = {
104
+ * "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106",
105
+ * "MaxResults": 100,
106
+ * "NextToken": ""
107
+ * };
108
+ * const command = new ListDatasetLabelsCommand(input);
109
+ * const response = await client.send(command);
110
+ * /* response ==
111
+ * {
112
+ * "DatasetLabelDescriptions": [
113
+ * {
114
+ * "LabelName": "camellia",
115
+ * "LabelStats": {
116
+ * "EntryCount": 1
117
+ * }
118
+ * },
119
+ * {
120
+ * "LabelName": "with_leaves",
121
+ * "LabelStats": {
122
+ * "EntryCount": 2
123
+ * }
124
+ * },
125
+ * {
126
+ * "LabelName": "mediterranean_spurge",
127
+ * "LabelStats": {
128
+ * "EntryCount": 1
129
+ * }
130
+ * }
131
+ * ]
132
+ * }
133
+ * *\/
134
+ * // example id: to-list-the-entries-in-an-amazon-rekognition-custom-labels-dataset-1690823292345
135
+ * ```
136
+ *
100
137
  */
101
138
  export declare class ListDatasetLabelsCommand extends $Command<ListDatasetLabelsCommandInput, ListDatasetLabelsCommandOutput, RekognitionClientResolvedConfig> {
102
139
  readonly input: ListDatasetLabelsCommandInput;
@@ -90,6 +90,24 @@ export interface StartProjectVersionCommandOutput extends StartProjectVersionRes
90
90
  * @throws {@link RekognitionServiceException}
91
91
  * <p>Base exception class for all service exceptions from Rekognition service.</p>
92
92
  *
93
+ * @example To start an Amazon Rekognition Custom Labels model
94
+ * ```javascript
95
+ * // Starts a version of an Amazon Rekognition Custom Labels model.
96
+ * const input = {
97
+ * "MaxInferenceUnits": 1,
98
+ * "MinInferenceUnits": 1,
99
+ * "ProjectVersionArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
100
+ * };
101
+ * const command = new StartProjectVersionCommand(input);
102
+ * const response = await client.send(command);
103
+ * /* response ==
104
+ * {
105
+ * "Status": "STARTING"
106
+ * }
107
+ * *\/
108
+ * // example id: to-start-an-amazon-rekognition-custom-labels-model-1690559168398
109
+ * ```
110
+ *
93
111
  */
94
112
  export declare class StartProjectVersionCommand extends $Command<StartProjectVersionCommandInput, StartProjectVersionCommandOutput, RekognitionClientResolvedConfig> {
95
113
  readonly input: StartProjectVersionCommandInput;
@@ -75,6 +75,22 @@ export interface StopProjectVersionCommandOutput extends StopProjectVersionRespo
75
75
  * @throws {@link RekognitionServiceException}
76
76
  * <p>Base exception class for all service exceptions from Rekognition service.</p>
77
77
  *
78
+ * @example To stop an Amazon Rekognition Custom Labels model.
79
+ * ```javascript
80
+ * // Stops a version of an Amazon Rekognition Custom Labels model.
81
+ * const input = {
82
+ * "ProjectVersionArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
83
+ * };
84
+ * const command = new StopProjectVersionCommand(input);
85
+ * const response = await client.send(command);
86
+ * /* response ==
87
+ * {
88
+ * "Status": "STOPPING"
89
+ * }
90
+ * *\/
91
+ * // example id: to-stop-an-amazon-rekognition-custom-labels-model-1690561110698
92
+ * ```
93
+ *
78
94
  */
79
95
  export declare class StopProjectVersionCommand extends $Command<StopProjectVersionCommandInput, StopProjectVersionCommandOutput, RekognitionClientResolvedConfig> {
80
96
  readonly input: StopProjectVersionCommandInput;
@@ -100,6 +100,20 @@ export interface UpdateDatasetEntriesCommandOutput extends UpdateDatasetEntriesR
100
100
  * @throws {@link RekognitionServiceException}
101
101
  * <p>Base exception class for all service exceptions from Rekognition service.</p>
102
102
  *
103
+ * @example To-add dataset entries to an Amazon Rekognition Custom Labels dataset
104
+ * ```javascript
105
+ * // Adds dataset entries to an Amazon Rekognition Custom Labels dataset.
106
+ * const input = {
107
+ * "Changes": {
108
+ * "GroundTruth": "{\"source-ref\":\"s3://custom-labels-console-us-east-1-111111111/assets/flowers_1_test_dataset/mediterranean_spurge4.jpg\",\"mediterranean_spurge\":1,\"mediterranean_spurge-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/mediterranean_spurge\",\"class-name\":\"mediterranean_spurge\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:33:42.025Z\",\"type\":\"groundtruth/image-classification\"},\"with_leaves\":1,\"with_leaves-metadata\":{\"confidence\":1,\"job-name\":\"labeling-job/with_leaves\",\"class-name\":\"with_leaves\",\"human-annotated\":\"yes\",\"creation-date\":\"2021-07-11T03:33:42.025Z\",\"type\":\"groundtruth/image-classification\"}}"
109
+ * },
110
+ * "DatasetArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106"
111
+ * };
112
+ * const command = new UpdateDatasetEntriesCommand(input);
113
+ * await client.send(command);
114
+ * // example id: to-add-dataset-entries-to-an-amazon-rekognition-custom-labels-dataset-1690816977073
115
+ * ```
116
+ *
103
117
  */
104
118
  export declare class UpdateDatasetEntriesCommand extends $Command<UpdateDatasetEntriesCommandInput, UpdateDatasetEntriesCommandOutput, RekognitionClientResolvedConfig> {
105
119
  readonly input: UpdateDatasetEntriesCommandInput;
@@ -32,6 +32,7 @@ import {
32
32
  } from "@smithy/smithy-client";
33
33
  import {
34
34
  BodyLengthCalculator as __BodyLengthCalculator,
35
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
35
36
  ChecksumConstructor as __ChecksumConstructor,
36
37
  Decoder as __Decoder,
37
38
  Encoder as __Encoder,
@@ -539,6 +540,8 @@ export declare class RekognitionClient extends __Client<
539
540
  RekognitionClientResolvedConfig
540
541
  > {
541
542
  readonly config: RekognitionClientResolvedConfig;
542
- constructor(configuration: RekognitionClientConfig);
543
+ constructor(
544
+ ...[configuration]: __CheckOptionalClientConfig<RekognitionClientConfig>
545
+ );
543
546
  destroy(): void;
544
547
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rekognition",
3
3
  "description": "AWS SDK for JavaScript Rekognition Client for Node.js, Browser and React Native",
4
- "version": "3.386.0",
4
+ "version": "3.388.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,40 +21,40 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.386.0",
25
- "@aws-sdk/credential-provider-node": "3.386.0",
26
- "@aws-sdk/middleware-host-header": "3.379.1",
27
- "@aws-sdk/middleware-logger": "3.378.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.378.0",
29
- "@aws-sdk/middleware-signing": "3.379.1",
30
- "@aws-sdk/middleware-user-agent": "3.386.0",
31
- "@aws-sdk/types": "3.378.0",
32
- "@aws-sdk/util-endpoints": "3.386.0",
33
- "@aws-sdk/util-user-agent-browser": "3.378.0",
34
- "@aws-sdk/util-user-agent-node": "3.378.0",
35
- "@smithy/config-resolver": "^2.0.1",
36
- "@smithy/fetch-http-handler": "^2.0.1",
37
- "@smithy/hash-node": "^2.0.1",
38
- "@smithy/invalid-dependency": "^2.0.1",
39
- "@smithy/middleware-content-length": "^2.0.1",
40
- "@smithy/middleware-endpoint": "^2.0.1",
41
- "@smithy/middleware-retry": "^2.0.1",
42
- "@smithy/middleware-serde": "^2.0.1",
24
+ "@aws-sdk/client-sts": "3.388.0",
25
+ "@aws-sdk/credential-provider-node": "3.388.0",
26
+ "@aws-sdk/middleware-host-header": "3.387.0",
27
+ "@aws-sdk/middleware-logger": "3.387.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.387.0",
29
+ "@aws-sdk/middleware-signing": "3.387.0",
30
+ "@aws-sdk/middleware-user-agent": "3.387.0",
31
+ "@aws-sdk/types": "3.387.0",
32
+ "@aws-sdk/util-endpoints": "3.387.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.387.0",
34
+ "@aws-sdk/util-user-agent-node": "3.387.0",
35
+ "@smithy/config-resolver": "^2.0.2",
36
+ "@smithy/fetch-http-handler": "^2.0.2",
37
+ "@smithy/hash-node": "^2.0.2",
38
+ "@smithy/invalid-dependency": "^2.0.2",
39
+ "@smithy/middleware-content-length": "^2.0.2",
40
+ "@smithy/middleware-endpoint": "^2.0.2",
41
+ "@smithy/middleware-retry": "^2.0.2",
42
+ "@smithy/middleware-serde": "^2.0.2",
43
43
  "@smithy/middleware-stack": "^2.0.0",
44
- "@smithy/node-config-provider": "^2.0.1",
45
- "@smithy/node-http-handler": "^2.0.1",
46
- "@smithy/protocol-http": "^2.0.1",
47
- "@smithy/smithy-client": "^2.0.1",
48
- "@smithy/types": "^2.0.2",
49
- "@smithy/url-parser": "^2.0.1",
44
+ "@smithy/node-config-provider": "^2.0.2",
45
+ "@smithy/node-http-handler": "^2.0.2",
46
+ "@smithy/protocol-http": "^2.0.2",
47
+ "@smithy/smithy-client": "^2.0.2",
48
+ "@smithy/types": "^2.1.0",
49
+ "@smithy/url-parser": "^2.0.2",
50
50
  "@smithy/util-base64": "^2.0.0",
51
51
  "@smithy/util-body-length-browser": "^2.0.0",
52
52
  "@smithy/util-body-length-node": "^2.0.0",
53
- "@smithy/util-defaults-mode-browser": "^2.0.1",
54
- "@smithy/util-defaults-mode-node": "^2.0.1",
53
+ "@smithy/util-defaults-mode-browser": "^2.0.2",
54
+ "@smithy/util-defaults-mode-node": "^2.0.2",
55
55
  "@smithy/util-retry": "^2.0.0",
56
56
  "@smithy/util-utf8": "^2.0.0",
57
- "@smithy/util-waiter": "^2.0.1",
57
+ "@smithy/util-waiter": "^2.0.2",
58
58
  "tslib": "^2.5.0",
59
59
  "uuid": "^8.3.2"
60
60
  },