github.com/aavshr/aws-sdk-go@v1.41.3/service/proton/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package proton 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 // There isn't sufficient access for performing this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // The request couldn't be made due to a conflicting operation or resource. 21 ErrCodeConflictException = "ConflictException" 22 23 // ErrCodeInternalServerException for service response error code 24 // "InternalServerException". 25 // 26 // The request failed to register with the service. 27 ErrCodeInternalServerException = "InternalServerException" 28 29 // ErrCodeResourceNotFoundException for service response error code 30 // "ResourceNotFoundException". 31 // 32 // The requested resource wasn't found. 33 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 34 35 // ErrCodeServiceQuotaExceededException for service response error code 36 // "ServiceQuotaExceededException". 37 // 38 // A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) 39 // in the AWS Proton Administrator Guide. 40 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 41 42 // ErrCodeThrottlingException for service response error code 43 // "ThrottlingException". 44 // 45 // The request was denied due to request throttling. 46 ErrCodeThrottlingException = "ThrottlingException" 47 48 // ErrCodeValidationException for service response error code 49 // "ValidationException". 50 // 51 // The input is invalid or an out-of-range value was supplied for the input 52 // parameter. 53 ErrCodeValidationException = "ValidationException" 54 ) 55 56 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 57 "AccessDeniedException": newErrorAccessDeniedException, 58 "ConflictException": newErrorConflictException, 59 "InternalServerException": newErrorInternalServerException, 60 "ResourceNotFoundException": newErrorResourceNotFoundException, 61 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 62 "ThrottlingException": newErrorThrottlingException, 63 "ValidationException": newErrorValidationException, 64 }