libZSservicesZSamazonka-sesZSamazonka-ses
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SES.Types.BounceAction

Description

 
Synopsis

Documentation

data BounceAction Source #

When included in a receipt rule, this action rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

For information about sending a bounce message in response to a received email, see the Amazon SES Developer Guide.

See: newBounceAction smart constructor.

Constructors

BounceAction' 

Fields

  • topicArn :: Maybe Text

    The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

  • statusCode :: Maybe Text

    The SMTP enhanced status code, as defined by RFC 3463.

  • smtpReplyCode :: Text

    The SMTP reply code, as defined by RFC 5321.

  • message :: Text

    Human-readable text to include in the bounce message.

  • sender :: Text

    The email address of the sender of the bounced email. This is the address from which the bounce message will be sent.

Instances

Instances details
Eq BounceAction Source # 
Instance details

Defined in Amazonka.SES.Types.BounceAction

Read BounceAction Source # 
Instance details

Defined in Amazonka.SES.Types.BounceAction

Show BounceAction Source # 
Instance details

Defined in Amazonka.SES.Types.BounceAction

Generic BounceAction Source # 
Instance details

Defined in Amazonka.SES.Types.BounceAction

Associated Types

type Rep BounceAction :: Type -> Type #

NFData BounceAction Source # 
Instance details

Defined in Amazonka.SES.Types.BounceAction

Methods

rnf :: BounceAction -> () #

Hashable BounceAction Source # 
Instance details

Defined in Amazonka.SES.Types.BounceAction

ToQuery BounceAction Source # 
Instance details

Defined in Amazonka.SES.Types.BounceAction

FromXML BounceAction Source # 
Instance details

Defined in Amazonka.SES.Types.BounceAction

type Rep BounceAction Source # 
Instance details

Defined in Amazonka.SES.Types.BounceAction

type Rep BounceAction = D1 ('MetaData "BounceAction" "Amazonka.SES.Types.BounceAction" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "BounceAction'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "topicArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "statusCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "smtpReplyCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "sender") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newBounceAction Source #

Create a value of BounceAction with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:topicArn:BounceAction', bounceAction_topicArn - The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

$sel:statusCode:BounceAction', bounceAction_statusCode - The SMTP enhanced status code, as defined by RFC 3463.

$sel:smtpReplyCode:BounceAction', bounceAction_smtpReplyCode - The SMTP reply code, as defined by RFC 5321.

$sel:message:BounceAction', bounceAction_message - Human-readable text to include in the bounce message.

$sel:sender:BounceAction', bounceAction_sender - The email address of the sender of the bounced email. This is the address from which the bounce message will be sent.

bounceAction_topicArn :: Lens' BounceAction (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

bounceAction_statusCode :: Lens' BounceAction (Maybe Text) Source #

The SMTP enhanced status code, as defined by RFC 3463.

bounceAction_smtpReplyCode :: Lens' BounceAction Text Source #

The SMTP reply code, as defined by RFC 5321.

bounceAction_message :: Lens' BounceAction Text Source #

Human-readable text to include in the bounce message.

bounceAction_sender :: Lens' BounceAction Text Source #

The email address of the sender of the bounced email. This is the address from which the bounce message will be sent.