@aws-sdk/client-comprehend 3.933.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.
Files changed (45) hide show
  1. package/dist-cjs/index.js +281 -281
  2. package/dist-es/index.js +2 -1
  3. package/dist-es/models/enums.js +267 -0
  4. package/dist-es/models/errors.js +229 -0
  5. package/dist-es/models/models_0.js +1 -468
  6. package/dist-es/schemas/schemas_0.js +1 -1
  7. package/dist-types/commands/StopEntitiesDetectionJobCommand.d.ts +1 -1
  8. package/dist-types/commands/StopEventsDetectionJobCommand.d.ts +1 -1
  9. package/dist-types/commands/StopKeyPhrasesDetectionJobCommand.d.ts +1 -1
  10. package/dist-types/commands/StopPiiEntitiesDetectionJobCommand.d.ts +1 -1
  11. package/dist-types/commands/StopSentimentDetectionJobCommand.d.ts +1 -1
  12. package/dist-types/commands/StopTargetedSentimentDetectionJobCommand.d.ts +1 -1
  13. package/dist-types/commands/StopTrainingDocumentClassifierCommand.d.ts +1 -1
  14. package/dist-types/commands/StopTrainingEntityRecognizerCommand.d.ts +1 -1
  15. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  16. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  17. package/dist-types/commands/UpdateEndpointCommand.d.ts +1 -1
  18. package/dist-types/commands/UpdateFlywheelCommand.d.ts +1 -1
  19. package/dist-types/index.d.ts +3 -1
  20. package/dist-types/models/enums.d.ts +555 -0
  21. package/dist-types/models/errors.d.ts +230 -0
  22. package/dist-types/models/models_0.d.ts +352 -757
  23. package/dist-types/ts3.4/commands/StopEntitiesDetectionJobCommand.d.ts +1 -1
  24. package/dist-types/ts3.4/commands/StopEventsDetectionJobCommand.d.ts +1 -1
  25. package/dist-types/ts3.4/commands/StopKeyPhrasesDetectionJobCommand.d.ts +1 -1
  26. package/dist-types/ts3.4/commands/StopPiiEntitiesDetectionJobCommand.d.ts +1 -1
  27. package/dist-types/ts3.4/commands/StopSentimentDetectionJobCommand.d.ts +1 -1
  28. package/dist-types/ts3.4/commands/StopTargetedSentimentDetectionJobCommand.d.ts +1 -1
  29. package/dist-types/ts3.4/commands/StopTrainingDocumentClassifierCommand.d.ts +1 -1
  30. package/dist-types/ts3.4/commands/StopTrainingEntityRecognizerCommand.d.ts +1 -1
  31. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  32. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +1 -1
  34. package/dist-types/ts3.4/commands/UpdateFlywheelCommand.d.ts +1 -1
  35. package/dist-types/ts3.4/index.d.ts +3 -1
  36. package/dist-types/ts3.4/models/enums.d.ts +326 -0
  37. package/dist-types/ts3.4/models/errors.d.ts +140 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +121 -445
  39. package/package.json +12 -12
  40. package/dist-es/models/index.js +0 -2
  41. package/dist-es/models/models_1.js +0 -29
  42. package/dist-types/models/index.d.ts +0 -2
  43. package/dist-types/models/models_1.d.ts +0 -380
  44. package/dist-types/ts3.4/models/index.d.ts +0 -2
  45. package/dist-types/ts3.4/models/models_1.d.ts +0 -106
