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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package globalaccelerator
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAcceleratorNotDisabledException for service response error code
    12  	// "AcceleratorNotDisabledException".
    13  	//
    14  	// The accelerator that you specified could not be disabled.
    15  	ErrCodeAcceleratorNotDisabledException = "AcceleratorNotDisabledException"
    16  
    17  	// ErrCodeAcceleratorNotFoundException for service response error code
    18  	// "AcceleratorNotFoundException".
    19  	//
    20  	// The accelerator that you specified doesn't exist.
    21  	ErrCodeAcceleratorNotFoundException = "AcceleratorNotFoundException"
    22  
    23  	// ErrCodeAccessDeniedException for service response error code
    24  	// "AccessDeniedException".
    25  	//
    26  	// You don't have access permission.
    27  	ErrCodeAccessDeniedException = "AccessDeniedException"
    28  
    29  	// ErrCodeAssociatedEndpointGroupFoundException for service response error code
    30  	// "AssociatedEndpointGroupFoundException".
    31  	//
    32  	// The listener that you specified has an endpoint group associated with it.
    33  	// You must remove all dependent resources from a listener before you can delete
    34  	// it.
    35  	ErrCodeAssociatedEndpointGroupFoundException = "AssociatedEndpointGroupFoundException"
    36  
    37  	// ErrCodeAssociatedListenerFoundException for service response error code
    38  	// "AssociatedListenerFoundException".
    39  	//
    40  	// The accelerator that you specified has a listener associated with it. You
    41  	// must remove all dependent resources from an accelerator before you can delete
    42  	// it.
    43  	ErrCodeAssociatedListenerFoundException = "AssociatedListenerFoundException"
    44  
    45  	// ErrCodeByoipCidrNotFoundException for service response error code
    46  	// "ByoipCidrNotFoundException".
    47  	//
    48  	// The CIDR that you specified was not found or is incorrect.
    49  	ErrCodeByoipCidrNotFoundException = "ByoipCidrNotFoundException"
    50  
    51  	// ErrCodeConflictException for service response error code
    52  	// "ConflictException".
    53  	//
    54  	// You can't use both of those options.
    55  	ErrCodeConflictException = "ConflictException"
    56  
    57  	// ErrCodeEndpointAlreadyExistsException for service response error code
    58  	// "EndpointAlreadyExistsException".
    59  	//
    60  	// The endpoint that you specified doesn't exist.
    61  	ErrCodeEndpointAlreadyExistsException = "EndpointAlreadyExistsException"
    62  
    63  	// ErrCodeEndpointGroupAlreadyExistsException for service response error code
    64  	// "EndpointGroupAlreadyExistsException".
    65  	//
    66  	// The endpoint group that you specified already exists.
    67  	ErrCodeEndpointGroupAlreadyExistsException = "EndpointGroupAlreadyExistsException"
    68  
    69  	// ErrCodeEndpointGroupNotFoundException for service response error code
    70  	// "EndpointGroupNotFoundException".
    71  	//
    72  	// The endpoint group that you specified doesn't exist.
    73  	ErrCodeEndpointGroupNotFoundException = "EndpointGroupNotFoundException"
    74  
    75  	// ErrCodeEndpointNotFoundException for service response error code
    76  	// "EndpointNotFoundException".
    77  	//
    78  	// The endpoint that you specified doesn't exist.
    79  	ErrCodeEndpointNotFoundException = "EndpointNotFoundException"
    80  
    81  	// ErrCodeIncorrectCidrStateException for service response error code
    82  	// "IncorrectCidrStateException".
    83  	//
    84  	// The CIDR that you specified is not valid for this action. For example, the
    85  	// state of the CIDR might be incorrect for this action.
    86  	ErrCodeIncorrectCidrStateException = "IncorrectCidrStateException"
    87  
    88  	// ErrCodeInternalServiceErrorException for service response error code
    89  	// "InternalServiceErrorException".
    90  	//
    91  	// There was an internal error for AWS Global Accelerator.
    92  	ErrCodeInternalServiceErrorException = "InternalServiceErrorException"
    93  
    94  	// ErrCodeInvalidArgumentException for service response error code
    95  	// "InvalidArgumentException".
    96  	//
    97  	// An argument that you specified is invalid.
    98  	ErrCodeInvalidArgumentException = "InvalidArgumentException"
    99  
   100  	// ErrCodeInvalidNextTokenException for service response error code
   101  	// "InvalidNextTokenException".
   102  	//
   103  	// There isn't another item to return.
   104  	ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
   105  
   106  	// ErrCodeInvalidPortRangeException for service response error code
   107  	// "InvalidPortRangeException".
   108  	//
   109  	// The port numbers that you specified are not valid numbers or are not unique
   110  	// for this accelerator.
   111  	ErrCodeInvalidPortRangeException = "InvalidPortRangeException"
   112  
   113  	// ErrCodeLimitExceededException for service response error code
   114  	// "LimitExceededException".
   115  	//
   116  	// Processing your request would cause you to exceed an AWS Global Accelerator
   117  	// limit.
   118  	ErrCodeLimitExceededException = "LimitExceededException"
   119  
   120  	// ErrCodeListenerNotFoundException for service response error code
   121  	// "ListenerNotFoundException".
   122  	//
   123  	// The listener that you specified doesn't exist.
   124  	ErrCodeListenerNotFoundException = "ListenerNotFoundException"
   125  )
   126  
   127  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   128  	"AcceleratorNotDisabledException":       newErrorAcceleratorNotDisabledException,
   129  	"AcceleratorNotFoundException":          newErrorAcceleratorNotFoundException,
   130  	"AccessDeniedException":                 newErrorAccessDeniedException,
   131  	"AssociatedEndpointGroupFoundException": newErrorAssociatedEndpointGroupFoundException,
   132  	"AssociatedListenerFoundException":      newErrorAssociatedListenerFoundException,
   133  	"ByoipCidrNotFoundException":            newErrorByoipCidrNotFoundException,
   134  	"ConflictException":                     newErrorConflictException,
   135  	"EndpointAlreadyExistsException":        newErrorEndpointAlreadyExistsException,
   136  	"EndpointGroupAlreadyExistsException":   newErrorEndpointGroupAlreadyExistsException,
   137  	"EndpointGroupNotFoundException":        newErrorEndpointGroupNotFoundException,
   138  	"EndpointNotFoundException":             newErrorEndpointNotFoundException,
   139  	"IncorrectCidrStateException":           newErrorIncorrectCidrStateException,
   140  	"InternalServiceErrorException":         newErrorInternalServiceErrorException,
   141  	"InvalidArgumentException":              newErrorInvalidArgumentException,
   142  	"InvalidNextTokenException":             newErrorInvalidNextTokenException,
   143  	"InvalidPortRangeException":             newErrorInvalidPortRangeException,
   144  	"LimitExceededException":                newErrorLimitExceededException,
   145  	"ListenerNotFoundException":             newErrorListenerNotFoundException,
   146  }