ReceiptRule

class ReceiptRule : KotlinCustomResource

Provides an SES receipt rule resource

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ses.ReceiptRule;
import com.pulumi.aws.ses.ReceiptRuleArgs;
import com.pulumi.aws.ses.inputs.ReceiptRuleAddHeaderActionArgs;
import com.pulumi.aws.ses.inputs.ReceiptRuleS3ActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var store = new ReceiptRule("store", ReceiptRuleArgs.builder()
.addHeaderActions(ReceiptRuleAddHeaderActionArgs.builder()
.headerName("Custom-Header")
.headerValue("Added by SES")
.position(1)
.build())
.enabled(true)
.recipients("karen@example.com")
.ruleSetName("default-rule-set")
.s3Actions(ReceiptRuleS3ActionArgs.builder()
.bucketName("emails")
.position(2)
.build())
.scanEnabled(true)
.build());
}
}

Import

SES receipt rules can be imported using the ruleset name and rule name separated by :.

$ pulumi import aws:ses/receiptRule:ReceiptRule my_rule my_rule_set:my_rule

Properties

Link copied to clipboard

A list of Add Header Action blocks. Documented below.

Link copied to clipboard
val after: Output<String>?

The name of the rule to place this rule after

Link copied to clipboard
val arn: Output<String>

The SES receipt rule ARN.

Link copied to clipboard

A list of Bounce Action blocks. Documented below.

Link copied to clipboard
val enabled: Output<Boolean>?

If true, the rule will be enabled

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

A list of Lambda Action blocks. Documented below.

Link copied to clipboard
val name: Output<String>

The name of the rule

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val recipients: Output<List<String>>?

A list of email addresses

Link copied to clipboard
val ruleSetName: Output<String>

The name of the rule set

Link copied to clipboard

A list of S3 Action blocks. Documented below.

Link copied to clipboard
val scanEnabled: Output<Boolean>?

If true, incoming emails will be scanned for spam and viruses

Link copied to clipboard

A list of SNS Action blocks. Documented below.

Link copied to clipboard

A list of Stop Action blocks. Documented below.

Link copied to clipboard
val tlsPolicy: Output<String>

Require or Optional

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

A list of WorkMail Action blocks. Documented below.