github.com/aavshr/aws-sdk-go@v1.41.3/service/account/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package account 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAccessDeniedException for service response error code 12 // "AccessDeniedException". 13 // 14 // The operation failed because the calling identity doesn't have the minimum 15 // required permissions. 16 ErrCodeAccessDeniedException = "AccessDeniedException" 17 18 // ErrCodeInternalServerException for service response error code 19 // "InternalServerException". 20 // 21 // The operation failed because of an error internal to Amazon Web Services. 22 // Try your operation again later. 23 ErrCodeInternalServerException = "InternalServerException" 24 25 // ErrCodeResourceNotFoundException for service response error code 26 // "ResourceNotFoundException". 27 // 28 // The operation failed because it specified a resource that can't be found. 29 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 30 31 // ErrCodeTooManyRequestsException for service response error code 32 // "TooManyRequestsException". 33 // 34 // The operation failed because it was called too frequently and exceeded a 35 // throttle limit. 36 ErrCodeTooManyRequestsException = "TooManyRequestsException" 37 38 // ErrCodeValidationException for service response error code 39 // "ValidationException". 40 // 41 // The operation failed because one of the input parameters was invalid. 42 ErrCodeValidationException = "ValidationException" 43 ) 44 45 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 46 "AccessDeniedException": newErrorAccessDeniedException, 47 "InternalServerException": newErrorInternalServerException, 48 "ResourceNotFoundException": newErrorResourceNotFoundException, 49 "TooManyRequestsException": newErrorTooManyRequestsException, 50 "ValidationException": newErrorValidationException, 51 }