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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package detective
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeConflictException for service response error code
    12  	// "ConflictException".
    13  	//
    14  	// The request attempted an invalid action.
    15  	ErrCodeConflictException = "ConflictException"
    16  
    17  	// ErrCodeInternalServerException for service response error code
    18  	// "InternalServerException".
    19  	//
    20  	// The request was valid but failed because of a problem with the service.
    21  	ErrCodeInternalServerException = "InternalServerException"
    22  
    23  	// ErrCodeResourceNotFoundException for service response error code
    24  	// "ResourceNotFoundException".
    25  	//
    26  	// The request refers to a nonexistent resource.
    27  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    28  
    29  	// ErrCodeServiceQuotaExceededException for service response error code
    30  	// "ServiceQuotaExceededException".
    31  	//
    32  	// This request cannot be completed for one of the following reasons.
    33  	//
    34  	//    * The request would cause the number of member accounts in the behavior
    35  	//    graph to exceed the maximum allowed. A behavior graph cannot have more
    36  	//    than 1000 member accounts.
    37  	//
    38  	//    * The request would cause the data rate for the behavior graph to exceed
    39  	//    the maximum allowed.
    40  	//
    41  	//    * Detective is unable to verify the data rate for the member account.
    42  	//    This is usually because the member account is not enrolled in Amazon GuardDuty.
    43  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
    44  
    45  	// ErrCodeValidationException for service response error code
    46  	// "ValidationException".
    47  	//
    48  	// The request parameters are invalid.
    49  	ErrCodeValidationException = "ValidationException"
    50  )
    51  
    52  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    53  	"ConflictException":             newErrorConflictException,
    54  	"InternalServerException":       newErrorInternalServerException,
    55  	"ResourceNotFoundException":     newErrorResourceNotFoundException,
    56  	"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
    57  	"ValidationException":           newErrorValidationException,
    58  }