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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package greengrassv2
     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 permission to perform the action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeConflictException for service response error code
    18  	// "ConflictException".
    19  	//
    20  	// Your request has conflicting operations. This can occur if you're trying
    21  	// to perform more than one operation on the same resource at the same time.
    22  	ErrCodeConflictException = "ConflictException"
    23  
    24  	// ErrCodeInternalServerException for service response error code
    25  	// "InternalServerException".
    26  	//
    27  	// IoT Greengrass can't process your request right now. Try again later.
    28  	ErrCodeInternalServerException = "InternalServerException"
    29  
    30  	// ErrCodeRequestAlreadyInProgressException for service response error code
    31  	// "RequestAlreadyInProgressException".
    32  	//
    33  	// The request is already in progress. This exception occurs when you use a
    34  	// client token for multiple requests while IoT Greengrass is still processing
    35  	// an earlier request that uses the same client token.
    36  	ErrCodeRequestAlreadyInProgressException = "RequestAlreadyInProgressException"
    37  
    38  	// ErrCodeResourceNotFoundException for service response error code
    39  	// "ResourceNotFoundException".
    40  	//
    41  	// The requested resource can't be found.
    42  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    43  
    44  	// ErrCodeServiceQuotaExceededException for service response error code
    45  	// "ServiceQuotaExceededException".
    46  	//
    47  	// Your request exceeds a service quota. For example, you might have the maximum
    48  	// number of components that you can create.
    49  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    50  
    51  	// ErrCodeThrottlingException for service response error code
    52  	// "ThrottlingException".
    53  	//
    54  	// Your request exceeded a request rate quota. For example, you might have exceeded
    55  	// the amount of times that you can retrieve device or deployment status per
    56  	// second.
    57  	ErrCodeThrottlingException = "ThrottlingException"
    58  
    59  	// ErrCodeValidationException for service response error code
    60  	// "ValidationException".
    61  	//
    62  	// The request isn't valid. This can occur if your request contains malformed
    63  	// JSON or unsupported characters.
    64  	ErrCodeValidationException = "ValidationException"
    65  )
    66  
    67  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    68  	"AccessDeniedException":             newErrorAccessDeniedException,
    69  	"ConflictException":                 newErrorConflictException,
    70  	"InternalServerException":           newErrorInternalServerException,
    71  	"RequestAlreadyInProgressException": newErrorRequestAlreadyInProgressException,
    72  	"ResourceNotFoundException":         newErrorResourceNotFoundException,
    73  	"ServiceQuotaExceededException":     newErrorServiceQuotaExceededException,
    74  	"ThrottlingException":               newErrorThrottlingException,
    75  	"ValidationException":               newErrorValidationException,
    76  }