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 resource hierarchy is changing. 11type ConcurrentModificationException struct { 12 Message *string 13} 14 15func (e *ConcurrentModificationException) Error() string { 16 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 17} 18func (e *ConcurrentModificationException) ErrorMessage() string { 19 if e.Message == nil { 20 return "" 21 } 22 return *e.Message 23} 24func (e *ConcurrentModificationException) ErrorCode() string { 25 return "ConcurrentModificationException" 26} 27func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 28 29// Another operation is in progress on the resource that conflicts with the current 30// operation. 31type ConflictingOperationException struct { 32 Message *string 33} 34 35func (e *ConflictingOperationException) Error() string { 36 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 37} 38func (e *ConflictingOperationException) ErrorMessage() string { 39 if e.Message == nil { 40 return "" 41 } 42 return *e.Message 43} 44func (e *ConflictingOperationException) ErrorCode() string { return "ConflictingOperationException" } 45func (e *ConflictingOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 46 47// The limit has been reached on the number of custom properties for the specified 48// resource. 49type CustomMetadataLimitExceededException struct { 50 Message *string 51} 52 53func (e *CustomMetadataLimitExceededException) Error() string { 54 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 55} 56func (e *CustomMetadataLimitExceededException) ErrorMessage() string { 57 if e.Message == nil { 58 return "" 59 } 60 return *e.Message 61} 62func (e *CustomMetadataLimitExceededException) ErrorCode() string { 63 return "CustomMetadataLimitExceededException" 64} 65func (e *CustomMetadataLimitExceededException) ErrorFault() smithy.ErrorFault { 66 return smithy.FaultClient 67} 68 69// The last user in the organization is being deactivated. 70type DeactivatingLastSystemUserException struct { 71 Message *string 72 73 Code *string 74} 75 76func (e *DeactivatingLastSystemUserException) Error() string { 77 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 78} 79func (e *DeactivatingLastSystemUserException) ErrorMessage() string { 80 if e.Message == nil { 81 return "" 82 } 83 return *e.Message 84} 85func (e *DeactivatingLastSystemUserException) ErrorCode() string { 86 return "DeactivatingLastSystemUserException" 87} 88func (e *DeactivatingLastSystemUserException) ErrorFault() smithy.ErrorFault { 89 return smithy.FaultClient 90} 91 92// This exception is thrown when the document is locked for comments and user tries 93// to create or delete a comment on that document. 94type DocumentLockedForCommentsException struct { 95 Message *string 96} 97 98func (e *DocumentLockedForCommentsException) Error() string { 99 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 100} 101func (e *DocumentLockedForCommentsException) ErrorMessage() string { 102 if e.Message == nil { 103 return "" 104 } 105 return *e.Message 106} 107func (e *DocumentLockedForCommentsException) ErrorCode() string { 108 return "DocumentLockedForCommentsException" 109} 110func (e *DocumentLockedForCommentsException) ErrorFault() smithy.ErrorFault { 111 return smithy.FaultClient 112} 113 114// This exception is thrown when a valid checkout ID is not presented on document 115// version upload calls for a document that has been checked out from Web client. 116type DraftUploadOutOfSyncException struct { 117 Message *string 118} 119 120func (e *DraftUploadOutOfSyncException) Error() string { 121 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 122} 123func (e *DraftUploadOutOfSyncException) ErrorMessage() string { 124 if e.Message == nil { 125 return "" 126 } 127 return *e.Message 128} 129func (e *DraftUploadOutOfSyncException) ErrorCode() string { return "DraftUploadOutOfSyncException" } 130func (e *DraftUploadOutOfSyncException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 131 132// The resource already exists. 133type EntityAlreadyExistsException struct { 134 Message *string 135} 136 137func (e *EntityAlreadyExistsException) Error() string { 138 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 139} 140func (e *EntityAlreadyExistsException) ErrorMessage() string { 141 if e.Message == nil { 142 return "" 143 } 144 return *e.Message 145} 146func (e *EntityAlreadyExistsException) ErrorCode() string { return "EntityAlreadyExistsException" } 147func (e *EntityAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 148 149// The resource does not exist. 150type EntityNotExistsException struct { 151 Message *string 152 153 EntityIds []string 154} 155 156func (e *EntityNotExistsException) Error() string { 157 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 158} 159func (e *EntityNotExistsException) ErrorMessage() string { 160 if e.Message == nil { 161 return "" 162 } 163 return *e.Message 164} 165func (e *EntityNotExistsException) ErrorCode() string { return "EntityNotExistsException" } 166func (e *EntityNotExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 167 168// The AWS Directory Service cannot reach an on-premises instance. Or a dependency 169// under the control of the organization is failing, such as a connected Active 170// Directory. 171type FailedDependencyException struct { 172 Message *string 173} 174 175func (e *FailedDependencyException) Error() string { 176 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 177} 178func (e *FailedDependencyException) ErrorMessage() string { 179 if e.Message == nil { 180 return "" 181 } 182 return *e.Message 183} 184func (e *FailedDependencyException) ErrorCode() string { return "FailedDependencyException" } 185func (e *FailedDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 186 187// The user is undergoing transfer of ownership. 188type IllegalUserStateException struct { 189 Message *string 190} 191 192func (e *IllegalUserStateException) Error() string { 193 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 194} 195func (e *IllegalUserStateException) ErrorMessage() string { 196 if e.Message == nil { 197 return "" 198 } 199 return *e.Message 200} 201func (e *IllegalUserStateException) ErrorCode() string { return "IllegalUserStateException" } 202func (e *IllegalUserStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 203 204// The pagination marker or limit fields are not valid. 205type InvalidArgumentException struct { 206 Message *string 207} 208 209func (e *InvalidArgumentException) Error() string { 210 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 211} 212func (e *InvalidArgumentException) ErrorMessage() string { 213 if e.Message == nil { 214 return "" 215 } 216 return *e.Message 217} 218func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } 219func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 220 221// The requested operation is not allowed on the specified comment object. 222type InvalidCommentOperationException struct { 223 Message *string 224} 225 226func (e *InvalidCommentOperationException) Error() string { 227 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 228} 229func (e *InvalidCommentOperationException) ErrorMessage() string { 230 if e.Message == nil { 231 return "" 232 } 233 return *e.Message 234} 235func (e *InvalidCommentOperationException) ErrorCode() string { 236 return "InvalidCommentOperationException" 237} 238func (e *InvalidCommentOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 239 240// The operation is invalid. 241type InvalidOperationException struct { 242 Message *string 243} 244 245func (e *InvalidOperationException) Error() string { 246 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 247} 248func (e *InvalidOperationException) ErrorMessage() string { 249 if e.Message == nil { 250 return "" 251 } 252 return *e.Message 253} 254func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } 255func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 256 257// The password is invalid. 258type InvalidPasswordException struct { 259 Message *string 260} 261 262func (e *InvalidPasswordException) Error() string { 263 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 264} 265func (e *InvalidPasswordException) ErrorMessage() string { 266 if e.Message == nil { 267 return "" 268 } 269 return *e.Message 270} 271func (e *InvalidPasswordException) ErrorCode() string { return "InvalidPasswordException" } 272func (e *InvalidPasswordException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 273 274// The maximum of 100,000 folders under the parent folder has been exceeded. 275type LimitExceededException struct { 276 Message *string 277} 278 279func (e *LimitExceededException) Error() string { 280 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 281} 282func (e *LimitExceededException) ErrorMessage() string { 283 if e.Message == nil { 284 return "" 285 } 286 return *e.Message 287} 288func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } 289func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 290 291// The specified document version is not in the INITIALIZED state. 292type ProhibitedStateException struct { 293 Message *string 294} 295 296func (e *ProhibitedStateException) Error() string { 297 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 298} 299func (e *ProhibitedStateException) ErrorMessage() string { 300 if e.Message == nil { 301 return "" 302 } 303 return *e.Message 304} 305func (e *ProhibitedStateException) ErrorCode() string { return "ProhibitedStateException" } 306func (e *ProhibitedStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 307 308// The response is too large to return. The request must include a filter to reduce 309// the size of the response. 310type RequestedEntityTooLargeException struct { 311 Message *string 312} 313 314func (e *RequestedEntityTooLargeException) Error() string { 315 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 316} 317func (e *RequestedEntityTooLargeException) ErrorMessage() string { 318 if e.Message == nil { 319 return "" 320 } 321 return *e.Message 322} 323func (e *RequestedEntityTooLargeException) ErrorCode() string { 324 return "RequestedEntityTooLargeException" 325} 326func (e *RequestedEntityTooLargeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 327 328// The resource is already checked out. 329type ResourceAlreadyCheckedOutException struct { 330 Message *string 331} 332 333func (e *ResourceAlreadyCheckedOutException) Error() string { 334 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 335} 336func (e *ResourceAlreadyCheckedOutException) ErrorMessage() string { 337 if e.Message == nil { 338 return "" 339 } 340 return *e.Message 341} 342func (e *ResourceAlreadyCheckedOutException) ErrorCode() string { 343 return "ResourceAlreadyCheckedOutException" 344} 345func (e *ResourceAlreadyCheckedOutException) ErrorFault() smithy.ErrorFault { 346 return smithy.FaultClient 347} 348 349// One or more of the dependencies is unavailable. 350type ServiceUnavailableException struct { 351 Message *string 352} 353 354func (e *ServiceUnavailableException) Error() string { 355 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 356} 357func (e *ServiceUnavailableException) ErrorMessage() string { 358 if e.Message == nil { 359 return "" 360 } 361 return *e.Message 362} 363func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } 364func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 365 366// The storage limit has been exceeded. 367type StorageLimitExceededException struct { 368 Message *string 369} 370 371func (e *StorageLimitExceededException) Error() string { 372 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 373} 374func (e *StorageLimitExceededException) ErrorMessage() string { 375 if e.Message == nil { 376 return "" 377 } 378 return *e.Message 379} 380func (e *StorageLimitExceededException) ErrorCode() string { return "StorageLimitExceededException" } 381func (e *StorageLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 382 383// The storage limit will be exceeded. 384type StorageLimitWillExceedException struct { 385 Message *string 386} 387 388func (e *StorageLimitWillExceedException) Error() string { 389 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 390} 391func (e *StorageLimitWillExceedException) ErrorMessage() string { 392 if e.Message == nil { 393 return "" 394 } 395 return *e.Message 396} 397func (e *StorageLimitWillExceedException) ErrorCode() string { 398 return "StorageLimitWillExceedException" 399} 400func (e *StorageLimitWillExceedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 401 402// The limit has been reached on the number of labels for the specified resource. 403type TooManyLabelsException struct { 404 Message *string 405} 406 407func (e *TooManyLabelsException) Error() string { 408 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 409} 410func (e *TooManyLabelsException) ErrorMessage() string { 411 if e.Message == nil { 412 return "" 413 } 414 return *e.Message 415} 416func (e *TooManyLabelsException) ErrorCode() string { return "TooManyLabelsException" } 417func (e *TooManyLabelsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 418 419// You've reached the limit on the number of subscriptions for the WorkDocs 420// instance. 421type TooManySubscriptionsException struct { 422 Message *string 423} 424 425func (e *TooManySubscriptionsException) Error() string { 426 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 427} 428func (e *TooManySubscriptionsException) ErrorMessage() string { 429 if e.Message == nil { 430 return "" 431 } 432 return *e.Message 433} 434func (e *TooManySubscriptionsException) ErrorCode() string { return "TooManySubscriptionsException" } 435func (e *TooManySubscriptionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 436 437// The operation is not permitted. 438type UnauthorizedOperationException struct { 439 Message *string 440 441 Code *string 442} 443 444func (e *UnauthorizedOperationException) Error() string { 445 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 446} 447func (e *UnauthorizedOperationException) ErrorMessage() string { 448 if e.Message == nil { 449 return "" 450 } 451 return *e.Message 452} 453func (e *UnauthorizedOperationException) ErrorCode() string { return "UnauthorizedOperationException" } 454func (e *UnauthorizedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 455 456// The caller does not have access to perform the action on the resource. 457type UnauthorizedResourceAccessException struct { 458 Message *string 459} 460 461func (e *UnauthorizedResourceAccessException) Error() string { 462 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 463} 464func (e *UnauthorizedResourceAccessException) ErrorMessage() string { 465 if e.Message == nil { 466 return "" 467 } 468 return *e.Message 469} 470func (e *UnauthorizedResourceAccessException) ErrorCode() string { 471 return "UnauthorizedResourceAccessException" 472} 473func (e *UnauthorizedResourceAccessException) ErrorFault() smithy.ErrorFault { 474 return smithy.FaultClient 475} 476