1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package workdocs
4
5import (
6	"github.com/aws/aws-sdk-go/private/protocol"
7)
8
9const (
10
11	// ErrCodeConcurrentModificationException for service response error code
12	// "ConcurrentModificationException".
13	//
14	// The resource hierarchy is changing.
15	ErrCodeConcurrentModificationException = "ConcurrentModificationException"
16
17	// ErrCodeConflictingOperationException for service response error code
18	// "ConflictingOperationException".
19	//
20	// Another operation is in progress on the resource that conflicts with the
21	// current operation.
22	ErrCodeConflictingOperationException = "ConflictingOperationException"
23
24	// ErrCodeCustomMetadataLimitExceededException for service response error code
25	// "CustomMetadataLimitExceededException".
26	//
27	// The limit has been reached on the number of custom properties for the specified
28	// resource.
29	ErrCodeCustomMetadataLimitExceededException = "CustomMetadataLimitExceededException"
30
31	// ErrCodeDeactivatingLastSystemUserException for service response error code
32	// "DeactivatingLastSystemUserException".
33	//
34	// The last user in the organization is being deactivated.
35	ErrCodeDeactivatingLastSystemUserException = "DeactivatingLastSystemUserException"
36
37	// ErrCodeDocumentLockedForCommentsException for service response error code
38	// "DocumentLockedForCommentsException".
39	//
40	// This exception is thrown when the document is locked for comments and user
41	// tries to create or delete a comment on that document.
42	ErrCodeDocumentLockedForCommentsException = "DocumentLockedForCommentsException"
43
44	// ErrCodeDraftUploadOutOfSyncException for service response error code
45	// "DraftUploadOutOfSyncException".
46	//
47	// This exception is thrown when a valid checkout ID is not presented on document
48	// version upload calls for a document that has been checked out from Web client.
49	ErrCodeDraftUploadOutOfSyncException = "DraftUploadOutOfSyncException"
50
51	// ErrCodeEntityAlreadyExistsException for service response error code
52	// "EntityAlreadyExistsException".
53	//
54	// The resource already exists.
55	ErrCodeEntityAlreadyExistsException = "EntityAlreadyExistsException"
56
57	// ErrCodeEntityNotExistsException for service response error code
58	// "EntityNotExistsException".
59	//
60	// The resource does not exist.
61	ErrCodeEntityNotExistsException = "EntityNotExistsException"
62
63	// ErrCodeFailedDependencyException for service response error code
64	// "FailedDependencyException".
65	//
66	// The AWS Directory Service cannot reach an on-premises instance. Or a dependency
67	// under the control of the organization is failing, such as a connected Active
68	// Directory.
69	ErrCodeFailedDependencyException = "FailedDependencyException"
70
71	// ErrCodeIllegalUserStateException for service response error code
72	// "IllegalUserStateException".
73	//
74	// The user is undergoing transfer of ownership.
75	ErrCodeIllegalUserStateException = "IllegalUserStateException"
76
77	// ErrCodeInvalidArgumentException for service response error code
78	// "InvalidArgumentException".
79	//
80	// The pagination marker or limit fields are not valid.
81	ErrCodeInvalidArgumentException = "InvalidArgumentException"
82
83	// ErrCodeInvalidCommentOperationException for service response error code
84	// "InvalidCommentOperationException".
85	//
86	// The requested operation is not allowed on the specified comment object.
87	ErrCodeInvalidCommentOperationException = "InvalidCommentOperationException"
88
89	// ErrCodeInvalidOperationException for service response error code
90	// "InvalidOperationException".
91	//
92	// The operation is invalid.
93	ErrCodeInvalidOperationException = "InvalidOperationException"
94
95	// ErrCodeInvalidPasswordException for service response error code
96	// "InvalidPasswordException".
97	//
98	// The password is invalid.
99	ErrCodeInvalidPasswordException = "InvalidPasswordException"
100
101	// ErrCodeLimitExceededException for service response error code
102	// "LimitExceededException".
103	//
104	// The maximum of 100,000 folders under the parent folder has been exceeded.
105	ErrCodeLimitExceededException = "LimitExceededException"
106
107	// ErrCodeProhibitedStateException for service response error code
108	// "ProhibitedStateException".
109	//
110	// The specified document version is not in the INITIALIZED state.
111	ErrCodeProhibitedStateException = "ProhibitedStateException"
112
113	// ErrCodeRequestedEntityTooLargeException for service response error code
114	// "RequestedEntityTooLargeException".
115	//
116	// The response is too large to return. The request must include a filter to
117	// reduce the size of the response.
118	ErrCodeRequestedEntityTooLargeException = "RequestedEntityTooLargeException"
119
120	// ErrCodeResourceAlreadyCheckedOutException for service response error code
121	// "ResourceAlreadyCheckedOutException".
122	//
123	// The resource is already checked out.
124	ErrCodeResourceAlreadyCheckedOutException = "ResourceAlreadyCheckedOutException"
125
126	// ErrCodeServiceUnavailableException for service response error code
127	// "ServiceUnavailableException".
128	//
129	// One or more of the dependencies is unavailable.
130	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
131
132	// ErrCodeStorageLimitExceededException for service response error code
133	// "StorageLimitExceededException".
134	//
135	// The storage limit has been exceeded.
136	ErrCodeStorageLimitExceededException = "StorageLimitExceededException"
137
138	// ErrCodeStorageLimitWillExceedException for service response error code
139	// "StorageLimitWillExceedException".
140	//
141	// The storage limit will be exceeded.
142	ErrCodeStorageLimitWillExceedException = "StorageLimitWillExceedException"
143
144	// ErrCodeTooManyLabelsException for service response error code
145	// "TooManyLabelsException".
146	//
147	// The limit has been reached on the number of labels for the specified resource.
148	ErrCodeTooManyLabelsException = "TooManyLabelsException"
149
150	// ErrCodeTooManySubscriptionsException for service response error code
151	// "TooManySubscriptionsException".
152	//
153	// You've reached the limit on the number of subscriptions for the WorkDocs
154	// instance.
155	ErrCodeTooManySubscriptionsException = "TooManySubscriptionsException"
156
157	// ErrCodeUnauthorizedOperationException for service response error code
158	// "UnauthorizedOperationException".
159	//
160	// The operation is not permitted.
161	ErrCodeUnauthorizedOperationException = "UnauthorizedOperationException"
162
163	// ErrCodeUnauthorizedResourceAccessException for service response error code
164	// "UnauthorizedResourceAccessException".
165	//
166	// The caller does not have access to perform the action on the resource.
167	ErrCodeUnauthorizedResourceAccessException = "UnauthorizedResourceAccessException"
168)
169
170var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
171	"ConcurrentModificationException":      newErrorConcurrentModificationException,
172	"ConflictingOperationException":        newErrorConflictingOperationException,
173	"CustomMetadataLimitExceededException": newErrorCustomMetadataLimitExceededException,
174	"DeactivatingLastSystemUserException":  newErrorDeactivatingLastSystemUserException,
175	"DocumentLockedForCommentsException":   newErrorDocumentLockedForCommentsException,
176	"DraftUploadOutOfSyncException":        newErrorDraftUploadOutOfSyncException,
177	"EntityAlreadyExistsException":         newErrorEntityAlreadyExistsException,
178	"EntityNotExistsException":             newErrorEntityNotExistsException,
179	"FailedDependencyException":            newErrorFailedDependencyException,
180	"IllegalUserStateException":            newErrorIllegalUserStateException,
181	"InvalidArgumentException":             newErrorInvalidArgumentException,
182	"InvalidCommentOperationException":     newErrorInvalidCommentOperationException,
183	"InvalidOperationException":            newErrorInvalidOperationException,
184	"InvalidPasswordException":             newErrorInvalidPasswordException,
185	"LimitExceededException":               newErrorLimitExceededException,
186	"ProhibitedStateException":             newErrorProhibitedStateException,
187	"RequestedEntityTooLargeException":     newErrorRequestedEntityTooLargeException,
188	"ResourceAlreadyCheckedOutException":   newErrorResourceAlreadyCheckedOutException,
189	"ServiceUnavailableException":          newErrorServiceUnavailableException,
190	"StorageLimitExceededException":        newErrorStorageLimitExceededException,
191	"StorageLimitWillExceedException":      newErrorStorageLimitWillExceedException,
192	"TooManyLabelsException":               newErrorTooManyLabelsException,
193	"TooManySubscriptionsException":        newErrorTooManySubscriptionsException,
194	"UnauthorizedOperationException":       newErrorUnauthorizedOperationException,
195	"UnauthorizedResourceAccessException":  newErrorUnauthorizedResourceAccessException,
196}
197