AWS Amazon SES Receipt Rule Set
This page shows how to write Terraform and CloudFormation for Amazon SES Receipt Rule Set and write them securely.
aws_ses_receipt_rule_set (Terraform)
The Receipt Rule Set in Amazon SES can be configured in Terraform with the resource name aws_ses_receipt_rule_set
. The following sections describe 3 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_ses_receipt_rule_set" "main" {
rule_set_name = "email-verification-rules"
}
resource "aws_ses_active_receipt_rule_set" "main" {
rule_set_name = "email-verification-rules"
resource "aws_ses_receipt_rule_set" "this" {
rule_set_name = var.rule_set_name
}
resource "aws_ses_receipt_rule_set" "sw_check_in" {
rule_set_name = "sw-check-in"
}
resource "aws_ses_active_receipt_rule_set" "sw_check_in" {
rule_set_name = "sw-check-in"
Parameters
-
arn
optional computed - string -
id
optional computed - string -
rule_set_name
required - string
Explanation in Terraform Registry
Provides an SES receipt rule set resource.
AWS::SES::ReceiptRuleSet (CloudFormation)
The ReceiptRuleSet in SES can be configured in CloudFormation with the resource name AWS::SES::ReceiptRuleSet
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::SES::ReceiptRuleSet
Properties:
RuleSetName: ${self:custom.email-handler-rule-set-name}
SESEmailReceivedRule:
Type: AWS::SES::ReceiptRule
Type: AWS::SES::ReceiptRuleSet
MailRule:
Type: AWS::SES::ReceiptRule
Properties:
Rule:
Actions:
Type: AWS::SES::ReceiptRuleSet
Properties:
RuleSetName: SamhstnRuleSet
EmailS3Bucket:
Type: AWS::S3::Bucket
Type: AWS::SES::ReceiptRuleSet
Properties:
RuleSetName: !Ref ReceiptRuleSetName
mailToS3Rule:
Type: AWS::SES::ReceiptRule
Type: AWS::SES::ReceiptRuleSet
Properties:
RuleSetName: fax4med-ruleset
"AWS::SES::ReceiptRuleSet": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html",
"Properties": {
"RuleSetName": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname",
"AWS::SES::ReceiptRuleSet": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html",
"Properties": {
"RuleSetName": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname",
"AWS::SES::ReceiptRuleSet": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html",
"Properties": {
"RuleSetName": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname",
"Type": "AWS::SES::ReceiptRuleSet",
"Properties": {
"RuleSetName": "0x4447_S3_Email"
}
}
"AWS::SES::ReceiptRuleSet": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html",
"Properties": {
"RuleSetName": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ses-receiptruleset.html#cfn-ses-receiptruleset-rulesetname",
Parameters
RuleSetName
The name of the receipt rule set to reorder.
Required: No
Type: String
Update requires: Replacement
Explanation in CloudFormation Registry
Creates an empty receipt rule set.
For information about setting up receipt rule sets, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Frequently asked questions
What is AWS Amazon SES Receipt Rule Set?
AWS Amazon SES Receipt Rule Set is a resource for Amazon SES of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Amazon SES Receipt Rule Set?
For Terraform, the alistairjordan/aws-auto-account, niveklabs/aws and DavidWittman/serverless-southwest-check-in source code examples are useful. See the Terraform Example section for further details.
For CloudFormation, the mfolivas/aws-serverless-nodejs-ses-receive-email, jmferreiratech/mail-forwarder-s3 and samhstn/samhstn source code examples are useful. See the CloudFormation Example section for further details.