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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package lightsail
     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  	// Lightsail throws this exception when the user cannot be authenticated or
    15  	// uses invalid credentials to access a resource.
    16  	ErrCodeAccessDeniedException = "AccessDeniedException"
    17  
    18  	// ErrCodeAccountSetupInProgressException for service response error code
    19  	// "AccountSetupInProgressException".
    20  	//
    21  	// Lightsail throws this exception when an account is still in the setup in
    22  	// progress state.
    23  	ErrCodeAccountSetupInProgressException = "AccountSetupInProgressException"
    24  
    25  	// ErrCodeInvalidInputException for service response error code
    26  	// "InvalidInputException".
    27  	//
    28  	// Lightsail throws this exception when user input does not conform to the validation
    29  	// rules of an input field.
    30  	//
    31  	// Domain and distribution APIs are only available in the N. Virginia (us-east-1)
    32  	// AWS Region. Please set your AWS Region configuration to us-east-1 to create,
    33  	// view, or edit these resources.
    34  	ErrCodeInvalidInputException = "InvalidInputException"
    35  
    36  	// ErrCodeNotFoundException for service response error code
    37  	// "NotFoundException".
    38  	//
    39  	// Lightsail throws this exception when it cannot find a resource.
    40  	ErrCodeNotFoundException = "NotFoundException"
    41  
    42  	// ErrCodeOperationFailureException for service response error code
    43  	// "OperationFailureException".
    44  	//
    45  	// Lightsail throws this exception when an operation fails to execute.
    46  	ErrCodeOperationFailureException = "OperationFailureException"
    47  
    48  	// ErrCodeServiceException for service response error code
    49  	// "ServiceException".
    50  	//
    51  	// A general service exception.
    52  	ErrCodeServiceException = "ServiceException"
    53  
    54  	// ErrCodeUnauthenticatedException for service response error code
    55  	// "UnauthenticatedException".
    56  	//
    57  	// Lightsail throws this exception when the user has not been authenticated.
    58  	ErrCodeUnauthenticatedException = "UnauthenticatedException"
    59  )
    60  
    61  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    62  	"AccessDeniedException":           newErrorAccessDeniedException,
    63  	"AccountSetupInProgressException": newErrorAccountSetupInProgressException,
    64  	"InvalidInputException":           newErrorInvalidInputException,
    65  	"NotFoundException":               newErrorNotFoundException,
    66  	"OperationFailureException":       newErrorOperationFailureException,
    67  	"ServiceException":                newErrorServiceException,
    68  	"UnauthenticatedException":        newErrorUnauthenticatedException,
    69  }