@aws-sdk/client-rekognition 3.52.0 → 3.53.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.
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { RekognitionServiceException } from "./models/RekognitionServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from Rekognition service.
4
+ */
5
+ export declare class RekognitionServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,17 +1,21 @@
1
- import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
+ import { RekognitionServiceException as __BaseException } from "./RekognitionServiceException";
3
3
  /**
4
4
  * <p>You are not authorized to perform the action.</p>
5
5
  */
6
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
7
- name: "AccessDeniedException";
8
- $fault: "client";
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
9
9
  Message?: string;
10
10
  Code?: string;
11
11
  /**
12
12
  * <p>A universally unique identifier (UUID) for the request.</p>
13
13
  */
14
14
  Logref?: string;
15
+ /**
16
+ * @internal
17
+ */
18
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
19
  }
16
20
  /**
17
21
  * <p>Structure containing the estimated age range, in years, for a face.</p>
@@ -1079,95 +1083,123 @@ export declare namespace CompareFacesResponse {
1079
1083
  * DetectProtectiveEquipment, the image size or resolution exceeds the allowed limit. For more information, see
1080
1084
  * Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. </p>
1081
1085
  */
1082
- export interface ImageTooLargeException extends __SmithyException, $MetadataBearer {
1083
- name: "ImageTooLargeException";
1084
- $fault: "client";
1086
+ export declare class ImageTooLargeException extends __BaseException {
1087
+ readonly name: "ImageTooLargeException";
1088
+ readonly $fault: "client";
1085
1089
  Message?: string;
1086
1090
  Code?: string;
1087
1091
  /**
1088
1092
  * <p>A universally unique identifier (UUID) for the request.</p>
1089
1093
  */
1090
1094
  Logref?: string;
1095
+ /**
1096
+ * @internal
1097
+ */
1098
+ constructor(opts: __ExceptionOptionType<ImageTooLargeException, __BaseException>);
1091
1099
  }
1092
1100
  /**
1093
1101
  * <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
1094
1102
  */
1095
- export interface InternalServerError extends __SmithyException, $MetadataBearer {
1096
- name: "InternalServerError";
1097
- $fault: "server";
1103
+ export declare class InternalServerError extends __BaseException {
1104
+ readonly name: "InternalServerError";
1105
+ readonly $fault: "server";
1098
1106
  Message?: string;
1099
1107
  Code?: string;
1100
1108
  /**
1101
1109
  * <p>A universally unique identifier (UUID) for the request.</p>
1102
1110
  */
1103
1111
  Logref?: string;
1112
+ /**
1113
+ * @internal
1114
+ */
1115
+ constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
1104
1116
  }
1105
1117
  /**
1106
1118
  * <p>The provided image format is not supported. </p>
1107
1119
  */
1108
- export interface InvalidImageFormatException extends __SmithyException, $MetadataBearer {
1109
- name: "InvalidImageFormatException";
1110
- $fault: "client";
1120
+ export declare class InvalidImageFormatException extends __BaseException {
1121
+ readonly name: "InvalidImageFormatException";
1122
+ readonly $fault: "client";
1111
1123
  Message?: string;
1112
1124
  Code?: string;
1113
1125
  /**
1114
1126
  * <p>A universally unique identifier (UUID) for the request.</p>
1115
1127
  */
1116
1128
  Logref?: string;
1129
+ /**
1130
+ * @internal
1131
+ */
1132
+ constructor(opts: __ExceptionOptionType<InvalidImageFormatException, __BaseException>);
1117
1133
  }
1118
1134
  /**
1119
1135
  * <p>Input parameter violated a constraint. Validate your parameter before calling the API
1120
1136
  * operation again.</p>
1121
1137
  */
1122
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
1123
- name: "InvalidParameterException";
1124
- $fault: "client";
1138
+ export declare class InvalidParameterException extends __BaseException {
1139
+ readonly name: "InvalidParameterException";
1140
+ readonly $fault: "client";
1125
1141
  Message?: string;
1126
1142
  Code?: string;
1127
1143
  /**
1128
1144
  * <p>A universally unique identifier (UUID) for the request.</p>
1129
1145
  */
1130
1146
  Logref?: string;
1147
+ /**
1148
+ * @internal
1149
+ */
1150
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
1131
1151
  }
1132
1152
  /**
1133
1153
  * <p>Amazon Rekognition is unable to access the S3 object specified in the request.</p>
1134
1154
  */
1135
- export interface InvalidS3ObjectException extends __SmithyException, $MetadataBearer {
1136
- name: "InvalidS3ObjectException";
1137
- $fault: "client";
1155
+ export declare class InvalidS3ObjectException extends __BaseException {
1156
+ readonly name: "InvalidS3ObjectException";
1157
+ readonly $fault: "client";
1138
1158
  Message?: string;
1139
1159
  Code?: string;
1140
1160
  /**
1141
1161
  * <p>A universally unique identifier (UUID) for the request.</p>
1142
1162
  */
1143
1163
  Logref?: string;
1164
+ /**
1165
+ * @internal
1166
+ */
1167
+ constructor(opts: __ExceptionOptionType<InvalidS3ObjectException, __BaseException>);
1144
1168
  }
1145
1169
  /**
1146
1170
  * <p>The number of requests exceeded your throughput limit. If you want to increase this
1147
1171
  * limit, contact Amazon Rekognition.</p>
1148
1172
  */
1149
- export interface ProvisionedThroughputExceededException extends __SmithyException, $MetadataBearer {
1150
- name: "ProvisionedThroughputExceededException";
1151
- $fault: "client";
1173
+ export declare class ProvisionedThroughputExceededException extends __BaseException {
1174
+ readonly name: "ProvisionedThroughputExceededException";
1175
+ readonly $fault: "client";
1152
1176
  Message?: string;
1153
1177
  Code?: string;
1154
1178
  /**
1155
1179
  * <p>A universally unique identifier (UUID) for the request.</p>
1156
1180
  */
1157
1181
  Logref?: string;
1182
+ /**
1183
+ * @internal
1184
+ */
1185
+ constructor(opts: __ExceptionOptionType<ProvisionedThroughputExceededException, __BaseException>);
1158
1186
  }
1159
1187
  /**
1160
1188
  * <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
1161
1189
  */
1162
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
1163
- name: "ThrottlingException";
1164
- $fault: "server";
1190
+ export declare class ThrottlingException extends __BaseException {
1191
+ readonly name: "ThrottlingException";
1192
+ readonly $fault: "server";
1165
1193
  Message?: string;
1166
1194
  Code?: string;
1167
1195
  /**
1168
1196
  * <p>A universally unique identifier (UUID) for the request.</p>
1169
1197
  */
1170
1198
  Logref?: string;
1199
+ /**
1200
+ * @internal
1201
+ */
1202
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
1171
1203
  }
1172
1204
  export declare enum ContentClassifier {
1173
1205
  FREE_OF_ADULT_CONTENT = "FreeOfAdultContent",
@@ -1270,15 +1302,19 @@ export declare namespace CreateCollectionResponse {
1270
1302
  /**
1271
1303
  * <p>A resource with the specified ID already exists.</p>
1272
1304
  */
1273
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
1274
- name: "ResourceAlreadyExistsException";
1275
- $fault: "client";
1305
+ export declare class ResourceAlreadyExistsException extends __BaseException {
1306
+ readonly name: "ResourceAlreadyExistsException";
1307
+ readonly $fault: "client";
1276
1308
  Message?: string;
1277
1309
  Code?: string;
1278
1310
  /**
1279
1311
  * <p>A universally unique identifier (UUID) for the request.</p>
1280
1312
  */
1281
1313
  Logref?: string;
1314
+ /**
1315
+ * @internal
1316
+ */
1317
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
1282
1318
  }
1283
1319
  /**
1284
1320
  * <p></p>
@@ -1287,15 +1323,19 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
1287
1323
  * <p>The size of the collection exceeds the allowed limit. For more information, see
1288
1324
  * Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. </p>
1289
1325
  */
1290
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
1291
- name: "ServiceQuotaExceededException";
1292
- $fault: "client";
1326
+ export declare class ServiceQuotaExceededException extends __BaseException {
1327
+ readonly name: "ServiceQuotaExceededException";
1328
+ readonly $fault: "client";
1293
1329
  Message?: string;
1294
1330
  Code?: string;
1295
1331
  /**
1296
1332
  * <p>A universally unique identifier (UUID) for the request.</p>
1297
1333
  */
1298
1334
  Logref?: string;
1335
+ /**
1336
+ * @internal
1337
+ */
1338
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
1299
1339
  }
1300
1340
  /**
1301
1341
  * <p>
@@ -1381,28 +1421,36 @@ export declare namespace CreateDatasetResponse {
1381
1421
  * (<code>StartLabelDetection</code>, for example) will raise a <code>LimitExceededException</code> exception (HTTP status code: 400) until
1382
1422
  * the number of concurrently running jobs is below the Amazon Rekognition service limit. </p>
1383
1423
  */
1384
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
1385
- name: "LimitExceededException";
1386
- $fault: "client";
1424
+ export declare class LimitExceededException extends __BaseException {
1425
+ readonly name: "LimitExceededException";
1426
+ readonly $fault: "client";
1387
1427
  Message?: string;
1388
1428
  Code?: string;
1389
1429
  /**
1390
1430
  * <p>A universally unique identifier (UUID) for the request.</p>
1391
1431
  */
1392
1432
  Logref?: string;
1433
+ /**
1434
+ * @internal
1435
+ */
1436
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
1393
1437
  }
1394
1438
  /**
1395
1439
  * <p>The resource specified in the request cannot be found.</p>
1396
1440
  */
1397
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
1398
- name: "ResourceNotFoundException";
1399
- $fault: "client";
1441
+ export declare class ResourceNotFoundException extends __BaseException {
1442
+ readonly name: "ResourceNotFoundException";
1443
+ readonly $fault: "client";
1400
1444
  Message?: string;
1401
1445
  Code?: string;
1402
1446
  /**
1403
1447
  * <p>A universally unique identifier (UUID) for the request.</p>
1404
1448
  */
1405
1449
  Logref?: string;
1450
+ /**
1451
+ * @internal
1452
+ */
1453
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
1406
1454
  }
1407
1455
  export interface CreateProjectRequest {
1408
1456
  /**
@@ -1432,15 +1480,19 @@ export declare namespace CreateProjectResponse {
1432
1480
  /**
1433
1481
  * <p>The specified resource is already being used.</p>
1434
1482
  */
1435
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
1436
- name: "ResourceInUseException";
1437
- $fault: "client";
1483
+ export declare class ResourceInUseException extends __BaseException {
1484
+ readonly name: "ResourceInUseException";
1485
+ readonly $fault: "client";
1438
1486
  Message?: string;
1439
1487
  Code?: string;
1440
1488
  /**
1441
1489
  * <p>A universally unique identifier (UUID) for the request.</p>
1442
1490
  */
1443
1491
  Logref?: string;
1492
+ /**
1493
+ * @internal
1494
+ */
1495
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
1444
1496
  }
1445
1497
  /**
1446
1498
  * <p>The S3 bucket and folder location where training output is placed.</p>
@@ -2342,15 +2394,19 @@ export declare namespace DescribeProjectsResponse {
2342
2394
  /**
2343
2395
  * <p>Pagination token in the request is not valid.</p>
2344
2396
  */
2345
- export interface InvalidPaginationTokenException extends __SmithyException, $MetadataBearer {
2346
- name: "InvalidPaginationTokenException";
2347
- $fault: "client";
2397
+ export declare class InvalidPaginationTokenException extends __BaseException {
2398
+ readonly name: "InvalidPaginationTokenException";
2399
+ readonly $fault: "client";
2348
2400
  Message?: string;
2349
2401
  Code?: string;
2350
2402
  /**
2351
2403
  * <p>A universally unique identifier (UUID) for the request.</p>
2352
2404
  */
2353
2405
  Logref?: string;
2406
+ /**
2407
+ * @internal
2408
+ */
2409
+ constructor(opts: __ExceptionOptionType<InvalidPaginationTokenException, __BaseException>);
2354
2410
  }
2355
2411
  export interface DescribeProjectVersionsRequest {
2356
2412
  /**
@@ -2729,15 +2785,19 @@ export declare namespace DetectCustomLabelsResponse {
2729
2785
  * this exception occurs when you call <code>DetectCustomLabels</code> with a
2730
2786
  * model version that isn't deployed. </p>
2731
2787
  */
2732
- export interface ResourceNotReadyException extends __SmithyException, $MetadataBearer {
2733
- name: "ResourceNotReadyException";
2734
- $fault: "client";
2788
+ export declare class ResourceNotReadyException extends __BaseException {
2789
+ readonly name: "ResourceNotReadyException";
2790
+ readonly $fault: "client";
2735
2791
  Message?: string;
2736
2792
  Code?: string;
2737
2793
  /**
2738
2794
  * <p>A universally unique identifier (UUID) for the request.</p>
2739
2795
  */
2740
2796
  Logref?: string;
2797
+ /**
2798
+ * @internal
2799
+ */
2800
+ constructor(opts: __ExceptionOptionType<ResourceNotReadyException, __BaseException>);
2741
2801
  }
2742
2802
  export interface DetectFacesRequest {
2743
2803
  /**
@@ -3062,9 +3122,9 @@ export declare namespace DetectModerationLabelsResponse {
3062
3122
  /**
3063
3123
  * <p>The number of in-progress human reviews you have has exceeded the number allowed.</p>
3064
3124
  */
3065
- export interface HumanLoopQuotaExceededException extends __SmithyException, $MetadataBearer {
3066
- name: "HumanLoopQuotaExceededException";
3067
- $fault: "client";
3125
+ export declare class HumanLoopQuotaExceededException extends __BaseException {
3126
+ readonly name: "HumanLoopQuotaExceededException";
3127
+ readonly $fault: "client";
3068
3128
  /**
3069
3129
  * <p>The resource type.</p>
3070
3130
  */
@@ -3083,6 +3143,10 @@ export interface HumanLoopQuotaExceededException extends __SmithyException, $Met
3083
3143
  * <p>A universally unique identifier (UUID) for the request.</p>
3084
3144
  */
3085
3145
  Logref?: string;
3146
+ /**
3147
+ * @internal
3148
+ */
3149
+ constructor(opts: __ExceptionOptionType<HumanLoopQuotaExceededException, __BaseException>);
3086
3150
  }
3087
3151
  /**
3088
3152
  * <p>Specifies summary attributes to return from a call to <a>DetectProtectiveEquipment</a>.
@@ -4363,15 +4427,19 @@ export declare namespace GetTextDetectionResponse {
4363
4427
  * <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input
4364
4428
  * parameters is different from the previous call to the operation.</p>
4365
4429
  */
4366
- export interface IdempotentParameterMismatchException extends __SmithyException, $MetadataBearer {
4367
- name: "IdempotentParameterMismatchException";
4368
- $fault: "client";
4430
+ export declare class IdempotentParameterMismatchException extends __BaseException {
4431
+ readonly name: "IdempotentParameterMismatchException";
4432
+ readonly $fault: "client";
4369
4433
  Message?: string;
4370
4434
  Code?: string;
4371
4435
  /**
4372
4436
  * <p>A universally unique identifier (UUID) for the request.</p>
4373
4437
  */
4374
4438
  Logref?: string;
4439
+ /**
4440
+ * @internal
4441
+ */
4442
+ constructor(opts: __ExceptionOptionType<IdempotentParameterMismatchException, __BaseException>);
4375
4443
  }
4376
4444
  export interface IndexFacesRequest {
4377
4445
  /**
@@ -5097,15 +5165,19 @@ export declare namespace StartCelebrityRecognitionResponse {
5097
5165
  * <p>The file size or duration of the supplied media is too large. The maximum file size is 10GB.
5098
5166
  * The maximum duration is 6 hours. </p>
5099
5167
  */
5100
- export interface VideoTooLargeException extends __SmithyException, $MetadataBearer {
5101
- name: "VideoTooLargeException";
5102
- $fault: "client";
5168
+ export declare class VideoTooLargeException extends __BaseException {
5169
+ readonly name: "VideoTooLargeException";
5170
+ readonly $fault: "client";
5103
5171
  Message?: string;
5104
5172
  Code?: string;
5105
5173
  /**
5106
5174
  * <p>A universally unique identifier (UUID) for the request.</p>
5107
5175
  */
5108
5176
  Logref?: string;
5177
+ /**
5178
+ * @internal
5179
+ */
5180
+ constructor(opts: __ExceptionOptionType<VideoTooLargeException, __BaseException>);
5109
5181
  }
5110
5182
  export interface StartContentModerationRequest {
5111
5183
  /**
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { RekognitionServiceException } from "./models/RekognitionServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class RekognitionServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }