ReceiptRuleArgs

data class ReceiptRuleArgs(val addHeaderActions: Output<List<ReceiptRuleAddHeaderActionArgs>>? = null, val after: Output<String>? = null, val bounceActions: Output<List<ReceiptRuleBounceActionArgs>>? = null, val enabled: Output<Boolean>? = null, val lambdaActions: Output<List<ReceiptRuleLambdaActionArgs>>? = null, val name: Output<String>? = null, val recipients: Output<List<String>>? = null, val ruleSetName: Output<String>? = null, val s3Actions: Output<List<ReceiptRuleS3ActionArgs>>? = null, val scanEnabled: Output<Boolean>? = null, val snsActions: Output<List<ReceiptRuleSnsActionArgs>>? = null, val stopActions: Output<List<ReceiptRuleStopActionArgs>>? = null, val tlsPolicy: Output<String>? = null, val workmailActions: Output<List<ReceiptRuleWorkmailActionArgs>>? = null) : ConvertibleToJava<ReceiptRuleArgs>

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

Constructors

Link copied to clipboard
constructor(addHeaderActions: Output<List<ReceiptRuleAddHeaderActionArgs>>? = null, after: Output<String>? = null, bounceActions: Output<List<ReceiptRuleBounceActionArgs>>? = null, enabled: Output<Boolean>? = null, lambdaActions: Output<List<ReceiptRuleLambdaActionArgs>>? = null, name: Output<String>? = null, recipients: Output<List<String>>? = null, ruleSetName: Output<String>? = null, s3Actions: Output<List<ReceiptRuleS3ActionArgs>>? = null, scanEnabled: Output<Boolean>? = null, snsActions: Output<List<ReceiptRuleSnsActionArgs>>? = null, stopActions: Output<List<ReceiptRuleStopActionArgs>>? = null, tlsPolicy: Output<String>? = null, workmailActions: Output<List<ReceiptRuleWorkmailActionArgs>>? = null)

Properties

Link copied to clipboard

A list of Add Header Action blocks. Documented below.

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

The name of the rule to place this rule after

Link copied to clipboard

A list of Bounce Action blocks. Documented below.

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

If true, the rule will be enabled

Link copied to clipboard

A list of Lambda Action blocks. Documented below.

Link copied to clipboard
val name: Output<String>? = null

The name of the rule

Link copied to clipboard
val recipients: Output<List<String>>? = null

A list of email addresses

Link copied to clipboard
val ruleSetName: Output<String>? = null

The name of the rule set

Link copied to clipboard
val s3Actions: Output<List<ReceiptRuleS3ActionArgs>>? = null

A list of S3 Action blocks. Documented below.

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

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>? = null

Require or Optional

Link copied to clipboard

A list of WorkMail Action blocks. Documented below.

Functions

Link copied to clipboard
open override fun toJava(): ReceiptRuleArgs