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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package cloudhsmv2
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeCloudHsmAccessDeniedException for service response error code
    12  	// "CloudHsmAccessDeniedException".
    13  	//
    14  	// The request was rejected because the requester does not have permission to
    15  	// perform the requested operation.
    16  	ErrCodeCloudHsmAccessDeniedException = "CloudHsmAccessDeniedException"
    17  
    18  	// ErrCodeCloudHsmInternalFailureException for service response error code
    19  	// "CloudHsmInternalFailureException".
    20  	//
    21  	// The request was rejected because of an AWS CloudHSM internal failure. The
    22  	// request can be retried.
    23  	ErrCodeCloudHsmInternalFailureException = "CloudHsmInternalFailureException"
    24  
    25  	// ErrCodeCloudHsmInvalidRequestException for service response error code
    26  	// "CloudHsmInvalidRequestException".
    27  	//
    28  	// The request was rejected because it is not a valid request.
    29  	ErrCodeCloudHsmInvalidRequestException = "CloudHsmInvalidRequestException"
    30  
    31  	// ErrCodeCloudHsmResourceNotFoundException for service response error code
    32  	// "CloudHsmResourceNotFoundException".
    33  	//
    34  	// The request was rejected because it refers to a resource that cannot be found.
    35  	ErrCodeCloudHsmResourceNotFoundException = "CloudHsmResourceNotFoundException"
    36  
    37  	// ErrCodeCloudHsmServiceException for service response error code
    38  	// "CloudHsmServiceException".
    39  	//
    40  	// The request was rejected because an error occurred.
    41  	ErrCodeCloudHsmServiceException = "CloudHsmServiceException"
    42  
    43  	// ErrCodeCloudHsmTagException for service response error code
    44  	// "CloudHsmTagException".
    45  	//
    46  	// The request was rejected because of a tagging failure. Verify the tag conditions
    47  	// in all applicable policies, and then retry the request.
    48  	ErrCodeCloudHsmTagException = "CloudHsmTagException"
    49  )
    50  
    51  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    52  	"CloudHsmAccessDeniedException":     newErrorCloudHsmAccessDeniedException,
    53  	"CloudHsmInternalFailureException":  newErrorCloudHsmInternalFailureException,
    54  	"CloudHsmInvalidRequestException":   newErrorCloudHsmInvalidRequestException,
    55  	"CloudHsmResourceNotFoundException": newErrorCloudHsmResourceNotFoundException,
    56  	"CloudHsmServiceException":          newErrorCloudHsmServiceException,
    57  	"CloudHsmTagException":              newErrorCloudHsmTagException,
    58  }