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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package route53recoverycluster
     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 don't have sufficient permissions to query the routing control state.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeConflictException for service response error code
    18  	// "ConflictException".
    19  	//
    20  	// There was a conflict with this request. Try again.
    21  	ErrCodeConflictException = "ConflictException"
    22  
    23  	// ErrCodeEndpointTemporarilyUnavailableException for service response error code
    24  	// "EndpointTemporarilyUnavailableException".
    25  	//
    26  	// The cluster endpoint isn't available. Try another cluster endpoint.
    27  	ErrCodeEndpointTemporarilyUnavailableException = "EndpointTemporarilyUnavailableException"
    28  
    29  	// ErrCodeInternalServerException for service response error code
    30  	// "InternalServerException".
    31  	//
    32  	// There was an unexpected error during processing of the request.
    33  	ErrCodeInternalServerException = "InternalServerException"
    34  
    35  	// ErrCodeResourceNotFoundException for service response error code
    36  	// "ResourceNotFoundException".
    37  	//
    38  	// The request references a routing control that was not found.
    39  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    40  
    41  	// ErrCodeThrottlingException for service response error code
    42  	// "ThrottlingException".
    43  	//
    44  	// The request was denied because of request throttling.
    45  	ErrCodeThrottlingException = "ThrottlingException"
    46  
    47  	// ErrCodeValidationException for service response error code
    48  	// "ValidationException".
    49  	//
    50  	// There was a validation error on the request.
    51  	ErrCodeValidationException = "ValidationException"
    52  )
    53  
    54  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    55  	"AccessDeniedException":                   newErrorAccessDeniedException,
    56  	"ConflictException":                       newErrorConflictException,
    57  	"EndpointTemporarilyUnavailableException": newErrorEndpointTemporarilyUnavailableException,
    58  	"InternalServerException":                 newErrorInternalServerException,
    59  	"ResourceNotFoundException":               newErrorResourceNotFoundException,
    60  	"ThrottlingException":                     newErrorThrottlingException,
    61  	"ValidationException":                     newErrorValidationException,
    62  }