github.com/aavshr/aws-sdk-go@v1.41.3/service/lookoutmetrics/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package lookoutmetrics 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 // There was a conflict processing the request. Try your request again. 21 ErrCodeConflictException = "ConflictException" 22 23 // ErrCodeInternalServerException for service response error code 24 // "InternalServerException". 25 // 26 // The request processing has failed because of an unknown error, exception, 27 // or failure. 28 ErrCodeInternalServerException = "InternalServerException" 29 30 // ErrCodeResourceNotFoundException for service response error code 31 // "ResourceNotFoundException". 32 // 33 // The specified resource cannot be found. Check the ARN of the resource and 34 // try again. 35 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 36 37 // ErrCodeServiceQuotaExceededException for service response error code 38 // "ServiceQuotaExceededException". 39 // 40 // The request exceeded the service's quotas. Check the service quotas and try 41 // again. 42 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 43 44 // ErrCodeTooManyRequestsException for service response error code 45 // "TooManyRequestsException". 46 // 47 // The request was denied due to too many requests being submitted at the same 48 // time. 49 ErrCodeTooManyRequestsException = "TooManyRequestsException" 50 51 // ErrCodeValidationException for service response error code 52 // "ValidationException". 53 // 54 // The input fails to satisfy the constraints specified by the AWS service. 55 // Check your input values and try again. 56 ErrCodeValidationException = "ValidationException" 57 ) 58 59 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 60 "AccessDeniedException": newErrorAccessDeniedException, 61 "ConflictException": newErrorConflictException, 62 "InternalServerException": newErrorInternalServerException, 63 "ResourceNotFoundException": newErrorResourceNotFoundException, 64 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 65 "TooManyRequestsException": newErrorTooManyRequestsException, 66 "ValidationException": newErrorValidationException, 67 }