class Bounce
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SES.Actions.Bounce |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssesactions#Bounce |
Java | software.amazon.awscdk.services.ses.actions.Bounce |
Python | aws_cdk.aws_ses_actions.Bounce |
TypeScript (source) | aws-cdk-lib » 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 { aws_ses_actions as ses_actions } from 'aws-cdk-lib';
import { aws_sns as sns } from 'aws-cdk-lib';
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.