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// The current account doesn't have the IAM permissions required to perform the
11// specified Resolver operation.
12type AccessDeniedException struct {
13	Message *string
14}
15
16func (e *AccessDeniedException) Error() string {
17	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
18}
19func (e *AccessDeniedException) ErrorMessage() string {
20	if e.Message == nil {
21		return ""
22	}
23	return *e.Message
24}
25func (e *AccessDeniedException) ErrorCode() string             { return "AccessDeniedException" }
26func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
27
28//
29type ConflictException struct {
30	Message *string
31}
32
33func (e *ConflictException) Error() string {
34	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
35}
36func (e *ConflictException) ErrorMessage() string {
37	if e.Message == nil {
38		return ""
39	}
40	return *e.Message
41}
42func (e *ConflictException) ErrorCode() string             { return "ConflictException" }
43func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
44
45// We encountered an unknown error. Try again in a few minutes.
46type InternalServiceErrorException struct {
47	Message *string
48}
49
50func (e *InternalServiceErrorException) Error() string {
51	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
52}
53func (e *InternalServiceErrorException) ErrorMessage() string {
54	if e.Message == nil {
55		return ""
56	}
57	return *e.Message
58}
59func (e *InternalServiceErrorException) ErrorCode() string             { return "InternalServiceErrorException" }
60func (e *InternalServiceErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
61
62// The value that you specified for NextToken in a List request isn't valid.
63type InvalidNextTokenException struct {
64	Message *string
65}
66
67func (e *InvalidNextTokenException) Error() string {
68	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
69}
70func (e *InvalidNextTokenException) ErrorMessage() string {
71	if e.Message == nil {
72		return ""
73	}
74	return *e.Message
75}
76func (e *InvalidNextTokenException) ErrorCode() string             { return "InvalidNextTokenException" }
77func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
78
79// One or more parameters in this request are not valid.
80type InvalidParameterException struct {
81	Message *string
82
83	FieldName *string
84}
85
86func (e *InvalidParameterException) Error() string {
87	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
88}
89func (e *InvalidParameterException) ErrorMessage() string {
90	if e.Message == nil {
91		return ""
92	}
93	return *e.Message
94}
95func (e *InvalidParameterException) ErrorCode() string             { return "InvalidParameterException" }
96func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
97
98// The specified Resolver rule policy is invalid.
99type InvalidPolicyDocument struct {
100	Message *string
101}
102
103func (e *InvalidPolicyDocument) Error() string {
104	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
105}
106func (e *InvalidPolicyDocument) ErrorMessage() string {
107	if e.Message == nil {
108		return ""
109	}
110	return *e.Message
111}
112func (e *InvalidPolicyDocument) ErrorCode() string             { return "InvalidPolicyDocument" }
113func (e *InvalidPolicyDocument) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
114
115// The request is invalid.
116type InvalidRequestException struct {
117	Message *string
118}
119
120func (e *InvalidRequestException) Error() string {
121	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
122}
123func (e *InvalidRequestException) ErrorMessage() string {
124	if e.Message == nil {
125		return ""
126	}
127	return *e.Message
128}
129func (e *InvalidRequestException) ErrorCode() string             { return "InvalidRequestException" }
130func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
131
132// The specified tag is invalid.
133type InvalidTagException struct {
134	Message *string
135}
136
137func (e *InvalidTagException) Error() string {
138	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
139}
140func (e *InvalidTagException) ErrorMessage() string {
141	if e.Message == nil {
142		return ""
143	}
144	return *e.Message
145}
146func (e *InvalidTagException) ErrorCode() string             { return "InvalidTagException" }
147func (e *InvalidTagException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
148
149// The request caused one or more limits to be exceeded.
150type LimitExceededException struct {
151	Message *string
152
153	ResourceType *string
154}
155
156func (e *LimitExceededException) Error() string {
157	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
158}
159func (e *LimitExceededException) ErrorMessage() string {
160	if e.Message == nil {
161		return ""
162	}
163	return *e.Message
164}
165func (e *LimitExceededException) ErrorCode() string             { return "LimitExceededException" }
166func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
167
168// The resource that you tried to create already exists.
169type ResourceExistsException struct {
170	Message *string
171
172	ResourceType *string
173}
174
175func (e *ResourceExistsException) Error() string {
176	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
177}
178func (e *ResourceExistsException) ErrorMessage() string {
179	if e.Message == nil {
180		return ""
181	}
182	return *e.Message
183}
184func (e *ResourceExistsException) ErrorCode() string             { return "ResourceExistsException" }
185func (e *ResourceExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
186
187// The resource that you tried to update or delete is currently in use.
188type ResourceInUseException struct {
189	Message *string
190
191	ResourceType *string
192}
193
194func (e *ResourceInUseException) Error() string {
195	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
196}
197func (e *ResourceInUseException) ErrorMessage() string {
198	if e.Message == nil {
199		return ""
200	}
201	return *e.Message
202}
203func (e *ResourceInUseException) ErrorCode() string             { return "ResourceInUseException" }
204func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
205
206// The specified resource doesn't exist.
207type ResourceNotFoundException struct {
208	Message *string
209
210	ResourceType *string
211}
212
213func (e *ResourceNotFoundException) Error() string {
214	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
215}
216func (e *ResourceNotFoundException) ErrorMessage() string {
217	if e.Message == nil {
218		return ""
219	}
220	return *e.Message
221}
222func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
223func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
224
225// The specified resource isn't available.
226type ResourceUnavailableException struct {
227	Message *string
228
229	ResourceType *string
230}
231
232func (e *ResourceUnavailableException) Error() string {
233	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
234}
235func (e *ResourceUnavailableException) ErrorMessage() string {
236	if e.Message == nil {
237		return ""
238	}
239	return *e.Message
240}
241func (e *ResourceUnavailableException) ErrorCode() string             { return "ResourceUnavailableException" }
242func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
243
244// The request was throttled. Try again in a few minutes.
245type ThrottlingException struct {
246	Message *string
247}
248
249func (e *ThrottlingException) Error() string {
250	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
251}
252func (e *ThrottlingException) ErrorMessage() string {
253	if e.Message == nil {
254		return ""
255	}
256	return *e.Message
257}
258func (e *ThrottlingException) ErrorCode() string             { return "ThrottlingException" }
259func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
260
261// The specified resource doesn't exist.
262type UnknownResourceException struct {
263	Message *string
264}
265
266func (e *UnknownResourceException) Error() string {
267	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
268}
269func (e *UnknownResourceException) ErrorMessage() string {
270	if e.Message == nil {
271		return ""
272	}
273	return *e.Message
274}
275func (e *UnknownResourceException) ErrorCode() string             { return "UnknownResourceException" }
276func (e *UnknownResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
277
278//
279type ValidationException struct {
280	Message *string
281}
282
283func (e *ValidationException) Error() string {
284	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
285}
286func (e *ValidationException) ErrorMessage() string {
287	if e.Message == nil {
288		return ""
289	}
290	return *e.Message
291}
292func (e *ValidationException) ErrorCode() string             { return "ValidationException" }
293func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
294