Class Bounce
Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon SNS.
Inheritance
System.Object
Bounce
Implements
Namespace: Amazon.CDK.AWS.SES.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Bounce : DeputyBase, IReceiptRuleAction
Syntax (vb)
Public Class Bounce
Inherits DeputyBase
Implements IReceiptRuleAction
Remarks
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.Actions;
using Amazon.CDK.AWS.SNS;
BounceTemplate bounceTemplate;
Topic topic;
var bounce = new Bounce(new BounceProps {
Sender = "sender",
Template = bounceTemplate,
// the properties below are optional
Topic = topic
});
Synopsis
Constructors
Bounce(IBounceProps) | |
Bounce(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Bounce(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IReceiptRule) | Returns the receipt rule action specification. |
Constructors
Bounce(IBounceProps)
Bounce(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Bounce(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Bounce(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Bounce(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(IReceiptRule)
Returns the receipt rule action specification.
public virtual IReceiptRuleActionConfig Bind(IReceiptRule rule)
Parameters
- rule IReceiptRule
Returns