@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:19.279Z") @Stability(value=Stable) public interface ReceiptRuleSetProps extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.services.ses.*;
import software.amazon.awscdk.services.ses.actions.*;
import software.amazon.awscdk.services.sns.*;
Bucket bucket = new Bucket(stack, "Bucket");
Topic topic = new Topic(stack, "Topic");
ReceiptRuleSet.Builder.create(stack, "RuleSet")
.rules(List.of(ReceiptRuleOptions.builder()
.recipients(List.of("hello@aws.com"))
.actions(List.of(
AddHeader.Builder.create()
.name("X-Special-Header")
.value("aws")
.build(),
S3.Builder.create()
.bucket(bucket)
.objectKeyPrefix("emails/")
.topic(topic)
.build()))
.build(), ReceiptRuleOptions.builder()
.recipients(List.of("aws.com"))
.actions(List.of(
Sns.Builder.create()
.topic(topic)
.build()))
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ReceiptRuleSetProps.Builder
A builder for
ReceiptRuleSetProps |
static class |
ReceiptRuleSetProps.Jsii$Proxy
An implementation for
ReceiptRuleSetProps |
| Modifier and Type | Method and Description |
|---|---|
static ReceiptRuleSetProps.Builder |
builder() |
default Boolean |
getDropSpam()
Whether to add a first rule to stop processing messages that have at least one spam indicator.
|
default String |
getReceiptRuleSetName()
The name for the receipt rule set.
|
default List<ReceiptRuleOptions> |
getRules()
The list of rules to add to this rule set.
|
@Stability(value=Stable) @Nullable default Boolean getDropSpam()
Default: false
@Stability(value=Stable) @Nullable default String getReceiptRuleSetName()
Default: - A CloudFormation generated name.
@Stability(value=Stable) @Nullable default List<ReceiptRuleOptions> getRules()
Rules are added in the same order as they appear in the list.
Default: - No rules are added to the rule set.
@Stability(value=Stable) static ReceiptRuleSetProps.Builder builder()
ReceiptRuleSetProps.Builder of ReceiptRuleSetPropsCopyright © 2021. All rights reserved.