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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package eks
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeBadRequestException for service response error code
    12  	// "BadRequestException".
    13  	//
    14  	// This exception is thrown if the request contains a semantic error. The precise
    15  	// meaning will depend on the API, and will be documented in the error message.
    16  	ErrCodeBadRequestException = "BadRequestException"
    17  
    18  	// ErrCodeClientException for service response error code
    19  	// "ClientException".
    20  	//
    21  	// These errors are usually caused by a client action. Actions can include using
    22  	// an action or resource on behalf of a user that doesn't have permissions to
    23  	// use the action or resource or specifying an identifier that is not valid.
    24  	ErrCodeClientException = "ClientException"
    25  
    26  	// ErrCodeInvalidParameterException for service response error code
    27  	// "InvalidParameterException".
    28  	//
    29  	// The specified parameter is invalid. Review the available parameters for the
    30  	// API request.
    31  	ErrCodeInvalidParameterException = "InvalidParameterException"
    32  
    33  	// ErrCodeInvalidRequestException for service response error code
    34  	// "InvalidRequestException".
    35  	//
    36  	// The request is invalid given the state of the cluster. Check the state of
    37  	// the cluster and the associated operations.
    38  	ErrCodeInvalidRequestException = "InvalidRequestException"
    39  
    40  	// ErrCodeNotFoundException for service response error code
    41  	// "NotFoundException".
    42  	//
    43  	// A service resource associated with the request could not be found. Clients
    44  	// should not retry such requests.
    45  	ErrCodeNotFoundException = "NotFoundException"
    46  
    47  	// ErrCodeResourceInUseException for service response error code
    48  	// "ResourceInUseException".
    49  	//
    50  	// The specified resource is in use.
    51  	ErrCodeResourceInUseException = "ResourceInUseException"
    52  
    53  	// ErrCodeResourceLimitExceededException for service response error code
    54  	// "ResourceLimitExceededException".
    55  	//
    56  	// You have encountered a service limit on the specified resource.
    57  	ErrCodeResourceLimitExceededException = "ResourceLimitExceededException"
    58  
    59  	// ErrCodeResourceNotFoundException for service response error code
    60  	// "ResourceNotFoundException".
    61  	//
    62  	// The specified resource could not be found. You can view your available clusters
    63  	// with ListClusters. You can view your available managed node groups with ListNodegroups.
    64  	// Amazon EKS clusters and node groups are Region-specific.
    65  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    66  
    67  	// ErrCodeServerException for service response error code
    68  	// "ServerException".
    69  	//
    70  	// These errors are usually caused by a server-side issue.
    71  	ErrCodeServerException = "ServerException"
    72  
    73  	// ErrCodeServiceUnavailableException for service response error code
    74  	// "ServiceUnavailableException".
    75  	//
    76  	// The service is unavailable. Back off and retry the operation.
    77  	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
    78  
    79  	// ErrCodeUnsupportedAvailabilityZoneException for service response error code
    80  	// "UnsupportedAvailabilityZoneException".
    81  	//
    82  	// At least one of your specified cluster subnets is in an Availability Zone
    83  	// that does not support Amazon EKS. The exception output specifies the supported
    84  	// Availability Zones for your account, from which you can choose subnets for
    85  	// your cluster.
    86  	ErrCodeUnsupportedAvailabilityZoneException = "UnsupportedAvailabilityZoneException"
    87  )
    88  
    89  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    90  	"BadRequestException":                  newErrorBadRequestException,
    91  	"ClientException":                      newErrorClientException,
    92  	"InvalidParameterException":            newErrorInvalidParameterException,
    93  	"InvalidRequestException":              newErrorInvalidRequestException,
    94  	"NotFoundException":                    newErrorNotFoundException,
    95  	"ResourceInUseException":               newErrorResourceInUseException,
    96  	"ResourceLimitExceededException":       newErrorResourceLimitExceededException,
    97  	"ResourceNotFoundException":            newErrorResourceNotFoundException,
    98  	"ServerException":                      newErrorServerException,
    99  	"ServiceUnavailableException":          newErrorServiceUnavailableException,
   100  	"UnsupportedAvailabilityZoneException": newErrorUnsupportedAvailabilityZoneException,
   101  }