github.com/aavshr/aws-sdk-go@v1.41.3/service/transfer/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package transfer 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 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // This exception is thrown when the UpdateServer is called for a file transfer 21 // protocol-enabled server that has VPC as the endpoint type and the server's 22 // VpcEndpointID is not in the available state. 23 ErrCodeConflictException = "ConflictException" 24 25 // ErrCodeInternalServiceError for service response error code 26 // "InternalServiceError". 27 // 28 // This exception is thrown when an error occurs in the Amazon Web ServicesTransfer 29 // Family service. 30 ErrCodeInternalServiceError = "InternalServiceError" 31 32 // ErrCodeInvalidNextTokenException for service response error code 33 // "InvalidNextTokenException". 34 // 35 // The NextToken parameter that was passed is invalid. 36 ErrCodeInvalidNextTokenException = "InvalidNextTokenException" 37 38 // ErrCodeInvalidRequestException for service response error code 39 // "InvalidRequestException". 40 // 41 // This exception is thrown when the client submits a malformed request. 42 ErrCodeInvalidRequestException = "InvalidRequestException" 43 44 // ErrCodeResourceExistsException for service response error code 45 // "ResourceExistsException". 46 // 47 // The requested resource does not exist. 48 ErrCodeResourceExistsException = "ResourceExistsException" 49 50 // ErrCodeResourceNotFoundException for service response error code 51 // "ResourceNotFoundException". 52 // 53 // This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer 54 // Family service. 55 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 56 57 // ErrCodeServiceUnavailableException for service response error code 58 // "ServiceUnavailableException". 59 // 60 // The request has failed because the Amazon Web ServicesTransfer Family service 61 // is not available. 62 ErrCodeServiceUnavailableException = "ServiceUnavailableException" 63 64 // ErrCodeThrottlingException for service response error code 65 // "ThrottlingException". 66 // 67 // The request was denied due to request throttling. 68 // 69 // HTTP Status Code: 400 70 ErrCodeThrottlingException = "ThrottlingException" 71 ) 72 73 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 74 "AccessDeniedException": newErrorAccessDeniedException, 75 "ConflictException": newErrorConflictException, 76 "InternalServiceError": newErrorInternalServiceError, 77 "InvalidNextTokenException": newErrorInvalidNextTokenException, 78 "InvalidRequestException": newErrorInvalidRequestException, 79 "ResourceExistsException": newErrorResourceExistsException, 80 "ResourceNotFoundException": newErrorResourceNotFoundException, 81 "ServiceUnavailableException": newErrorServiceUnavailableException, 82 "ThrottlingException": newErrorThrottlingException, 83 }