github.com/aavshr/aws-sdk-go@v1.41.3/service/snowball/errors.go (about)

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