github.com/aavshr/aws-sdk-go@v1.41.3/service/prometheusservice/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package prometheusservice 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 // User does not have sufficient access to perform this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // Updating or deleting a resource can cause an inconsistent state. 21 ErrCodeConflictException = "ConflictException" 22 23 // ErrCodeInternalServerException for service response error code 24 // "InternalServerException". 25 // 26 // Unexpected error during processing of request. 27 ErrCodeInternalServerException = "InternalServerException" 28 29 // ErrCodeResourceNotFoundException for service response error code 30 // "ResourceNotFoundException". 31 // 32 // Request references a resource which does not exist. 33 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 34 35 // ErrCodeServiceQuotaExceededException for service response error code 36 // "ServiceQuotaExceededException". 37 // 38 // Request would cause a service quota to be exceeded. 39 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 40 41 // ErrCodeThrottlingException for service response error code 42 // "ThrottlingException". 43 // 44 // Request was denied due to request throttling. 45 ErrCodeThrottlingException = "ThrottlingException" 46 47 // ErrCodeValidationException for service response error code 48 // "ValidationException". 49 // 50 // The input fails to satisfy the constraints specified by an AWS service. 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 }