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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package securityhub
     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 specified in the request.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeInternalException for service response error code
    18  	// "InternalException".
    19  	//
    20  	// Internal server error.
    21  	ErrCodeInternalException = "InternalException"
    22  
    23  	// ErrCodeInvalidAccessException for service response error code
    24  	// "InvalidAccessException".
    25  	//
    26  	// There is an issue with the account used to make the request. Either Security
    27  	// Hub is not enabled for the account, or the account does not have permission
    28  	// to perform this action.
    29  	ErrCodeInvalidAccessException = "InvalidAccessException"
    30  
    31  	// ErrCodeInvalidInputException for service response error code
    32  	// "InvalidInputException".
    33  	//
    34  	// The request was rejected because you supplied an invalid or out-of-range
    35  	// value for an input parameter.
    36  	ErrCodeInvalidInputException = "InvalidInputException"
    37  
    38  	// ErrCodeLimitExceededException for service response error code
    39  	// "LimitExceededException".
    40  	//
    41  	// The request was rejected because it attempted to create resources beyond
    42  	// the current Amazon Web Services account or throttling limits. The error code
    43  	// describes the limit exceeded.
    44  	ErrCodeLimitExceededException = "LimitExceededException"
    45  
    46  	// ErrCodeResourceConflictException for service response error code
    47  	// "ResourceConflictException".
    48  	//
    49  	// The resource specified in the request conflicts with an existing resource.
    50  	ErrCodeResourceConflictException = "ResourceConflictException"
    51  
    52  	// ErrCodeResourceNotFoundException for service response error code
    53  	// "ResourceNotFoundException".
    54  	//
    55  	// The request was rejected because we can't find the specified resource.
    56  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    57  )
    58  
    59  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    60  	"AccessDeniedException":     newErrorAccessDeniedException,
    61  	"InternalException":         newErrorInternalException,
    62  	"InvalidAccessException":    newErrorInvalidAccessException,
    63  	"InvalidInputException":     newErrorInvalidInputException,
    64  	"LimitExceededException":    newErrorLimitExceededException,
    65  	"ResourceConflictException": newErrorResourceConflictException,
    66  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    67  }