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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package s3outposts
     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  	// Access was denied for this action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeConflictException for service response error code
    18  	// "ConflictException".
    19  	//
    20  	// There was a conflict with this action, and it could not be completed.
    21  	ErrCodeConflictException = "ConflictException"
    22  
    23  	// ErrCodeInternalServerException for service response error code
    24  	// "InternalServerException".
    25  	//
    26  	// There was an exception with the internal server.
    27  	ErrCodeInternalServerException = "InternalServerException"
    28  
    29  	// ErrCodeResourceNotFoundException for service response error code
    30  	// "ResourceNotFoundException".
    31  	//
    32  	// The requested resource was not found.
    33  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    34  
    35  	// ErrCodeValidationException for service response error code
    36  	// "ValidationException".
    37  	//
    38  	// There was an exception validating this data.
    39  	ErrCodeValidationException = "ValidationException"
    40  )
    41  
    42  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    43  	"AccessDeniedException":     newErrorAccessDeniedException,
    44  	"ConflictException":         newErrorConflictException,
    45  	"InternalServerException":   newErrorInternalServerException,
    46  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    47  	"ValidationException":       newErrorValidationException,
    48  }