@@ -0,0 +1,230 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ComprehendServiceException as __BaseException } from "./ComprehendServiceException";
3
+ import { InvalidRequestReason } from "./enums";
4
+ import { InvalidRequestDetail } from "./models_0";
5
+ /**
6
+ * <p>The number of documents in the request exceeds the limit of 25. Try your request again
7
+ * with fewer documents.</p>
8
+ * @public
9
+ */
10
+ export declare class BatchSizeLimitExceededException extends __BaseException {
11
+ readonly name: "BatchSizeLimitExceededException";
12
+ readonly $fault: "client";
13
+ Message?: string | undefined;
14
+ /**
15
+ * @internal
16
+ */
17
+ constructor(opts: __ExceptionOptionType<BatchSizeLimitExceededException, __BaseException>);
18
+ }
19
+ /**
20
+ * <p>An internal server error occurred. Retry your request.</p>
21
+ * @public
22
+ */
23
+ export declare class InternalServerException extends __BaseException {
24
+ readonly name: "InternalServerException";
25
+ readonly $fault: "server";
26
+ Message?: string | undefined;
27
+ /**
28
+ * @internal
29
+ */
30
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
31
+ }
32
+ /**
33
+ * <p>The request is invalid.</p>
34
+ * @public
35
+ */
36
+ export declare class InvalidRequestException extends __BaseException {
37
+ readonly name: "InvalidRequestException";
38
+ readonly $fault: "client";
39
+ Message?: string | undefined;
40
+ Reason?: InvalidRequestReason | undefined;
41
+ /**
42
+ * <p>Provides additional detail about why the request failed.</p>
43
+ * @public
44
+ */
45
+ Detail?: InvalidRequestDetail | undefined;
46
+ /**
47
+ * @internal
48
+ */
49
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
50
+ }
51
+ /**
52
+ * <p>The size of the input text exceeds the limit. Use a smaller document.</p>
53
+ * @public
54
+ */
55
+ export declare class TextSizeLimitExceededException extends __BaseException {
56
+ readonly name: "TextSizeLimitExceededException";
57
+ readonly $fault: "client";
58
+ Message?: string | undefined;
59
+ /**
60
+ * @internal
61
+ */
62
+ constructor(opts: __ExceptionOptionType<TextSizeLimitExceededException, __BaseException>);
63
+ }
64
+ /**
65
+ * <p>Amazon Comprehend can't process the language of the input text. For a list of supported languages,
66
+ * <a href="https://docs.aws.amazon.com/comprehend/latest/dg/supported-languages.html">Supported languages</a> in the Comprehend Developer Guide.
67
+ * </p>
68
+ * @public
69
+ */
70
+ export declare class UnsupportedLanguageException extends __BaseException {
71
+ readonly name: "UnsupportedLanguageException";
72
+ readonly $fault: "client";
73
+ Message?: string | undefined;
74
+ /**
75
+ * @internal
76
+ */
77
+ constructor(opts: __ExceptionOptionType<UnsupportedLanguageException, __BaseException>);
78
+ }
79
+ /**
80
+ * <p>The specified resource is not available. Check the resource and try your request
81
+ * again.</p>
82
+ * @public
83
+ */
84
+ export declare class ResourceUnavailableException extends __BaseException {
85
+ readonly name: "ResourceUnavailableException";
86
+ readonly $fault: "client";
87
+ Message?: string | undefined;
88
+ /**
89
+ * @internal
90
+ */
91
+ constructor(opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>);
92
+ }
93
+ /**
94
+ * <p>The specified resource name is already in use. Use a different name and try your request
95
+ * again.</p>
96
+ * @public
97
+ */
98
+ export declare class ResourceInUseException extends __BaseException {
99
+ readonly name: "ResourceInUseException";
100
+ readonly $fault: "client";
101
+ Message?: string | undefined;
102
+ /**
103
+ * @internal
104
+ */
105
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
106
+ }
107
+ /**
108
+ * <p>The maximum number of resources per account has been exceeded. Review the resources, and
109
+ * then try your request again.</p>
110
+ * @public
111
+ */
112
+ export declare class ResourceLimitExceededException extends __BaseException {
113
+ readonly name: "ResourceLimitExceededException";
114
+ readonly $fault: "client";
115
+ Message?: string | undefined;
116
+ /**
117
+ * @internal
118
+ */
119
+ constructor(opts: __ExceptionOptionType<ResourceLimitExceededException, __BaseException>);
120
+ }
121
+ /**
122
+ * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
123
+ * @public
124
+ */
125
+ export declare class ResourceNotFoundException extends __BaseException {
126
+ readonly name: "ResourceNotFoundException";
127
+ readonly $fault: "client";
128
+ Message?: string | undefined;
129
+ /**
130
+ * @internal
131
+ */
132
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
133
+ }
134
+ /**
135
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
136
+ * @public
137
+ */
138
+ export declare class TooManyRequestsException extends __BaseException {
139
+ readonly name: "TooManyRequestsException";
140
+ readonly $fault: "client";
141
+ Message?: string | undefined;
142
+ /**
143
+ * @internal
144
+ */
145
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
146
+ }
147
+ /**
148
+ * <p>The request contains more tags than can be associated with a resource (50 tags per
149
+ * resource). The maximum number of tags includes both existing tags and those included in your
150
+ * current request. </p>
151
+ * @public
152
+ */
153
+ export declare class TooManyTagsException extends __BaseException {
154
+ readonly name: "TooManyTagsException";
155
+ readonly $fault: "client";
156
+ Message?: string | undefined;
157
+ /**
158
+ * @internal
159
+ */
160
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
161
+ }
162
+ /**
163
+ * <p>The KMS customer managed key (CMK) entered cannot be validated. Verify the key and
164
+ * re-enter it.</p>
165
+ * @public
166
+ */
167
+ export declare class KmsKeyValidationException extends __BaseException {
168
+ readonly name: "KmsKeyValidationException";
169
+ readonly $fault: "client";
170
+ Message?: string | undefined;
171
+ /**
172
+ * @internal
173
+ */
174
+ constructor(opts: __ExceptionOptionType<KmsKeyValidationException, __BaseException>);
175
+ }
176
+ /**
177
+ * <p>The specified job was not found. Check the job ID and try again.</p>
178
+ * @public
179
+ */
180
+ export declare class JobNotFoundException extends __BaseException {
181
+ readonly name: "JobNotFoundException";
182
+ readonly $fault: "client";
183
+ Message?: string | undefined;
184
+ /**
185
+ * @internal
186
+ */
187
+ constructor(opts: __ExceptionOptionType<JobNotFoundException, __BaseException>);
188
+ }
189
+ /**
190
+ * <p>The filter specified for the operation is invalid. Specify a different
191
+ * filter.</p>
192
+ * @public
193
+ */
194
+ export declare class InvalidFilterException extends __BaseException {
195
+ readonly name: "InvalidFilterException";
196
+ readonly $fault: "client";
197
+ Message?: string | undefined;
198
+ /**
199
+ * @internal
200
+ */
201
+ constructor(opts: __ExceptionOptionType<InvalidFilterException, __BaseException>);
202
+ }
203
+ /**
204
+ * <p>Concurrent modification of the tags associated with an Amazon Comprehend resource is not
205
+ * supported. </p>
206
+ * @public
207
+ */
208
+ export declare class ConcurrentModificationException extends __BaseException {
209
+ readonly name: "ConcurrentModificationException";
210
+ readonly $fault: "client";
211
+ Message?: string | undefined;
212
+ /**
213
+ * @internal
214
+ */
215
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
216
+ }
217
+ /**
218
+ * <p>The request contains more tag keys than can be associated with a resource (50 tag keys per
219
+ * resource).</p>
220
+ * @public
221
+ */
222
+ export declare class TooManyTagKeysException extends __BaseException {
223
+ readonly name: "TooManyTagKeysException";
224
+ readonly $fault: "client";
225
+ Message?: string | undefined;
226
+ /**
227
+ * @internal
228
+ */
229
+ constructor(opts: __ExceptionOptionType<TooManyTagKeysException, __BaseException>);
230
+ }