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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package appsync
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccessDeniedException for service response error code
    12  	// "AccessDeniedException".
    13  	//
    14  	// You do not have access to perform this operation on this resource.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeApiKeyLimitExceededException for service response error code
    18  	// "ApiKeyLimitExceededException".
    19  	//
    20  	// The API key exceeded a limit. Try your request again.
    21  	ErrCodeApiKeyLimitExceededException = "ApiKeyLimitExceededException"
    22  
    23  	// ErrCodeApiKeyValidityOutOfBoundsException for service response error code
    24  	// "ApiKeyValidityOutOfBoundsException".
    25  	//
    26  	// The API key expiration must be set to a value between 1 and 365 days from
    27  	// creation (for CreateApiKey) or from update (for UpdateApiKey).
    28  	ErrCodeApiKeyValidityOutOfBoundsException = "ApiKeyValidityOutOfBoundsException"
    29  
    30  	// ErrCodeApiLimitExceededException for service response error code
    31  	// "ApiLimitExceededException".
    32  	//
    33  	// The GraphQL API exceeded a limit. Try your request again.
    34  	ErrCodeApiLimitExceededException = "ApiLimitExceededException"
    35  
    36  	// ErrCodeBadRequestException for service response error code
    37  	// "BadRequestException".
    38  	//
    39  	// The request is not well formed. For example, a value is invalid or a required
    40  	// field is missing. Check the field values, and then try again.
    41  	ErrCodeBadRequestException = "BadRequestException"
    42  
    43  	// ErrCodeConcurrentModificationException for service response error code
    44  	// "ConcurrentModificationException".
    45  	//
    46  	// Another modification is in progress at this time and it must complete before
    47  	// you can make your change.
    48  	ErrCodeConcurrentModificationException = "ConcurrentModificationException"
    49  
    50  	// ErrCodeGraphQLSchemaException for service response error code
    51  	// "GraphQLSchemaException".
    52  	//
    53  	// The GraphQL schema is not valid.
    54  	ErrCodeGraphQLSchemaException = "GraphQLSchemaException"
    55  
    56  	// ErrCodeInternalFailureException for service response error code
    57  	// "InternalFailureException".
    58  	//
    59  	// An internal AppSync error occurred. Try your request again.
    60  	ErrCodeInternalFailureException = "InternalFailureException"
    61  
    62  	// ErrCodeLimitExceededException for service response error code
    63  	// "LimitExceededException".
    64  	//
    65  	// The request exceeded a limit. Try your request again.
    66  	ErrCodeLimitExceededException = "LimitExceededException"
    67  
    68  	// ErrCodeNotFoundException for service response error code
    69  	// "NotFoundException".
    70  	//
    71  	// The resource specified in the request was not found. Check the resource,
    72  	// and then try again.
    73  	ErrCodeNotFoundException = "NotFoundException"
    74  
    75  	// ErrCodeUnauthorizedException for service response error code
    76  	// "UnauthorizedException".
    77  	//
    78  	// You are not authorized to perform this operation.
    79  	ErrCodeUnauthorizedException = "UnauthorizedException"
    80  )
    81  
    82  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    83  	"AccessDeniedException":              newErrorAccessDeniedException,
    84  	"ApiKeyLimitExceededException":       newErrorApiKeyLimitExceededException,
    85  	"ApiKeyValidityOutOfBoundsException": newErrorApiKeyValidityOutOfBoundsException,
    86  	"ApiLimitExceededException":          newErrorApiLimitExceededException,
    87  	"BadRequestException":                newErrorBadRequestException,
    88  	"ConcurrentModificationException":    newErrorConcurrentModificationException,
    89  	"GraphQLSchemaException":             newErrorGraphQLSchemaException,
    90  	"InternalFailureException":           newErrorInternalFailureException,
    91  	"LimitExceededException":             newErrorLimitExceededException,
    92  	"NotFoundException":                  newErrorNotFoundException,
    93  	"UnauthorizedException":              newErrorUnauthorizedException,
    94  }