-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
229 lines (193 loc) · 8.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package sns
const (
// ErrCodeAuthorizationErrorException for service response error code
// "AuthorizationError".
//
// Indicates that the user has been denied access to the requested resource.
ErrCodeAuthorizationErrorException = "AuthorizationError"
// ErrCodeBatchEntryIdsNotDistinctException for service response error code
// "BatchEntryIdsNotDistinct".
//
// Two or more batch entries in the request have the same Id.
ErrCodeBatchEntryIdsNotDistinctException = "BatchEntryIdsNotDistinct"
// ErrCodeBatchRequestTooLongException for service response error code
// "BatchRequestTooLong".
//
// The length of all the batch messages put together is more than the limit.
ErrCodeBatchRequestTooLongException = "BatchRequestTooLong"
// ErrCodeConcurrentAccessException for service response error code
// "ConcurrentAccess".
//
// Can't perform multiple operations on a tag simultaneously. Perform the operations
// sequentially.
ErrCodeConcurrentAccessException = "ConcurrentAccess"
// ErrCodeEmptyBatchRequestException for service response error code
// "EmptyBatchRequest".
//
// The batch request doesn't contain any entries.
ErrCodeEmptyBatchRequestException = "EmptyBatchRequest"
// ErrCodeEndpointDisabledException for service response error code
// "EndpointDisabled".
//
// Exception error indicating endpoint disabled.
ErrCodeEndpointDisabledException = "EndpointDisabled"
// ErrCodeFilterPolicyLimitExceededException for service response error code
// "FilterPolicyLimitExceeded".
//
// Indicates that the number of filter polices in your Amazon Web Services account
// exceeds the limit. To add more filter polices, submit an Amazon SNS Limit
// Increase case in the Amazon Web Services Support Center.
ErrCodeFilterPolicyLimitExceededException = "FilterPolicyLimitExceeded"
// ErrCodeInternalErrorException for service response error code
// "InternalError".
//
// Indicates an internal service error.
ErrCodeInternalErrorException = "InternalError"
// ErrCodeInvalidBatchEntryIdException for service response error code
// "InvalidBatchEntryId".
//
// The Id of a batch entry in a batch request doesn't abide by the specification.
ErrCodeInvalidBatchEntryIdException = "InvalidBatchEntryId"
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameter".
//
// Indicates that a request parameter does not comply with the associated constraints.
ErrCodeInvalidParameterException = "InvalidParameter"
// ErrCodeInvalidParameterValueException for service response error code
// "ParameterValueInvalid".
//
// Indicates that a request parameter does not comply with the associated constraints.
ErrCodeInvalidParameterValueException = "ParameterValueInvalid"
// ErrCodeInvalidSecurityException for service response error code
// "InvalidSecurity".
//
// The credential signature isn't valid. You must use an HTTPS endpoint and
// sign your request using Signature Version 4.
ErrCodeInvalidSecurityException = "InvalidSecurity"
// ErrCodeInvalidStateException for service response error code
// "InvalidState".
//
// Indicates that the specified state is not a valid state for an event source.
ErrCodeInvalidStateException = "InvalidState"
// ErrCodeKMSAccessDeniedException for service response error code
// "KMSAccessDenied".
//
// The ciphertext references a key that doesn't exist or that you don't have
// access to.
ErrCodeKMSAccessDeniedException = "KMSAccessDenied"
// ErrCodeKMSDisabledException for service response error code
// "KMSDisabled".
//
// The request was rejected because the specified Amazon Web Services KMS key
// isn't enabled.
ErrCodeKMSDisabledException = "KMSDisabled"
// ErrCodeKMSInvalidStateException for service response error code
// "KMSInvalidState".
//
// The request was rejected because the state of the specified resource isn't
// valid for this request. For more information, see Key states of Amazon Web
// Services KMS keys (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html)
// in the Key Management Service Developer Guide.
ErrCodeKMSInvalidStateException = "KMSInvalidState"
// ErrCodeKMSNotFoundException for service response error code
// "KMSNotFound".
//
// The request was rejected because the specified entity or resource can't be
// found.
ErrCodeKMSNotFoundException = "KMSNotFound"
// ErrCodeKMSOptInRequired for service response error code
// "KMSOptInRequired".
//
// The Amazon Web Services access key ID needs a subscription for the service.
ErrCodeKMSOptInRequired = "KMSOptInRequired"
// ErrCodeKMSThrottlingException for service response error code
// "KMSThrottling".
//
// The request was denied due to request throttling. For more information about
// throttling, see Limits (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second)
// in the Key Management Service Developer Guide.
ErrCodeKMSThrottlingException = "KMSThrottling"
// ErrCodeNotFoundException for service response error code
// "NotFound".
//
// Indicates that the requested resource does not exist.
ErrCodeNotFoundException = "NotFound"
// ErrCodeOptedOutException for service response error code
// "OptedOut".
//
// Indicates that the specified phone number opted out of receiving SMS messages
// from your Amazon Web Services account. You can't send SMS messages to phone
// numbers that opt out.
ErrCodeOptedOutException = "OptedOut"
// ErrCodePlatformApplicationDisabledException for service response error code
// "PlatformApplicationDisabled".
//
// Exception error indicating platform application disabled.
ErrCodePlatformApplicationDisabledException = "PlatformApplicationDisabled"
// ErrCodeReplayLimitExceededException for service response error code
// "ReplayLimitExceeded".
//
// Indicates that the request parameter has exceeded the maximum number of concurrent
// message replays.
ErrCodeReplayLimitExceededException = "ReplayLimitExceeded"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFound".
//
// Can’t perform the action on the specified resource. Make sure that the
// resource exists.
ErrCodeResourceNotFoundException = "ResourceNotFound"
// ErrCodeStaleTagException for service response error code
// "StaleTag".
//
// A tag has been added to a resource with the same ARN as a deleted resource.
// Wait a short while and then retry the operation.
ErrCodeStaleTagException = "StaleTag"
// ErrCodeSubscriptionLimitExceededException for service response error code
// "SubscriptionLimitExceeded".
//
// Indicates that the customer already owns the maximum allowed number of subscriptions.
ErrCodeSubscriptionLimitExceededException = "SubscriptionLimitExceeded"
// ErrCodeTagLimitExceededException for service response error code
// "TagLimitExceeded".
//
// Can't add more than 50 tags to a topic.
ErrCodeTagLimitExceededException = "TagLimitExceeded"
// ErrCodeTagPolicyException for service response error code
// "TagPolicy".
//
// The request doesn't comply with the IAM tag policy. Correct your request
// and then retry it.
ErrCodeTagPolicyException = "TagPolicy"
// ErrCodeThrottledException for service response error code
// "Throttled".
//
// Indicates that the rate at which requests have been submitted for this action
// exceeds the limit for your Amazon Web Services account.
ErrCodeThrottledException = "Throttled"
// ErrCodeTooManyEntriesInBatchRequestException for service response error code
// "TooManyEntriesInBatchRequest".
//
// The batch request contains more entries than permissible.
ErrCodeTooManyEntriesInBatchRequestException = "TooManyEntriesInBatchRequest"
// ErrCodeTopicLimitExceededException for service response error code
// "TopicLimitExceeded".
//
// Indicates that the customer already owns the maximum allowed number of topics.
ErrCodeTopicLimitExceededException = "TopicLimitExceeded"
// ErrCodeUserErrorException for service response error code
// "UserError".
//
// Indicates that a request parameter does not comply with the associated constraints.
ErrCodeUserErrorException = "UserError"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// Indicates that a parameter in the request is invalid.
ErrCodeValidationException = "ValidationException"
// ErrCodeVerificationException for service response error code
// "VerificationException".
//
// Indicates that the one-time password (OTP) used for verification is invalid.
ErrCodeVerificationException = "VerificationException"
)