public static final class DropSpamReceiptRule.Builder
extends java.lang.Object
DropSpamReceiptRule
.Modifier and Type | Method and Description |
---|---|
DropSpamReceiptRule.Builder |
actions(java.util.List<? extends IReceiptRuleAction> actions)
An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.
|
DropSpamReceiptRule.Builder |
after(IReceiptRule after)
An existing rule after which the new rule will be placed.
|
DropSpamReceiptRule |
build() |
static DropSpamReceiptRule.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
DropSpamReceiptRule.Builder |
enabled(java.lang.Boolean enabled)
Whether the rule is active.
|
DropSpamReceiptRule.Builder |
receiptRuleName(java.lang.String receiptRuleName)
The name for the rule.
|
DropSpamReceiptRule.Builder |
recipients(java.util.List<java.lang.String> recipients)
The recipient domains and email addresses that the receipt rule applies to.
|
DropSpamReceiptRule.Builder |
ruleSet(IReceiptRuleSet ruleSet)
The name of the rule set that the receipt rule will be added to.
|
DropSpamReceiptRule.Builder |
scanEnabled(java.lang.Boolean scanEnabled)
Whether to scan for spam and viruses.
|
DropSpamReceiptRule.Builder |
tlsPolicy(TlsPolicy tlsPolicy)
Whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS).
|
public static DropSpamReceiptRule.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.DropSpamReceiptRule.Builder
.public DropSpamReceiptRule.Builder actions(java.util.List<? extends IReceiptRuleAction> actions)
Default: - No actions.
actions
- An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule. This parameter is required.this
public DropSpamReceiptRule.Builder after(IReceiptRule after)
Default: - The new rule is inserted at the beginning of the rule list.
after
- An existing rule after which the new rule will be placed. This parameter is required.this
public DropSpamReceiptRule.Builder enabled(java.lang.Boolean enabled)
Default: true
enabled
- Whether the rule is active. This parameter is required.this
public DropSpamReceiptRule.Builder receiptRuleName(java.lang.String receiptRuleName)
Default: - A CloudFormation generated name.
receiptRuleName
- The name for the rule. This parameter is required.this
public DropSpamReceiptRule.Builder recipients(java.util.List<java.lang.String> recipients)
Default: - Match all recipients under all verified domains.
recipients
- The recipient domains and email addresses that the receipt rule applies to. This parameter is required.this
public DropSpamReceiptRule.Builder scanEnabled(java.lang.Boolean scanEnabled)
Default: false
scanEnabled
- Whether to scan for spam and viruses. This parameter is required.this
public DropSpamReceiptRule.Builder tlsPolicy(TlsPolicy tlsPolicy)
Default: - Optional which will not check for TLS.
tlsPolicy
- Whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). This parameter is required.this
public DropSpamReceiptRule.Builder ruleSet(IReceiptRuleSet ruleSet)
ruleSet
- The name of the rule set that the receipt rule will be added to. This parameter is required.this
public DropSpamReceiptRule build()