class Bounce
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SES.Actions.Bounce |
Java | software.amazon.awscdk.services.ses.actions.Bounce |
Python | aws_cdk.aws_ses_actions.Bounce |
TypeScript (source) | @aws-cdk/aws-ses-actions » Bounce |
Implements
IReceipt
Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon SNS.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ses_actions from '@aws-cdk/aws-ses-actions';
import * as sns from '@aws-cdk/aws-sns';
declare const bounceTemplate: ses_actions.BounceTemplate;
declare const topic: sns.Topic;
const bounce = new ses_actions.Bounce({
sender: 'sender',
template: bounceTemplate,
// the properties below are optional
topic: topic,
});
Initializer
new Bounce(props: BounceProps)
Parameters
- props
Bounce
Props
Methods
Name | Description |
---|---|
bind(_rule) | Returns the receipt rule action specification. |
bind(_rule)
public bind(_rule: IReceiptRule): ReceiptRuleActionConfig
Parameters
- _rule
IReceipt
Rule
Returns
Returns the receipt rule action specification.