/
errors.go
116 lines (98 loc) · 4.53 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package comprehend
const (
// ErrCodeBatchSizeLimitExceededException for service response error code
// "BatchSizeLimitExceededException".
//
// The number of documents in the request exceeds the limit of 25. Try your
// request again with fewer documents.
ErrCodeBatchSizeLimitExceededException = "BatchSizeLimitExceededException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// Concurrent modification of the tags associated with an Amazon Comprehend
// resource is not supported.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeInternalServerException for service response error code
// "InternalServerException".
//
// An internal server error occurred. Retry your request.
ErrCodeInternalServerException = "InternalServerException"
// ErrCodeInvalidFilterException for service response error code
// "InvalidFilterException".
//
// The filter specified for the ListDocumentClassificationJobs operation is
// invalid. Specify a different filter.
ErrCodeInvalidFilterException = "InvalidFilterException"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// The request is invalid.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeJobNotFoundException for service response error code
// "JobNotFoundException".
//
// The specified job was not found. Check the job ID and try again.
ErrCodeJobNotFoundException = "JobNotFoundException"
// ErrCodeKmsKeyValidationException for service response error code
// "KmsKeyValidationException".
//
// The KMS customer managed key (CMK) entered cannot be validated. Verify the
// key and re-enter it.
ErrCodeKmsKeyValidationException = "KmsKeyValidationException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The specified name is already in use. Use a different name and try your request
// again.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceLimitExceededException for service response error code
// "ResourceLimitExceededException".
//
// The maximum number of recognizers per account has been exceeded. Review the
// recognizers, perform cleanup, and then try your request again.
ErrCodeResourceLimitExceededException = "ResourceLimitExceededException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified resource ARN was not found. Check the ARN and try your request
// again.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeResourceUnavailableException for service response error code
// "ResourceUnavailableException".
//
// The specified resource is not available. Check to see if the resource is
// in the TRAINED state and try your request again.
ErrCodeResourceUnavailableException = "ResourceUnavailableException"
// ErrCodeTextSizeLimitExceededException for service response error code
// "TextSizeLimitExceededException".
//
// The size of the input text exceeds the limit. Use a smaller document.
ErrCodeTextSizeLimitExceededException = "TextSizeLimitExceededException"
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
//
// The number of requests exceeds the limit. Resubmit your request later.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
// ErrCodeTooManyTagKeysException for service response error code
// "TooManyTagKeysException".
//
// The request contains more tag keys than can be associated with a resource
// (50 tag keys per resource).
ErrCodeTooManyTagKeysException = "TooManyTagKeysException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// The request contains more tags than can be associated with a resource (50
// tags per resource). The maximum number of tags includes both existing tags
// and those included in your current request.
ErrCodeTooManyTagsException = "TooManyTagsException"
// ErrCodeUnsupportedLanguageException for service response error code
// "UnsupportedLanguageException".
//
// Amazon Comprehend can't process the language of the input text. For all custom
// entity recognition APIs (such as CreateEntityRecognizer), only English is
// accepted. For most other APIs, Amazon Comprehend accepts only English or
// Spanish text.
ErrCodeUnsupportedLanguageException = "UnsupportedLanguageException"
)