github.com/aavshr/aws-sdk-go@v1.41.3/service/managedblockchain/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package managedblockchain 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 access to perform this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeIllegalActionException for service response error code 18 // "IllegalActionException". 19 ErrCodeIllegalActionException = "IllegalActionException" 20 21 // ErrCodeInternalServiceErrorException for service response error code 22 // "InternalServiceErrorException". 23 // 24 // The request processing has failed because of an unknown error, exception 25 // or failure. 26 ErrCodeInternalServiceErrorException = "InternalServiceErrorException" 27 28 // ErrCodeInvalidRequestException for service response error code 29 // "InvalidRequestException". 30 // 31 // The action or operation requested is invalid. Verify that the action is typed 32 // correctly. 33 ErrCodeInvalidRequestException = "InvalidRequestException" 34 35 // ErrCodeResourceAlreadyExistsException for service response error code 36 // "ResourceAlreadyExistsException". 37 // 38 // A resource request is issued for a resource that already exists. 39 ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" 40 41 // ErrCodeResourceLimitExceededException for service response error code 42 // "ResourceLimitExceededException". 43 // 44 // The maximum number of resources of that type already exist. Ensure the resources 45 // requested are within the boundaries of the service edition and your account 46 // limits. 47 ErrCodeResourceLimitExceededException = "ResourceLimitExceededException" 48 49 // ErrCodeResourceNotFoundException for service response error code 50 // "ResourceNotFoundException". 51 // 52 // A requested resource does not exist. It may have been deleted or referenced 53 // inaccurately. 54 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 55 56 // ErrCodeResourceNotReadyException for service response error code 57 // "ResourceNotReadyException". 58 // 59 // The requested resource exists but is not in a status that can complete the 60 // operation. 61 ErrCodeResourceNotReadyException = "ResourceNotReadyException" 62 63 // ErrCodeThrottlingException for service response error code 64 // "ThrottlingException". 65 // 66 // The request or operation could not be performed because a service is throttling 67 // requests. The most common source of throttling errors is launching EC2 instances 68 // such that your service limit for EC2 instances is exceeded. Request a limit 69 // increase or delete unused resources if possible. 70 ErrCodeThrottlingException = "ThrottlingException" 71 72 // ErrCodeTooManyTagsException for service response error code 73 // "TooManyTagsException". 74 ErrCodeTooManyTagsException = "TooManyTagsException" 75 ) 76 77 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 78 "AccessDeniedException": newErrorAccessDeniedException, 79 "IllegalActionException": newErrorIllegalActionException, 80 "InternalServiceErrorException": newErrorInternalServiceErrorException, 81 "InvalidRequestException": newErrorInvalidRequestException, 82 "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, 83 "ResourceLimitExceededException": newErrorResourceLimitExceededException, 84 "ResourceNotFoundException": newErrorResourceNotFoundException, 85 "ResourceNotReadyException": newErrorResourceNotReadyException, 86 "ThrottlingException": newErrorThrottlingException, 87 "TooManyTagsException": newErrorTooManyTagsException, 88 }