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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package ssmcontacts
     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 access to perform this operation.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeConflictException for service response error code
    18  	// "ConflictException".
    19  	//
    20  	// Updating or deleting a resource causes an inconsistent state.
    21  	ErrCodeConflictException = "ConflictException"
    22  
    23  	// ErrCodeDataEncryptionException for service response error code
    24  	// "DataEncryptionException".
    25  	//
    26  	// The operation failed to due an encryption key error.
    27  	ErrCodeDataEncryptionException = "DataEncryptionException"
    28  
    29  	// ErrCodeInternalServerException for service response error code
    30  	// "InternalServerException".
    31  	//
    32  	// Unexpected error occurred while processing the request.
    33  	ErrCodeInternalServerException = "InternalServerException"
    34  
    35  	// ErrCodeResourceNotFoundException for service response error code
    36  	// "ResourceNotFoundException".
    37  	//
    38  	// Request references a resource that doesn't exist.
    39  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    40  
    41  	// ErrCodeServiceQuotaExceededException for service response error code
    42  	// "ServiceQuotaExceededException".
    43  	//
    44  	// Request would cause a service quota to be exceeded.
    45  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    46  
    47  	// ErrCodeThrottlingException for service response error code
    48  	// "ThrottlingException".
    49  	//
    50  	// The request was denied due to request throttling.
    51  	ErrCodeThrottlingException = "ThrottlingException"
    52  
    53  	// ErrCodeValidationException for service response error code
    54  	// "ValidationException".
    55  	//
    56  	// The input fails to satisfy the constraints specified by an Amazon Web Services
    57  	// service.
    58  	ErrCodeValidationException = "ValidationException"
    59  )
    60  
    61  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    62  	"AccessDeniedException":         newErrorAccessDeniedException,
    63  	"ConflictException":             newErrorConflictException,
    64  	"DataEncryptionException":       newErrorDataEncryptionException,
    65  	"InternalServerException":       newErrorInternalServerException,
    66  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    67  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    68  	"ThrottlingException":           newErrorThrottlingException,
    69  	"ValidationException":           newErrorValidationException,
    70  }