github.com/aavshr/aws-sdk-go@v1.41.3/service/backup/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package backup 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAlreadyExistsException for service response error code 12 // "AlreadyExistsException". 13 // 14 // The required resource already exists. 15 ErrCodeAlreadyExistsException = "AlreadyExistsException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // Backup can't perform the action that you requested until it finishes performing 21 // a previous action. Try again later. 22 ErrCodeConflictException = "ConflictException" 23 24 // ErrCodeDependencyFailureException for service response error code 25 // "DependencyFailureException". 26 // 27 // A dependent Amazon Web Services service or resource returned an error to 28 // the Backup service, and the action cannot be completed. 29 ErrCodeDependencyFailureException = "DependencyFailureException" 30 31 // ErrCodeInvalidParameterValueException for service response error code 32 // "InvalidParameterValueException". 33 // 34 // Indicates that something is wrong with a parameter's value. For example, 35 // the value is out of range. 36 ErrCodeInvalidParameterValueException = "InvalidParameterValueException" 37 38 // ErrCodeInvalidRequestException for service response error code 39 // "InvalidRequestException". 40 // 41 // Indicates that something is wrong with the input to the request. For example, 42 // a parameter is of the wrong type. 43 ErrCodeInvalidRequestException = "InvalidRequestException" 44 45 // ErrCodeInvalidResourceStateException for service response error code 46 // "InvalidResourceStateException". 47 // 48 // Backup is already performing an action on this recovery point. It can't perform 49 // the action you requested until the first action finishes. Try again later. 50 ErrCodeInvalidResourceStateException = "InvalidResourceStateException" 51 52 // ErrCodeLimitExceededException for service response error code 53 // "LimitExceededException". 54 // 55 // A limit in the request has been exceeded; for example, a maximum number of 56 // items allowed in a request. 57 ErrCodeLimitExceededException = "LimitExceededException" 58 59 // ErrCodeMissingParameterValueException for service response error code 60 // "MissingParameterValueException". 61 // 62 // Indicates that a required parameter is missing. 63 ErrCodeMissingParameterValueException = "MissingParameterValueException" 64 65 // ErrCodeResourceNotFoundException for service response error code 66 // "ResourceNotFoundException". 67 // 68 // A resource that is required for the action doesn't exist. 69 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 70 71 // ErrCodeServiceUnavailableException for service response error code 72 // "ServiceUnavailableException". 73 // 74 // The request failed due to a temporary failure of the server. 75 ErrCodeServiceUnavailableException = "ServiceUnavailableException" 76 ) 77 78 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 79 "AlreadyExistsException": newErrorAlreadyExistsException, 80 "ConflictException": newErrorConflictException, 81 "DependencyFailureException": newErrorDependencyFailureException, 82 "InvalidParameterValueException": newErrorInvalidParameterValueException, 83 "InvalidRequestException": newErrorInvalidRequestException, 84 "InvalidResourceStateException": newErrorInvalidResourceStateException, 85 "LimitExceededException": newErrorLimitExceededException, 86 "MissingParameterValueException": newErrorMissingParameterValueException, 87 "ResourceNotFoundException": newErrorResourceNotFoundException, 88 "ServiceUnavailableException": newErrorServiceUnavailableException, 89 }