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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package apprunner
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeInternalServiceErrorException for service response error code
    12  	// "InternalServiceErrorException".
    13  	//
    14  	// An unexpected service exception occurred.
    15  	ErrCodeInternalServiceErrorException = "InternalServiceErrorException"
    16  
    17  	// ErrCodeInvalidRequestException for service response error code
    18  	// "InvalidRequestException".
    19  	//
    20  	// One or more input parameters aren't valid. Refer to the API action's document
    21  	// page, correct the input parameters, and try the action again.
    22  	ErrCodeInvalidRequestException = "InvalidRequestException"
    23  
    24  	// ErrCodeInvalidStateException for service response error code
    25  	// "InvalidStateException".
    26  	//
    27  	// You can't perform this action when the resource is in its current state.
    28  	ErrCodeInvalidStateException = "InvalidStateException"
    29  
    30  	// ErrCodeResourceNotFoundException for service response error code
    31  	// "ResourceNotFoundException".
    32  	//
    33  	// A resource doesn't exist for the specified Amazon Resource Name (ARN) in
    34  	// your Amazon Web Services account.
    35  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    36  
    37  	// ErrCodeServiceQuotaExceededException for service response error code
    38  	// "ServiceQuotaExceededException".
    39  	//
    40  	// App Runner can't create this resource. You've reached your account quota
    41  	// for this resource type.
    42  	//
    43  	// For App Runner per-resource quotas, see App Runner endpoints and quotas (https://docs.aws.amazon.com/general/latest/gr/apprunner.html)
    44  	// in the Amazon Web Services General Reference.
    45  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    46  )
    47  
    48  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    49  	"InternalServiceErrorException": newErrorInternalServiceErrorException,
    50  	"InvalidRequestException":       newErrorInvalidRequestException,
    51  	"InvalidStateException":         newErrorInvalidStateException,
    52  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    53  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    54  }