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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package macie
     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 do not have required permissions to access the requested resource.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeInternalException for service response error code
    18  	// "InternalException".
    19  	//
    20  	// Internal server error.
    21  	ErrCodeInternalException = "InternalException"
    22  
    23  	// ErrCodeInvalidInputException for service response error code
    24  	// "InvalidInputException".
    25  	//
    26  	// The request was rejected because an invalid or out-of-range value was supplied
    27  	// for an input parameter.
    28  	ErrCodeInvalidInputException = "InvalidInputException"
    29  
    30  	// ErrCodeLimitExceededException for service response error code
    31  	// "LimitExceededException".
    32  	//
    33  	// The request was rejected because it attempted to create resources beyond
    34  	// the current AWS account limits. The error code describes the limit exceeded.
    35  	ErrCodeLimitExceededException = "LimitExceededException"
    36  )
    37  
    38  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    39  	"AccessDeniedException":  newErrorAccessDeniedException,
    40  	"InternalException":      newErrorInternalException,
    41  	"InvalidInputException":  newErrorInvalidInputException,
    42  	"LimitExceededException": newErrorLimitExceededException,
    43  }