1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package snowball
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeClusterLimitExceededException for service response error code
// "ClusterLimitExceededException".
//
// Job creation failed. Currently, clusters support five nodes. If you have
// fewer than five nodes for your cluster and you have more nodes to create
// for this cluster, try again and create jobs until your cluster has exactly
// five nodes.
ErrCodeClusterLimitExceededException = "ClusterLimitExceededException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// You get this exception when you call CreateReturnShippingLabel more than
// once when other requests are not completed.
ErrCodeConflictException = "ConflictException"
// ErrCodeEc2RequestFailedException for service response error code
// "Ec2RequestFailedException".
//
// Your user lacks the necessary Amazon EC2 permissions to perform the attempted
// action.
ErrCodeEc2RequestFailedException = "Ec2RequestFailedException"
// ErrCodeInvalidAddressException for service response error code
// "InvalidAddressException".
//
// The address provided was invalid. Check the address with your region's carrier,
// and try again.
ErrCodeInvalidAddressException = "InvalidAddressException"
// ErrCodeInvalidInputCombinationException for service response error code
// "InvalidInputCombinationException".
//
// Job or cluster creation failed. One or more inputs were invalid. Confirm
// that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType,
// and try again.
ErrCodeInvalidInputCombinationException = "InvalidInputCombinationException"
// ErrCodeInvalidJobStateException for service response error code
// "InvalidJobStateException".
//
// The action can't be performed because the job's current state doesn't allow
// that action to be performed.
ErrCodeInvalidJobStateException = "InvalidJobStateException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The NextToken string was altered unexpectedly, and the operation has stopped.
// Run the operation without changing the NextToken string, and try again.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeInvalidResourceException for service response error code
// "InvalidResourceException".
//
// The specified resource can't be found. Check the information you provided
// in your last request, and try again.
ErrCodeInvalidResourceException = "InvalidResourceException"
// ErrCodeKMSRequestFailedException for service response error code
// "KMSRequestFailedException".
//
// The provided Key Management Service key lacks the permissions to perform
// the specified CreateJob or UpdateJob action.
ErrCodeKMSRequestFailedException = "KMSRequestFailedException"
// ErrCodeReturnShippingLabelAlreadyExistsException for service response error code
// "ReturnShippingLabelAlreadyExistsException".
//
// You get this exception if you call CreateReturnShippingLabel and a valid
// return shipping label already exists. In this case, use DescribeReturnShippingLabel
// to get the URL.
ErrCodeReturnShippingLabelAlreadyExistsException = "ReturnShippingLabelAlreadyExistsException"
// ErrCodeUnsupportedAddressException for service response error code
// "UnsupportedAddressException".
//
// The address is either outside the serviceable area for your region, or an
// error occurred. Check the address with your region's carrier and try again.
// If the issue persists, contact Amazon Web Services Support.
ErrCodeUnsupportedAddressException = "UnsupportedAddressException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ClusterLimitExceededException": newErrorClusterLimitExceededException,
"ConflictException": newErrorConflictException,
"Ec2RequestFailedException": newErrorEc2RequestFailedException,
"InvalidAddressException": newErrorInvalidAddressException,
"InvalidInputCombinationException": newErrorInvalidInputCombinationException,
"InvalidJobStateException": newErrorInvalidJobStateException,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
"InvalidResourceException": newErrorInvalidResourceException,
"KMSRequestFailedException": newErrorKMSRequestFailedException,
"ReturnShippingLabelAlreadyExistsException": newErrorReturnShippingLabelAlreadyExistsException,
"UnsupportedAddressException": newErrorUnsupportedAddressException,
}
|