1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package workmail
4
5import (
6	"github.com/aws/aws-sdk-go/private/protocol"
7)
8
9const (
10
11	// ErrCodeDirectoryInUseException for service response error code
12	// "DirectoryInUseException".
13	//
14	// The directory is already in use by another WorkMail organization in the same
15	// account and Region.
16	ErrCodeDirectoryInUseException = "DirectoryInUseException"
17
18	// ErrCodeDirectoryServiceAuthenticationFailedException for service response error code
19	// "DirectoryServiceAuthenticationFailedException".
20	//
21	// The directory service doesn't recognize the credentials supplied by WorkMail.
22	ErrCodeDirectoryServiceAuthenticationFailedException = "DirectoryServiceAuthenticationFailedException"
23
24	// ErrCodeDirectoryUnavailableException for service response error code
25	// "DirectoryUnavailableException".
26	//
27	// The directory is unavailable. It might be located in another Region or deleted.
28	ErrCodeDirectoryUnavailableException = "DirectoryUnavailableException"
29
30	// ErrCodeEmailAddressInUseException for service response error code
31	// "EmailAddressInUseException".
32	//
33	// The email address that you're trying to assign is already created for a different
34	// user, group, or resource.
35	ErrCodeEmailAddressInUseException = "EmailAddressInUseException"
36
37	// ErrCodeEntityAlreadyRegisteredException for service response error code
38	// "EntityAlreadyRegisteredException".
39	//
40	// The user, group, or resource that you're trying to register is already registered.
41	ErrCodeEntityAlreadyRegisteredException = "EntityAlreadyRegisteredException"
42
43	// ErrCodeEntityNotFoundException for service response error code
44	// "EntityNotFoundException".
45	//
46	// The identifier supplied for the user, group, or resource does not exist in
47	// your organization.
48	ErrCodeEntityNotFoundException = "EntityNotFoundException"
49
50	// ErrCodeEntityStateException for service response error code
51	// "EntityStateException".
52	//
53	// You are performing an operation on a user, group, or resource that isn't
54	// in the expected state, such as trying to delete an active user.
55	ErrCodeEntityStateException = "EntityStateException"
56
57	// ErrCodeInvalidConfigurationException for service response error code
58	// "InvalidConfigurationException".
59	//
60	// The configuration for a resource isn't valid. A resource must either be able
61	// to auto-respond to requests or have at least one delegate associated that
62	// can do so on its behalf.
63	ErrCodeInvalidConfigurationException = "InvalidConfigurationException"
64
65	// ErrCodeInvalidParameterException for service response error code
66	// "InvalidParameterException".
67	//
68	// One or more of the input parameters don't match the service's restrictions.
69	ErrCodeInvalidParameterException = "InvalidParameterException"
70
71	// ErrCodeInvalidPasswordException for service response error code
72	// "InvalidPasswordException".
73	//
74	// The supplied password doesn't match the minimum security constraints, such
75	// as length or use of special characters.
76	ErrCodeInvalidPasswordException = "InvalidPasswordException"
77
78	// ErrCodeLimitExceededException for service response error code
79	// "LimitExceededException".
80	//
81	// The request exceeds the limit of the resource.
82	ErrCodeLimitExceededException = "LimitExceededException"
83
84	// ErrCodeMailDomainNotFoundException for service response error code
85	// "MailDomainNotFoundException".
86	//
87	// For an email or alias to be created in Amazon WorkMail, the included domain
88	// must be defined in the organization.
89	ErrCodeMailDomainNotFoundException = "MailDomainNotFoundException"
90
91	// ErrCodeMailDomainStateException for service response error code
92	// "MailDomainStateException".
93	//
94	// After a domain has been added to the organization, it must be verified. The
95	// domain is not yet verified.
96	ErrCodeMailDomainStateException = "MailDomainStateException"
97
98	// ErrCodeNameAvailabilityException for service response error code
99	// "NameAvailabilityException".
100	//
101	// The user, group, or resource name isn't unique in Amazon WorkMail.
102	ErrCodeNameAvailabilityException = "NameAvailabilityException"
103
104	// ErrCodeOrganizationNotFoundException for service response error code
105	// "OrganizationNotFoundException".
106	//
107	// An operation received a valid organization identifier that either doesn't
108	// belong or exist in the system.
109	ErrCodeOrganizationNotFoundException = "OrganizationNotFoundException"
110
111	// ErrCodeOrganizationStateException for service response error code
112	// "OrganizationStateException".
113	//
114	// The organization must have a valid state to perform certain operations on
115	// the organization or its members.
116	ErrCodeOrganizationStateException = "OrganizationStateException"
117
118	// ErrCodeReservedNameException for service response error code
119	// "ReservedNameException".
120	//
121	// This user, group, or resource name is not allowed in Amazon WorkMail.
122	ErrCodeReservedNameException = "ReservedNameException"
123
124	// ErrCodeResourceNotFoundException for service response error code
125	// "ResourceNotFoundException".
126	//
127	// The resource cannot be found.
128	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
129
130	// ErrCodeTooManyTagsException for service response error code
131	// "TooManyTagsException".
132	//
133	// The resource can have up to 50 user-applied tags.
134	ErrCodeTooManyTagsException = "TooManyTagsException"
135
136	// ErrCodeUnsupportedOperationException for service response error code
137	// "UnsupportedOperationException".
138	//
139	// You can't perform a write operation against a read-only directory.
140	ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
141)
142
143var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
144	"DirectoryInUseException":                       newErrorDirectoryInUseException,
145	"DirectoryServiceAuthenticationFailedException": newErrorDirectoryServiceAuthenticationFailedException,
146	"DirectoryUnavailableException":                 newErrorDirectoryUnavailableException,
147	"EmailAddressInUseException":                    newErrorEmailAddressInUseException,
148	"EntityAlreadyRegisteredException":              newErrorEntityAlreadyRegisteredException,
149	"EntityNotFoundException":                       newErrorEntityNotFoundException,
150	"EntityStateException":                          newErrorEntityStateException,
151	"InvalidConfigurationException":                 newErrorInvalidConfigurationException,
152	"InvalidParameterException":                     newErrorInvalidParameterException,
153	"InvalidPasswordException":                      newErrorInvalidPasswordException,
154	"LimitExceededException":                        newErrorLimitExceededException,
155	"MailDomainNotFoundException":                   newErrorMailDomainNotFoundException,
156	"MailDomainStateException":                      newErrorMailDomainStateException,
157	"NameAvailabilityException":                     newErrorNameAvailabilityException,
158	"OrganizationNotFoundException":                 newErrorOrganizationNotFoundException,
159	"OrganizationStateException":                    newErrorOrganizationStateException,
160	"ReservedNameException":                         newErrorReservedNameException,
161	"ResourceNotFoundException":                     newErrorResourceNotFoundException,
162	"TooManyTagsException":                          newErrorTooManyTagsException,
163	"UnsupportedOperationException":                 newErrorUnsupportedOperationException,
164}
165