AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

RecipientDsnFields

import "github.com/aws/aws-sdk-go/service/ses"

type RecipientDsnFields struct { Action *string `type:"string" required:"true" enum:"DsnAction"` DiagnosticCode *string `type:"string"` ExtensionFields []*ExtensionField `type:"list"` FinalRecipient *string `type:"string"` LastAttemptDate *time.Time `type:"timestamp"` RemoteMta *string `type:"string"` Status *string `type:"string" required:"true"` }

Recipient-related information to include in the Delivery Status Notification (DSN) when an email that Amazon SES receives on your behalf bounces.

For information about receiving email through Amazon SES, see the Amazon SES Developer Guide (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html).

Action

Type: *string

The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464 (https://tools.ietf.org/html/rfc3464).

Action is a required field

DiagnosticCode

Type: *string

An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 (https://tools.ietf.org/html/rfc3463) for the correct formatting of this parameter.

ExtensionFields

Additional X-headers to include in the Delivery Status Notification (DSN) when an email that Amazon SES receives on your behalf bounces.

For information about receiving email through Amazon SES, see the Amazon SES Developer Guide (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html).

FinalRecipient

Type: *string

The email address that the message was ultimately delivered to. This corresponds to the Final-Recipient in the DSN. If not specified, FinalRecipient will be set to the Recipient specified in the BouncedRecipientInfo structure. Either FinalRecipient or the recipient in BouncedRecipientInfo must be a recipient of the original bounced message.

Do not prepend the FinalRecipient email address with rfc 822;, as described in RFC 3798 (https://tools.ietf.org/html/rfc3798).

LastAttemptDate

Type: *time.Time

The time the final delivery attempt was made, in RFC 822 (https://www.ietf.org/rfc/rfc0822.txt) date-time format.

RemoteMta

Type: *string

The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (https://tools.ietf.org/html/rfc3464) (mta-name-type; mta-name). This parameter typically applies only to propagating synchronous bounces.

Status

Type: *string

The status code that indicates what went wrong. This is required by RFC 3464 (https://tools.ietf.org/html/rfc3464).

Status is a required field

Method

GoString

func (s RecipientDsnFields) GoString() string

GoString returns the string representation

SetAction

func (s *RecipientDsnFields) SetAction(v string) *RecipientDsnFields

SetAction sets the Action field's value.

SetDiagnosticCode

func (s *RecipientDsnFields) SetDiagnosticCode(v string) *RecipientDsnFields

SetDiagnosticCode sets the DiagnosticCode field's value.

SetExtensionFields

func (s *RecipientDsnFields) SetExtensionFields(v []*ExtensionField) *RecipientDsnFields

SetExtensionFields sets the ExtensionFields field's value.

SetFinalRecipient

func (s *RecipientDsnFields) SetFinalRecipient(v string) *RecipientDsnFields

SetFinalRecipient sets the FinalRecipient field's value.

SetLastAttemptDate

func (s *RecipientDsnFields) SetLastAttemptDate(v time.Time) *RecipientDsnFields

SetLastAttemptDate sets the LastAttemptDate field's value.

SetRemoteMta

func (s *RecipientDsnFields) SetRemoteMta(v string) *RecipientDsnFields

SetRemoteMta sets the RemoteMta field's value.

SetStatus

func (s *RecipientDsnFields) SetStatus(v string) *RecipientDsnFields

SetStatus sets the Status field's value.

String

func (s RecipientDsnFields) String() string

String returns the string representation

Validate

func (s *RecipientDsnFields) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: