github.com/aavshr/aws-sdk-go@v1.41.3/service/applicationcostprofiler/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package applicationcostprofiler 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 permission to perform this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeInternalServerException for service response error code 18 // "InternalServerException". 19 // 20 // An internal server error occurred. Retry your request. 21 ErrCodeInternalServerException = "InternalServerException" 22 23 // ErrCodeServiceQuotaExceededException for service response error code 24 // "ServiceQuotaExceededException". 25 // 26 // Your request exceeds one or more of the service quotas. 27 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 28 29 // ErrCodeThrottlingException for service response error code 30 // "ThrottlingException". 31 // 32 // The calls to AWS Application Cost Profiler API are throttled. The request 33 // was denied. 34 ErrCodeThrottlingException = "ThrottlingException" 35 36 // ErrCodeValidationException for service response error code 37 // "ValidationException". 38 // 39 // The input fails to satisfy the constraints for the API. 40 ErrCodeValidationException = "ValidationException" 41 ) 42 43 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 44 "AccessDeniedException": newErrorAccessDeniedException, 45 "InternalServerException": newErrorInternalServerException, 46 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 47 "ThrottlingException": newErrorThrottlingException, 48 "ValidationException": newErrorValidationException, 49 }