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 directory is already in use by another WorkMail organization in the same
11// account and Region.
12type DirectoryInUseException struct {
13	Message *string
14}
15
16func (e *DirectoryInUseException) Error() string {
17	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
18}
19func (e *DirectoryInUseException) ErrorMessage() string {
20	if e.Message == nil {
21		return ""
22	}
23	return *e.Message
24}
25func (e *DirectoryInUseException) ErrorCode() string             { return "DirectoryInUseException" }
26func (e *DirectoryInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
27
28// The directory service doesn't recognize the credentials supplied by WorkMail.
29type DirectoryServiceAuthenticationFailedException struct {
30	Message *string
31}
32
33func (e *DirectoryServiceAuthenticationFailedException) Error() string {
34	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
35}
36func (e *DirectoryServiceAuthenticationFailedException) ErrorMessage() string {
37	if e.Message == nil {
38		return ""
39	}
40	return *e.Message
41}
42func (e *DirectoryServiceAuthenticationFailedException) ErrorCode() string {
43	return "DirectoryServiceAuthenticationFailedException"
44}
45func (e *DirectoryServiceAuthenticationFailedException) ErrorFault() smithy.ErrorFault {
46	return smithy.FaultClient
47}
48
49// The directory is unavailable. It might be located in another Region or deleted.
50type DirectoryUnavailableException struct {
51	Message *string
52}
53
54func (e *DirectoryUnavailableException) Error() string {
55	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
56}
57func (e *DirectoryUnavailableException) ErrorMessage() string {
58	if e.Message == nil {
59		return ""
60	}
61	return *e.Message
62}
63func (e *DirectoryUnavailableException) ErrorCode() string             { return "DirectoryUnavailableException" }
64func (e *DirectoryUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
65
66// The email address that you're trying to assign is already created for a
67// different user, group, or resource.
68type EmailAddressInUseException struct {
69	Message *string
70}
71
72func (e *EmailAddressInUseException) Error() string {
73	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
74}
75func (e *EmailAddressInUseException) ErrorMessage() string {
76	if e.Message == nil {
77		return ""
78	}
79	return *e.Message
80}
81func (e *EmailAddressInUseException) ErrorCode() string             { return "EmailAddressInUseException" }
82func (e *EmailAddressInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
83
84// The user, group, or resource that you're trying to register is already
85// registered.
86type EntityAlreadyRegisteredException struct {
87	Message *string
88}
89
90func (e *EntityAlreadyRegisteredException) Error() string {
91	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
92}
93func (e *EntityAlreadyRegisteredException) ErrorMessage() string {
94	if e.Message == nil {
95		return ""
96	}
97	return *e.Message
98}
99func (e *EntityAlreadyRegisteredException) ErrorCode() string {
100	return "EntityAlreadyRegisteredException"
101}
102func (e *EntityAlreadyRegisteredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
103
104// The identifier supplied for the user, group, or resource does not exist in your
105// organization.
106type EntityNotFoundException struct {
107	Message *string
108}
109
110func (e *EntityNotFoundException) Error() string {
111	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
112}
113func (e *EntityNotFoundException) ErrorMessage() string {
114	if e.Message == nil {
115		return ""
116	}
117	return *e.Message
118}
119func (e *EntityNotFoundException) ErrorCode() string             { return "EntityNotFoundException" }
120func (e *EntityNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
121
122// You are performing an operation on a user, group, or resource that isn't in the
123// expected state, such as trying to delete an active user.
124type EntityStateException struct {
125	Message *string
126}
127
128func (e *EntityStateException) Error() string {
129	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
130}
131func (e *EntityStateException) ErrorMessage() string {
132	if e.Message == nil {
133		return ""
134	}
135	return *e.Message
136}
137func (e *EntityStateException) ErrorCode() string             { return "EntityStateException" }
138func (e *EntityStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
139
140// The configuration for a resource isn't valid. A resource must either be able to
141// auto-respond to requests or have at least one delegate associated that can do so
142// on its behalf.
143type InvalidConfigurationException struct {
144	Message *string
145}
146
147func (e *InvalidConfigurationException) Error() string {
148	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
149}
150func (e *InvalidConfigurationException) ErrorMessage() string {
151	if e.Message == nil {
152		return ""
153	}
154	return *e.Message
155}
156func (e *InvalidConfigurationException) ErrorCode() string             { return "InvalidConfigurationException" }
157func (e *InvalidConfigurationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
158
159// One or more of the input parameters don't match the service's restrictions.
160type InvalidParameterException struct {
161	Message *string
162}
163
164func (e *InvalidParameterException) Error() string {
165	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
166}
167func (e *InvalidParameterException) ErrorMessage() string {
168	if e.Message == nil {
169		return ""
170	}
171	return *e.Message
172}
173func (e *InvalidParameterException) ErrorCode() string             { return "InvalidParameterException" }
174func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
175
176// The supplied password doesn't match the minimum security constraints, such as
177// length or use of special characters.
178type InvalidPasswordException struct {
179	Message *string
180}
181
182func (e *InvalidPasswordException) Error() string {
183	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
184}
185func (e *InvalidPasswordException) ErrorMessage() string {
186	if e.Message == nil {
187		return ""
188	}
189	return *e.Message
190}
191func (e *InvalidPasswordException) ErrorCode() string             { return "InvalidPasswordException" }
192func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
193
194// The request exceeds the limit of the resource.
195type LimitExceededException struct {
196	Message *string
197}
198
199func (e *LimitExceededException) Error() string {
200	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
201}
202func (e *LimitExceededException) ErrorMessage() string {
203	if e.Message == nil {
204		return ""
205	}
206	return *e.Message
207}
208func (e *LimitExceededException) ErrorCode() string             { return "LimitExceededException" }
209func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
210
211// For an email or alias to be created in Amazon WorkMail, the included domain must
212// be defined in the organization.
213type MailDomainNotFoundException struct {
214	Message *string
215}
216
217func (e *MailDomainNotFoundException) Error() string {
218	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
219}
220func (e *MailDomainNotFoundException) ErrorMessage() string {
221	if e.Message == nil {
222		return ""
223	}
224	return *e.Message
225}
226func (e *MailDomainNotFoundException) ErrorCode() string             { return "MailDomainNotFoundException" }
227func (e *MailDomainNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
228
229// After a domain has been added to the organization, it must be verified. The
230// domain is not yet verified.
231type MailDomainStateException struct {
232	Message *string
233}
234
235func (e *MailDomainStateException) Error() string {
236	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
237}
238func (e *MailDomainStateException) ErrorMessage() string {
239	if e.Message == nil {
240		return ""
241	}
242	return *e.Message
243}
244func (e *MailDomainStateException) ErrorCode() string             { return "MailDomainStateException" }
245func (e *MailDomainStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
246
247// The user, group, or resource name isn't unique in Amazon WorkMail.
248type NameAvailabilityException struct {
249	Message *string
250}
251
252func (e *NameAvailabilityException) Error() string {
253	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
254}
255func (e *NameAvailabilityException) ErrorMessage() string {
256	if e.Message == nil {
257		return ""
258	}
259	return *e.Message
260}
261func (e *NameAvailabilityException) ErrorCode() string             { return "NameAvailabilityException" }
262func (e *NameAvailabilityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
263
264// An operation received a valid organization identifier that either doesn't belong
265// or exist in the system.
266type OrganizationNotFoundException struct {
267	Message *string
268}
269
270func (e *OrganizationNotFoundException) Error() string {
271	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
272}
273func (e *OrganizationNotFoundException) ErrorMessage() string {
274	if e.Message == nil {
275		return ""
276	}
277	return *e.Message
278}
279func (e *OrganizationNotFoundException) ErrorCode() string             { return "OrganizationNotFoundException" }
280func (e *OrganizationNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
281
282// The organization must have a valid state to perform certain operations on the
283// organization or its members.
284type OrganizationStateException struct {
285	Message *string
286}
287
288func (e *OrganizationStateException) Error() string {
289	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
290}
291func (e *OrganizationStateException) ErrorMessage() string {
292	if e.Message == nil {
293		return ""
294	}
295	return *e.Message
296}
297func (e *OrganizationStateException) ErrorCode() string             { return "OrganizationStateException" }
298func (e *OrganizationStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
299
300// This user, group, or resource name is not allowed in Amazon WorkMail.
301type ReservedNameException struct {
302	Message *string
303}
304
305func (e *ReservedNameException) Error() string {
306	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
307}
308func (e *ReservedNameException) ErrorMessage() string {
309	if e.Message == nil {
310		return ""
311	}
312	return *e.Message
313}
314func (e *ReservedNameException) ErrorCode() string             { return "ReservedNameException" }
315func (e *ReservedNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
316
317// The resource cannot be found.
318type ResourceNotFoundException struct {
319	Message *string
320}
321
322func (e *ResourceNotFoundException) Error() string {
323	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
324}
325func (e *ResourceNotFoundException) ErrorMessage() string {
326	if e.Message == nil {
327		return ""
328	}
329	return *e.Message
330}
331func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
332func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
333
334// The resource can have up to 50 user-applied tags.
335type TooManyTagsException struct {
336	Message *string
337}
338
339func (e *TooManyTagsException) Error() string {
340	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
341}
342func (e *TooManyTagsException) ErrorMessage() string {
343	if e.Message == nil {
344		return ""
345	}
346	return *e.Message
347}
348func (e *TooManyTagsException) ErrorCode() string             { return "TooManyTagsException" }
349func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
350
351// You can't perform a write operation against a read-only directory.
352type UnsupportedOperationException struct {
353	Message *string
354}
355
356func (e *UnsupportedOperationException) Error() string {
357	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
358}
359func (e *UnsupportedOperationException) ErrorMessage() string {
360	if e.Message == nil {
361		return ""
362	}
363	return *e.Message
364}
365func (e *UnsupportedOperationException) ErrorCode() string             { return "UnsupportedOperationException" }
366func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
367