@aws-sdk/client-textract 3.934.0 → 3.935.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.
@@ -0,0 +1,289 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { TextractServiceException as __BaseException } from "./TextractServiceException";
3
+ /**
4
+ * <p>You aren't authorized to perform the action. Use the Amazon Resource Name (ARN)
5
+ * of an authorized user or IAM role to perform the operation.</p>
6
+ * @public
7
+ */
8
+ export declare class AccessDeniedException extends __BaseException {
9
+ readonly name: "AccessDeniedException";
10
+ readonly $fault: "client";
11
+ Message?: string | undefined;
12
+ Code?: string | undefined;
13
+ /**
14
+ * @internal
15
+ */
16
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
17
+ }
18
+ /**
19
+ * <p>Amazon Textract isn't able to read the document. For more information on the document
20
+ * limits in Amazon Textract, see <a>limits</a>.</p>
21
+ * @public
22
+ */
23
+ export declare class BadDocumentException extends __BaseException {
24
+ readonly name: "BadDocumentException";
25
+ readonly $fault: "client";
26
+ Message?: string | undefined;
27
+ Code?: string | undefined;
28
+ /**
29
+ * @internal
30
+ */
31
+ constructor(opts: __ExceptionOptionType<BadDocumentException, __BaseException>);
32
+ }
33
+ /**
34
+ * <p>The document can't be processed because it's too large. The maximum document size for
35
+ * synchronous operations 10 MB. The maximum document size for asynchronous operations is 500
36
+ * MB for PDF files.</p>
37
+ * @public
38
+ */
39
+ export declare class DocumentTooLargeException extends __BaseException {
40
+ readonly name: "DocumentTooLargeException";
41
+ readonly $fault: "client";
42
+ Message?: string | undefined;
43
+ Code?: string | undefined;
44
+ /**
45
+ * @internal
46
+ */
47
+ constructor(opts: __ExceptionOptionType<DocumentTooLargeException, __BaseException>);
48
+ }
49
+ /**
50
+ * <p>Indicates you have exceeded the maximum number of active human in the loop workflows available</p>
51
+ * @public
52
+ */
53
+ export declare class HumanLoopQuotaExceededException extends __BaseException {
54
+ readonly name: "HumanLoopQuotaExceededException";
55
+ readonly $fault: "client";
56
+ /**
57
+ * <p>The resource type.</p>
58
+ * @public
59
+ */
60
+ ResourceType?: string | undefined;
61
+ /**
62
+ * <p>The quota code.</p>
63
+ * @public
64
+ */
65
+ QuotaCode?: string | undefined;
66
+ /**
67
+ * <p>The service code.</p>
68
+ * @public
69
+ */
70
+ ServiceCode?: string | undefined;
71
+ Message?: string | undefined;
72
+ Code?: string | undefined;
73
+ /**
74
+ * @internal
75
+ */
76
+ constructor(opts: __ExceptionOptionType<HumanLoopQuotaExceededException, __BaseException>);
77
+ }
78
+ /**
79
+ * <p>Amazon Textract experienced a service issue. Try your call again.</p>
80
+ * @public
81
+ */
82
+ export declare class InternalServerError extends __BaseException {
83
+ readonly name: "InternalServerError";
84
+ readonly $fault: "server";
85
+ Message?: string | undefined;
86
+ Code?: string | undefined;
87
+ /**
88
+ * @internal
89
+ */
90
+ constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
91
+ }
92
+ /**
93
+ * <p>An input parameter violated a constraint. For example, in synchronous operations,
94
+ * an <code>InvalidParameterException</code> exception occurs
95
+ * when neither of the <code>S3Object</code> or <code>Bytes</code> values are supplied in the <code>Document</code>
96
+ * request parameter.
97
+ * Validate your parameter before calling the API operation again.</p>
98
+ * @public
99
+ */
100
+ export declare class InvalidParameterException extends __BaseException {
101
+ readonly name: "InvalidParameterException";
102
+ readonly $fault: "client";
103
+ Message?: string | undefined;
104
+ Code?: string | undefined;
105
+ /**
106
+ * @internal
107
+ */
108
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
109
+ }
110
+ /**
111
+ * <p>Amazon Textract is unable to access the S3 object that's specified in the request.
112
+ * for more information, <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html">Configure Access to Amazon S3</a>
113
+ * For troubleshooting information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html">Troubleshooting Amazon S3</a>
114
+ * </p>
115
+ * @public
116
+ */
117
+ export declare class InvalidS3ObjectException extends __BaseException {
118
+ readonly name: "InvalidS3ObjectException";
119
+ readonly $fault: "client";
120
+ Message?: string | undefined;
121
+ Code?: string | undefined;
122
+ /**
123
+ * @internal
124
+ */
125
+ constructor(opts: __ExceptionOptionType<InvalidS3ObjectException, __BaseException>);
126
+ }
127
+ /**
128
+ * <p>The number of requests exceeded your throughput limit. If you want to increase this limit,
129
+ * contact Amazon Textract.</p>
130
+ * @public
131
+ */
132
+ export declare class ProvisionedThroughputExceededException extends __BaseException {
133
+ readonly name: "ProvisionedThroughputExceededException";
134
+ readonly $fault: "client";
135
+ Message?: string | undefined;
136
+ Code?: string | undefined;
137
+ /**
138
+ * @internal
139
+ */
140
+ constructor(opts: __ExceptionOptionType<ProvisionedThroughputExceededException, __BaseException>);
141
+ }
142
+ /**
143
+ * <p>Amazon Textract is temporarily unable to process the request. Try your call again.</p>
144
+ * @public
145
+ */
146
+ export declare class ThrottlingException extends __BaseException {
147
+ readonly name: "ThrottlingException";
148
+ readonly $fault: "server";
149
+ Message?: string | undefined;
150
+ Code?: string | undefined;
151
+ /**
152
+ * @internal
153
+ */
154
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
155
+ }
156
+ /**
157
+ * <p>The format of the input document isn't supported. Documents for operations can be in
158
+ * PNG, JPEG, PDF, or TIFF format.</p>
159
+ * @public
160
+ */
161
+ export declare class UnsupportedDocumentException extends __BaseException {
162
+ readonly name: "UnsupportedDocumentException";
163
+ readonly $fault: "client";
164
+ Message?: string | undefined;
165
+ Code?: string | undefined;
166
+ /**
167
+ * @internal
168
+ */
169
+ constructor(opts: __ExceptionOptionType<UnsupportedDocumentException, __BaseException>);
170
+ }
171
+ /**
172
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
173
+ * @public
174
+ */
175
+ export declare class ConflictException extends __BaseException {
176
+ readonly name: "ConflictException";
177
+ readonly $fault: "client";
178
+ Message?: string | undefined;
179
+ Code?: string | undefined;
180
+ /**
181
+ * @internal
182
+ */
183
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
184
+ }
185
+ /**
186
+ * <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at
187
+ * least one of the other input parameters is different from the previous call to the
188
+ * operation. </p>
189
+ * @public
190
+ */
191
+ export declare class IdempotentParameterMismatchException extends __BaseException {
192
+ readonly name: "IdempotentParameterMismatchException";
193
+ readonly $fault: "client";
194
+ Message?: string | undefined;
195
+ Code?: string | undefined;
196
+ /**
197
+ * @internal
198
+ */
199
+ constructor(opts: __ExceptionOptionType<IdempotentParameterMismatchException, __BaseException>);
200
+ }
201
+ /**
202
+ * <p>An Amazon Textract service limit was exceeded. For example, if you start too many
203
+ * asynchronous jobs concurrently, calls to start operations
204
+ * (<code>StartDocumentTextDetection</code>, for example) raise a LimitExceededException
205
+ * exception (HTTP status code: 400) until the number of concurrently running jobs is below
206
+ * the Amazon Textract service limit. </p>
207
+ * @public
208
+ */
209
+ export declare class LimitExceededException extends __BaseException {
210
+ readonly name: "LimitExceededException";
211
+ readonly $fault: "client";
212
+ Message?: string | undefined;
213
+ Code?: string | undefined;
214
+ /**
215
+ * @internal
216
+ */
217
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
218
+ }
219
+ /**
220
+ * <p>Returned when a request cannot be completed as it would exceed a maximum service quota.</p>
221
+ * @public
222
+ */
223
+ export declare class ServiceQuotaExceededException extends __BaseException {
224
+ readonly name: "ServiceQuotaExceededException";
225
+ readonly $fault: "client";
226
+ Message?: string | undefined;
227
+ Code?: string | undefined;
228
+ /**
229
+ * @internal
230
+ */
231
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
232
+ }
233
+ /**
234
+ * <p> Indicates that a request was not valid. Check request for proper formatting. </p>
235
+ * @public
236
+ */
237
+ export declare class ValidationException extends __BaseException {
238
+ readonly name: "ValidationException";
239
+ readonly $fault: "client";
240
+ Message?: string | undefined;
241
+ Code?: string | undefined;
242
+ /**
243
+ * @internal
244
+ */
245
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
246
+ }
247
+ /**
248
+ * <p> Indicates you do not have decrypt permissions with the KMS key entered, or the KMS key
249
+ * was entered incorrectly. </p>
250
+ * @public
251
+ */
252
+ export declare class InvalidKMSKeyException extends __BaseException {
253
+ readonly name: "InvalidKMSKeyException";
254
+ readonly $fault: "client";
255
+ Message?: string | undefined;
256
+ Code?: string | undefined;
257
+ /**
258
+ * @internal
259
+ */
260
+ constructor(opts: __ExceptionOptionType<InvalidKMSKeyException, __BaseException>);
261
+ }
262
+ /**
263
+ * <p> Returned when an operation tried to access a nonexistent resource. </p>
264
+ * @public
265
+ */
266
+ export declare class ResourceNotFoundException extends __BaseException {
267
+ readonly name: "ResourceNotFoundException";
268
+ readonly $fault: "client";
269
+ Message?: string | undefined;
270
+ Code?: string | undefined;
271
+ /**
272
+ * @internal
273
+ */
274
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
275
+ }
276
+ /**
277
+ * <p>An invalid job identifier was passed to an asynchronous analysis operation.</p>
278
+ * @public
279
+ */
280
+ export declare class InvalidJobIdException extends __BaseException {
281
+ readonly name: "InvalidJobIdException";
282
+ readonly $fault: "client";
283
+ Message?: string | undefined;
284
+ Code?: string | undefined;
285
+ /**
286
+ * @internal
287
+ */
288
+ constructor(opts: __ExceptionOptionType<InvalidJobIdException, __BaseException>);
289
+ }