interface ReceiptRuleSetProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.SES.ReceiptRuleSetProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsses#ReceiptRuleSetProps |
![]() | software.amazon.awscdk.services.ses.ReceiptRuleSetProps |
![]() | aws_cdk.aws_ses.ReceiptRuleSetProps |
![]() | aws-cdk-lib » aws_ses » ReceiptRuleSetProps |
Construction properties for a ReceiptRuleSet.
Example
import * as cdk from 'aws-cdk-lib';
import * as ses from 'aws-cdk-lib/aws-ses';
import { CustomResourceConfig } from 'aws-cdk-lib/custom-resources';
const app = new cdk.App();
const stack = new cdk.Stack(app, 'Stack');
CustomResourceConfig.of(app).addLogRetentionLifetime(logs.RetentionDays.TEN_YEARS);
CustomResourceConfig.of(app).addRemovalPolicy(cdk.RemovalPolicy.DESTROY);
new ses.ReceiptRuleSet(app, 'RuleSet', {
dropSpam: true,
});
Properties
Name | Type | Description |
---|---|---|
drop | boolean | Whether to add a first rule to stop processing messages that have at least one spam indicator. |
receipt | string | The name for the receipt rule set. |
rules? | Receipt [] | The list of rules to add to this rule set. |
dropSpam?
Type:
boolean
(optional, default: false)
Whether to add a first rule to stop processing messages that have at least one spam indicator.
receiptRuleSetName?
Type:
string
(optional, default: A CloudFormation generated name.)
The name for the receipt rule set.
rules?
Type:
Receipt
[]
(optional, default: No rules are added to the rule set.)
The list of rules to add to this rule set.
Rules are added in the same order as they appear in the list.