1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package types
4
5import (
6	"fmt"
7	smithy "github.com/aws/smithy-go"
8)
9
10// Indicates that the user has been denied access to the requested resource.
11type AuthorizationErrorException struct {
12	Message *string
13
14	noSmithyDocumentSerde
15}
16
17func (e *AuthorizationErrorException) Error() string {
18	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
19}
20func (e *AuthorizationErrorException) ErrorMessage() string {
21	if e.Message == nil {
22		return ""
23	}
24	return *e.Message
25}
26func (e *AuthorizationErrorException) ErrorCode() string             { return "AuthorizationError" }
27func (e *AuthorizationErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
28
29// Can't perform multiple operations on a tag simultaneously. Perform the
30// operations sequentially.
31type ConcurrentAccessException struct {
32	Message *string
33
34	noSmithyDocumentSerde
35}
36
37func (e *ConcurrentAccessException) Error() string {
38	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
39}
40func (e *ConcurrentAccessException) ErrorMessage() string {
41	if e.Message == nil {
42		return ""
43	}
44	return *e.Message
45}
46func (e *ConcurrentAccessException) ErrorCode() string             { return "ConcurrentAccess" }
47func (e *ConcurrentAccessException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
48
49// Exception error indicating endpoint disabled.
50type EndpointDisabledException struct {
51	Message *string
52
53	noSmithyDocumentSerde
54}
55
56func (e *EndpointDisabledException) Error() string {
57	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
58}
59func (e *EndpointDisabledException) ErrorMessage() string {
60	if e.Message == nil {
61		return ""
62	}
63	return *e.Message
64}
65func (e *EndpointDisabledException) ErrorCode() string             { return "EndpointDisabled" }
66func (e *EndpointDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
67
68// Indicates that the number of filter polices in your account exceeds the limit.
69// To add more filter polices, submit an SNS Limit Increase case in the Amazon Web
70// Services Support Center.
71type FilterPolicyLimitExceededException struct {
72	Message *string
73
74	noSmithyDocumentSerde
75}
76
77func (e *FilterPolicyLimitExceededException) Error() string {
78	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
79}
80func (e *FilterPolicyLimitExceededException) ErrorMessage() string {
81	if e.Message == nil {
82		return ""
83	}
84	return *e.Message
85}
86func (e *FilterPolicyLimitExceededException) ErrorCode() string { return "FilterPolicyLimitExceeded" }
87func (e *FilterPolicyLimitExceededException) ErrorFault() smithy.ErrorFault {
88	return smithy.FaultClient
89}
90
91// Indicates an internal service error.
92type InternalErrorException struct {
93	Message *string
94
95	noSmithyDocumentSerde
96}
97
98func (e *InternalErrorException) Error() string {
99	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
100}
101func (e *InternalErrorException) ErrorMessage() string {
102	if e.Message == nil {
103		return ""
104	}
105	return *e.Message
106}
107func (e *InternalErrorException) ErrorCode() string             { return "InternalError" }
108func (e *InternalErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
109
110// Indicates that a request parameter does not comply with the associated
111// constraints.
112type InvalidParameterException struct {
113	Message *string
114
115	noSmithyDocumentSerde
116}
117
118func (e *InvalidParameterException) Error() string {
119	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
120}
121func (e *InvalidParameterException) ErrorMessage() string {
122	if e.Message == nil {
123		return ""
124	}
125	return *e.Message
126}
127func (e *InvalidParameterException) ErrorCode() string             { return "InvalidParameter" }
128func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
129
130// Indicates that a request parameter does not comply with the associated
131// constraints.
132type InvalidParameterValueException struct {
133	Message *string
134
135	noSmithyDocumentSerde
136}
137
138func (e *InvalidParameterValueException) Error() string {
139	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
140}
141func (e *InvalidParameterValueException) ErrorMessage() string {
142	if e.Message == nil {
143		return ""
144	}
145	return *e.Message
146}
147func (e *InvalidParameterValueException) ErrorCode() string             { return "ParameterValueInvalid" }
148func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
149
150// The credential signature isn't valid. You must use an HTTPS endpoint and sign
151// your request using Signature Version 4.
152type InvalidSecurityException struct {
153	Message *string
154
155	noSmithyDocumentSerde
156}
157
158func (e *InvalidSecurityException) Error() string {
159	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
160}
161func (e *InvalidSecurityException) ErrorMessage() string {
162	if e.Message == nil {
163		return ""
164	}
165	return *e.Message
166}
167func (e *InvalidSecurityException) ErrorCode() string             { return "InvalidSecurity" }
168func (e *InvalidSecurityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
169
170// The ciphertext references a key that doesn't exist or that you don't have access
171// to.
172type KMSAccessDeniedException struct {
173	Message *string
174
175	noSmithyDocumentSerde
176}
177
178func (e *KMSAccessDeniedException) Error() string {
179	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
180}
181func (e *KMSAccessDeniedException) ErrorMessage() string {
182	if e.Message == nil {
183		return ""
184	}
185	return *e.Message
186}
187func (e *KMSAccessDeniedException) ErrorCode() string             { return "KMSAccessDenied" }
188func (e *KMSAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
189
190// The request was rejected because the specified customer master key (CMK) isn't
191// enabled.
192type KMSDisabledException struct {
193	Message *string
194
195	noSmithyDocumentSerde
196}
197
198func (e *KMSDisabledException) Error() string {
199	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
200}
201func (e *KMSDisabledException) ErrorMessage() string {
202	if e.Message == nil {
203		return ""
204	}
205	return *e.Message
206}
207func (e *KMSDisabledException) ErrorCode() string             { return "KMSDisabled" }
208func (e *KMSDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
209
210// The request was rejected because the state of the specified resource isn't valid
211// for this request. For more information, see How Key State Affects Use of a
212// Customer Master Key
213// (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the
214// Key Management Service Developer Guide.
215type KMSInvalidStateException struct {
216	Message *string
217
218	noSmithyDocumentSerde
219}
220
221func (e *KMSInvalidStateException) Error() string {
222	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
223}
224func (e *KMSInvalidStateException) ErrorMessage() string {
225	if e.Message == nil {
226		return ""
227	}
228	return *e.Message
229}
230func (e *KMSInvalidStateException) ErrorCode() string             { return "KMSInvalidState" }
231func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
232
233// The request was rejected because the specified entity or resource can't be
234// found.
235type KMSNotFoundException struct {
236	Message *string
237
238	noSmithyDocumentSerde
239}
240
241func (e *KMSNotFoundException) Error() string {
242	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
243}
244func (e *KMSNotFoundException) ErrorMessage() string {
245	if e.Message == nil {
246		return ""
247	}
248	return *e.Message
249}
250func (e *KMSNotFoundException) ErrorCode() string             { return "KMSNotFound" }
251func (e *KMSNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
252
253// The Amazon Web Services access key ID needs a subscription for the service.
254type KMSOptInRequired struct {
255	Message *string
256
257	noSmithyDocumentSerde
258}
259
260func (e *KMSOptInRequired) Error() string {
261	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
262}
263func (e *KMSOptInRequired) ErrorMessage() string {
264	if e.Message == nil {
265		return ""
266	}
267	return *e.Message
268}
269func (e *KMSOptInRequired) ErrorCode() string             { return "KMSOptInRequired" }
270func (e *KMSOptInRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
271
272// The request was denied due to request throttling. For more information about
273// throttling, see Limits
274// (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second)
275// in the Key Management Service Developer Guide.
276type KMSThrottlingException struct {
277	Message *string
278
279	noSmithyDocumentSerde
280}
281
282func (e *KMSThrottlingException) Error() string {
283	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
284}
285func (e *KMSThrottlingException) ErrorMessage() string {
286	if e.Message == nil {
287		return ""
288	}
289	return *e.Message
290}
291func (e *KMSThrottlingException) ErrorCode() string             { return "KMSThrottling" }
292func (e *KMSThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
293
294// Indicates that the requested resource does not exist.
295type NotFoundException struct {
296	Message *string
297
298	noSmithyDocumentSerde
299}
300
301func (e *NotFoundException) Error() string {
302	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
303}
304func (e *NotFoundException) ErrorMessage() string {
305	if e.Message == nil {
306		return ""
307	}
308	return *e.Message
309}
310func (e *NotFoundException) ErrorCode() string             { return "NotFound" }
311func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
312
313// Indicates that the specified phone number opted out of receiving SMS messages
314// from your account. You can't send SMS messages to phone numbers that opt out.
315type OptedOutException struct {
316	Message *string
317
318	noSmithyDocumentSerde
319}
320
321func (e *OptedOutException) Error() string {
322	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
323}
324func (e *OptedOutException) ErrorMessage() string {
325	if e.Message == nil {
326		return ""
327	}
328	return *e.Message
329}
330func (e *OptedOutException) ErrorCode() string             { return "OptedOut" }
331func (e *OptedOutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
332
333// Exception error indicating platform application disabled.
334type PlatformApplicationDisabledException struct {
335	Message *string
336
337	noSmithyDocumentSerde
338}
339
340func (e *PlatformApplicationDisabledException) Error() string {
341	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
342}
343func (e *PlatformApplicationDisabledException) ErrorMessage() string {
344	if e.Message == nil {
345		return ""
346	}
347	return *e.Message
348}
349func (e *PlatformApplicationDisabledException) ErrorCode() string {
350	return "PlatformApplicationDisabled"
351}
352func (e *PlatformApplicationDisabledException) ErrorFault() smithy.ErrorFault {
353	return smithy.FaultClient
354}
355
356// Can’t perform the action on the specified resource. Make sure that the resource
357// exists.
358type ResourceNotFoundException struct {
359	Message *string
360
361	noSmithyDocumentSerde
362}
363
364func (e *ResourceNotFoundException) Error() string {
365	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
366}
367func (e *ResourceNotFoundException) ErrorMessage() string {
368	if e.Message == nil {
369		return ""
370	}
371	return *e.Message
372}
373func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFound" }
374func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
375
376// A tag has been added to a resource with the same ARN as a deleted resource. Wait
377// a short while and then retry the operation.
378type StaleTagException struct {
379	Message *string
380
381	noSmithyDocumentSerde
382}
383
384func (e *StaleTagException) Error() string {
385	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
386}
387func (e *StaleTagException) ErrorMessage() string {
388	if e.Message == nil {
389		return ""
390	}
391	return *e.Message
392}
393func (e *StaleTagException) ErrorCode() string             { return "StaleTag" }
394func (e *StaleTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
395
396// Indicates that the customer already owns the maximum allowed number of
397// subscriptions.
398type SubscriptionLimitExceededException struct {
399	Message *string
400
401	noSmithyDocumentSerde
402}
403
404func (e *SubscriptionLimitExceededException) Error() string {
405	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
406}
407func (e *SubscriptionLimitExceededException) ErrorMessage() string {
408	if e.Message == nil {
409		return ""
410	}
411	return *e.Message
412}
413func (e *SubscriptionLimitExceededException) ErrorCode() string { return "SubscriptionLimitExceeded" }
414func (e *SubscriptionLimitExceededException) ErrorFault() smithy.ErrorFault {
415	return smithy.FaultClient
416}
417
418// Can't add more than 50 tags to a topic.
419type TagLimitExceededException struct {
420	Message *string
421
422	noSmithyDocumentSerde
423}
424
425func (e *TagLimitExceededException) Error() string {
426	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
427}
428func (e *TagLimitExceededException) ErrorMessage() string {
429	if e.Message == nil {
430		return ""
431	}
432	return *e.Message
433}
434func (e *TagLimitExceededException) ErrorCode() string             { return "TagLimitExceeded" }
435func (e *TagLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
436
437// The request doesn't comply with the IAM tag policy. Correct your request and
438// then retry it.
439type TagPolicyException struct {
440	Message *string
441
442	noSmithyDocumentSerde
443}
444
445func (e *TagPolicyException) Error() string {
446	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
447}
448func (e *TagPolicyException) ErrorMessage() string {
449	if e.Message == nil {
450		return ""
451	}
452	return *e.Message
453}
454func (e *TagPolicyException) ErrorCode() string             { return "TagPolicy" }
455func (e *TagPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
456
457// Indicates that the rate at which requests have been submitted for this action
458// exceeds the limit for your account.
459type ThrottledException struct {
460	Message *string
461
462	noSmithyDocumentSerde
463}
464
465func (e *ThrottledException) Error() string {
466	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
467}
468func (e *ThrottledException) ErrorMessage() string {
469	if e.Message == nil {
470		return ""
471	}
472	return *e.Message
473}
474func (e *ThrottledException) ErrorCode() string             { return "Throttled" }
475func (e *ThrottledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
476
477// Indicates that the customer already owns the maximum allowed number of topics.
478type TopicLimitExceededException struct {
479	Message *string
480
481	noSmithyDocumentSerde
482}
483
484func (e *TopicLimitExceededException) Error() string {
485	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
486}
487func (e *TopicLimitExceededException) ErrorMessage() string {
488	if e.Message == nil {
489		return ""
490	}
491	return *e.Message
492}
493func (e *TopicLimitExceededException) ErrorCode() string             { return "TopicLimitExceeded" }
494func (e *TopicLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
495
496// Indicates that a request parameter does not comply with the associated
497// constraints.
498type UserErrorException struct {
499	Message *string
500
501	noSmithyDocumentSerde
502}
503
504func (e *UserErrorException) Error() string {
505	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
506}
507func (e *UserErrorException) ErrorMessage() string {
508	if e.Message == nil {
509		return ""
510	}
511	return *e.Message
512}
513func (e *UserErrorException) ErrorCode() string             { return "UserError" }
514func (e *UserErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
515
516// Indicates that a parameter in the request is invalid.
517type ValidationException struct {
518	Message *string
519
520	noSmithyDocumentSerde
521}
522
523func (e *ValidationException) Error() string {
524	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
525}
526func (e *ValidationException) ErrorMessage() string {
527	if e.Message == nil {
528		return ""
529	}
530	return *e.Message
531}
532func (e *ValidationException) ErrorCode() string             { return "ValidationException" }
533func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
534
535// Indicates that the one-time password (OTP) used for verification is invalid.
536type VerificationException struct {
537	Message *string
538
539	Status *string
540
541	noSmithyDocumentSerde
542}
543
544func (e *VerificationException) Error() string {
545	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
546}
547func (e *VerificationException) ErrorMessage() string {
548	if e.Message == nil {
549		return ""
550	}
551	return *e.Message
552}
553func (e *VerificationException) ErrorCode() string             { return "VerificationException" }
554func (e *VerificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
555