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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package gamelift
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeConflictException for service response error code
    12  	// "ConflictException".
    13  	//
    14  	// The requested operation would cause a conflict with the current state of
    15  	// a service resource associated with the request. Resolve the conflict before
    16  	// retrying this request.
    17  	ErrCodeConflictException = "ConflictException"
    18  
    19  	// ErrCodeFleetCapacityExceededException for service response error code
    20  	// "FleetCapacityExceededException".
    21  	//
    22  	// The specified fleet has no available instances to fulfill a CreateGameSession
    23  	// request. Clients can retry such requests immediately or after a waiting period.
    24  	ErrCodeFleetCapacityExceededException = "FleetCapacityExceededException"
    25  
    26  	// ErrCodeGameSessionFullException for service response error code
    27  	// "GameSessionFullException".
    28  	//
    29  	// The game instance is currently full and cannot allow the requested player(s)
    30  	// to join. Clients can retry such requests immediately or after a waiting period.
    31  	ErrCodeGameSessionFullException = "GameSessionFullException"
    32  
    33  	// ErrCodeIdempotentParameterMismatchException for service response error code
    34  	// "IdempotentParameterMismatchException".
    35  	//
    36  	// A game session with this custom ID string already exists in this fleet. Resolve
    37  	// this conflict before retrying this request.
    38  	ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException"
    39  
    40  	// ErrCodeInternalServiceException for service response error code
    41  	// "InternalServiceException".
    42  	//
    43  	// The service encountered an unrecoverable internal failure while processing
    44  	// the request. Clients can retry such requests immediately or after a waiting
    45  	// period.
    46  	ErrCodeInternalServiceException = "InternalServiceException"
    47  
    48  	// ErrCodeInvalidFleetStatusException for service response error code
    49  	// "InvalidFleetStatusException".
    50  	//
    51  	// The requested operation would cause a conflict with the current state of
    52  	// a resource associated with the request and/or the fleet. Resolve the conflict
    53  	// before retrying.
    54  	ErrCodeInvalidFleetStatusException = "InvalidFleetStatusException"
    55  
    56  	// ErrCodeInvalidGameSessionStatusException for service response error code
    57  	// "InvalidGameSessionStatusException".
    58  	//
    59  	// The requested operation would cause a conflict with the current state of
    60  	// a resource associated with the request and/or the game instance. Resolve
    61  	// the conflict before retrying.
    62  	ErrCodeInvalidGameSessionStatusException = "InvalidGameSessionStatusException"
    63  
    64  	// ErrCodeInvalidRequestException for service response error code
    65  	// "InvalidRequestException".
    66  	//
    67  	// One or more parameter values in the request are invalid. Correct the invalid
    68  	// parameter values before retrying.
    69  	ErrCodeInvalidRequestException = "InvalidRequestException"
    70  
    71  	// ErrCodeLimitExceededException for service response error code
    72  	// "LimitExceededException".
    73  	//
    74  	// The requested operation would cause the resource to exceed the allowed service
    75  	// limit. Resolve the issue before retrying.
    76  	ErrCodeLimitExceededException = "LimitExceededException"
    77  
    78  	// ErrCodeNotFoundException for service response error code
    79  	// "NotFoundException".
    80  	//
    81  	// A service resource associated with the request could not be found. Clients
    82  	// should not retry such requests.
    83  	ErrCodeNotFoundException = "NotFoundException"
    84  
    85  	// ErrCodeOutOfCapacityException for service response error code
    86  	// "OutOfCapacityException".
    87  	//
    88  	// The specified game server group has no available game servers to fulfill
    89  	// a ClaimGameServer request. Clients can retry such requests immediately or
    90  	// after a waiting period.
    91  	ErrCodeOutOfCapacityException = "OutOfCapacityException"
    92  
    93  	// ErrCodeTaggingFailedException for service response error code
    94  	// "TaggingFailedException".
    95  	//
    96  	// The requested tagging operation did not succeed. This may be due to invalid
    97  	// tag format or the maximum tag limit may have been exceeded. Resolve the issue
    98  	// before retrying.
    99  	ErrCodeTaggingFailedException = "TaggingFailedException"
   100  
   101  	// ErrCodeTerminalRoutingStrategyException for service response error code
   102  	// "TerminalRoutingStrategyException".
   103  	//
   104  	// The service is unable to resolve the routing for a particular alias because
   105  	// it has a terminal RoutingStrategy associated with it. The message returned
   106  	// in this exception is the message defined in the routing strategy itself.
   107  	// Such requests should only be retried if the routing strategy for the specified
   108  	// alias is modified.
   109  	ErrCodeTerminalRoutingStrategyException = "TerminalRoutingStrategyException"
   110  
   111  	// ErrCodeUnauthorizedException for service response error code
   112  	// "UnauthorizedException".
   113  	//
   114  	// The client failed authentication. Clients should not retry such requests.
   115  	ErrCodeUnauthorizedException = "UnauthorizedException"
   116  
   117  	// ErrCodeUnsupportedRegionException for service response error code
   118  	// "UnsupportedRegionException".
   119  	//
   120  	// The requested operation is not supported in the Region specified.
   121  	ErrCodeUnsupportedRegionException = "UnsupportedRegionException"
   122  )
   123  
   124  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   125  	"ConflictException":                    newErrorConflictException,
   126  	"FleetCapacityExceededException":       newErrorFleetCapacityExceededException,
   127  	"GameSessionFullException":             newErrorGameSessionFullException,
   128  	"IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException,
   129  	"InternalServiceException":             newErrorInternalServiceException,
   130  	"InvalidFleetStatusException":          newErrorInvalidFleetStatusException,
   131  	"InvalidGameSessionStatusException":    newErrorInvalidGameSessionStatusException,
   132  	"InvalidRequestException":              newErrorInvalidRequestException,
   133  	"LimitExceededException":               newErrorLimitExceededException,
   134  	"NotFoundException":                    newErrorNotFoundException,
   135  	"OutOfCapacityException":               newErrorOutOfCapacityException,
   136  	"TaggingFailedException":               newErrorTaggingFailedException,
   137  	"TerminalRoutingStrategyException":     newErrorTerminalRoutingStrategyException,
   138  	"UnauthorizedException":                newErrorUnauthorizedException,
   139  	"UnsupportedRegionException":           newErrorUnsupportedRegionException,
   140  }