Class CfnReceiptRule.BounceActionProperty
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).
Inheritance
Implements
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BounceActionProperty : Object, CfnReceiptRule.IBounceActionProperty
Syntax (vb)
Public Class BounceActionProperty
Inherits Object
Implements CfnReceiptRule.IBounceActionProperty
Remarks
For information about sending a bounce message in response to a received email, see the Amazon SES Developer Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;
var bounceActionProperty = new BounceActionProperty {
Message = "message",
Sender = "sender",
SmtpReplyCode = "smtpReplyCode",
// the properties below are optional
StatusCode = "statusCode",
TopicArn = "topicArn"
};
Synopsis
Constructors
BounceActionProperty() |
Properties
Message | Human-readable text to include in the bounce message. |
Sender | The email address of the sender of the bounced email. |
SmtpReplyCode | The SMTP reply code, as defined by RFC 5321 . |
StatusCode | The SMTP enhanced status code, as defined by RFC 3463 . |
TopicArn | The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. |
Constructors
BounceActionProperty()
public BounceActionProperty()
Properties
Message
Human-readable text to include in the bounce message.
public string Message { get; set; }
Property Value
System.String
Remarks
Sender
The email address of the sender of the bounced email.
public string Sender { get; set; }
Property Value
System.String
Remarks
This is the address from which the bounce message is sent.
SmtpReplyCode
The SMTP reply code, as defined by RFC 5321 .
public string SmtpReplyCode { get; set; }
Property Value
System.String
Remarks
StatusCode
The SMTP enhanced status code, as defined by RFC 3463 .
public string StatusCode { get; set; }
Property Value
System.String
Remarks
TopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken.
public string TopicArn { get; set; }
Property Value
System.String
Remarks
You can find the ARN of a topic by using the ListTopics operation in Amazon SNS.
For more information about Amazon SNS topics, see the Amazon SNS Developer Guide .