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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package workmailmessageflow
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeInvalidContentLocation for service response error code
    12  	// "InvalidContentLocation".
    13  	//
    14  	// WorkMail could not access the updated email content. Possible reasons:
    15  	//
    16  	//    * You made the request in a region other than your S3 bucket region.
    17  	//
    18  	//    * The S3 bucket owner (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-owner-condition.html)
    19  	//    is not the same as the calling AWS account.
    20  	//
    21  	//    * You have an incomplete or missing S3 bucket policy. For more information
    22  	//    about policies, see Updating message content with AWS Lambda (https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html)
    23  	//    in the WorkMail Administrator Guide.
    24  	ErrCodeInvalidContentLocation = "InvalidContentLocation"
    25  
    26  	// ErrCodeMessageFrozen for service response error code
    27  	// "MessageFrozen".
    28  	//
    29  	// The requested email is not eligible for update. This is usually the case
    30  	// for a redirected email.
    31  	ErrCodeMessageFrozen = "MessageFrozen"
    32  
    33  	// ErrCodeMessageRejected for service response error code
    34  	// "MessageRejected".
    35  	//
    36  	// The requested email could not be updated due to an error in the MIME content.
    37  	// Check the error message for more information about what caused the error.
    38  	ErrCodeMessageRejected = "MessageRejected"
    39  
    40  	// ErrCodeResourceNotFoundException for service response error code
    41  	// "ResourceNotFoundException".
    42  	//
    43  	// The requested email message is not found.
    44  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    45  )
    46  
    47  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
    48  	"InvalidContentLocation":    newErrorInvalidContentLocation,
    49  	"MessageFrozen":             newErrorMessageFrozen,
    50  	"MessageRejected":           newErrorMessageRejected,
    51  	"ResourceNotFoundException": newErrorResourceNotFoundException,
    52  }