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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package auditmanager
     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  	// Your account is not registered with Audit Manager. Check the delegated administrator
    15  	// setup on the Audit Manager settings page, and try again.
    16  	ErrCodeAccessDeniedException = "AccessDeniedException"
    17  
    18  	// ErrCodeInternalServerException for service response error code
    19  	// "InternalServerException".
    20  	//
    21  	// An internal service error occurred during the processing of your request.
    22  	// Try again later.
    23  	ErrCodeInternalServerException = "InternalServerException"
    24  
    25  	// ErrCodeResourceNotFoundException for service response error code
    26  	// "ResourceNotFoundException".
    27  	//
    28  	// The resource specified in the request cannot be found.
    29  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    30  
    31  	// ErrCodeValidationException for service response error code
    32  	// "ValidationException".
    33  	//
    34  	// The request has invalid or missing parameters.
    35  	ErrCodeValidationException = "ValidationException"
    36  )
    37  
    38  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    39  	"AccessDeniedException":     newErrorAccessDeniedException,
    40  	"InternalServerException":   newErrorInternalServerException,
    41  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    42  	"ValidationException":       newErrorValidationException,
    43  }