github.com/aavshr/aws-sdk-go@v1.41.3/service/managedgrafana/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package managedgrafana 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 // You do not have sufficient permissions to perform this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // A resource was in an inconsistent state during an update or a deletion. 21 ErrCodeConflictException = "ConflictException" 22 23 // ErrCodeInternalServerException for service response error code 24 // "InternalServerException". 25 // 26 // Unexpected error while processing the request. Retry the request. 27 ErrCodeInternalServerException = "InternalServerException" 28 29 // ErrCodeResourceNotFoundException for service response error code 30 // "ResourceNotFoundException". 31 // 32 // The request references a resource that does not exist. 33 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 34 35 // ErrCodeServiceQuotaExceededException for service response error code 36 // "ServiceQuotaExceededException". 37 // 38 // The request would cause a service quota to be exceeded. 39 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 40 41 // ErrCodeThrottlingException for service response error code 42 // "ThrottlingException". 43 // 44 // The request was denied because of request throttling. Retry the request. 45 ErrCodeThrottlingException = "ThrottlingException" 46 47 // ErrCodeValidationException for service response error code 48 // "ValidationException". 49 // 50 // The value of a parameter in the request caused an error. 51 ErrCodeValidationException = "ValidationException" 52 ) 53 54 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 55 "AccessDeniedException": newErrorAccessDeniedException, 56 "ConflictException": newErrorConflictException, 57 "InternalServerException": newErrorInternalServerException, 58 "ResourceNotFoundException": newErrorResourceNotFoundException, 59 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 60 "ThrottlingException": newErrorThrottlingException, 61 "ValidationException": newErrorValidationException, 62 }