File: errors.go

package info (click to toggle)
golang-github-aws-aws-sdk-go 1.44.133-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates
  • size: 245,296 kB
  • sloc: makefile: 120
file content (52 lines) | stat: -rw-r--r-- 1,970 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.

package workmailmessageflow

import (
	"github.com/aws/aws-sdk-go/private/protocol"
)

const (

	// ErrCodeInvalidContentLocation for service response error code
	// "InvalidContentLocation".
	//
	// WorkMail could not access the updated email content. Possible reasons:
	//
	//    * You made the request in a region other than your S3 bucket region.
	//
	//    * The S3 bucket owner (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-owner-condition.html)
	//    is not the same as the calling AWS account.
	//
	//    * You have an incomplete or missing S3 bucket policy. For more information
	//    about policies, see Updating message content with AWS Lambda (https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html)
	//    in the WorkMail Administrator Guide.
	ErrCodeInvalidContentLocation = "InvalidContentLocation"

	// ErrCodeMessageFrozen for service response error code
	// "MessageFrozen".
	//
	// The requested email is not eligible for update. This is usually the case
	// for a redirected email.
	ErrCodeMessageFrozen = "MessageFrozen"

	// ErrCodeMessageRejected for service response error code
	// "MessageRejected".
	//
	// The requested email could not be updated due to an error in the MIME content.
	// Check the error message for more information about what caused the error.
	ErrCodeMessageRejected = "MessageRejected"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The requested email message is not found.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
)

var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
	"InvalidContentLocation":    newErrorInvalidContentLocation,
	"MessageFrozen":             newErrorMessageFrozen,
	"MessageRejected":           newErrorMessageRejected,
	"ResourceNotFoundException": newErrorResourceNotFoundException,
}