@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:44.726Z") public class ReceiptRuleSet extends Resource implements IReceiptRuleSet
Example:
ReceiptRuleSet ruleSet = new ReceiptRuleSet(this, "RuleSet"); ReceiptRule awsRule = ruleSet.addRule("Aws", ReceiptRuleOptions.builder() .recipients(List.of("aws.com")) .build());
Modifier and Type | Class and Description |
---|---|
static class |
ReceiptRuleSet.Builder
A fluent builder for
ReceiptRuleSet . |
IReceiptRuleSet.Jsii$Default, IReceiptRuleSet.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
ReceiptRuleSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ReceiptRuleSet(software.amazon.jsii.JsiiObjectRef objRef) |
|
ReceiptRuleSet(software.constructs.Construct scope,
java.lang.String id) |
|
ReceiptRuleSet(software.constructs.Construct scope,
java.lang.String id,
ReceiptRuleSetProps props) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDropSpamRule()
Adds a drop spam rule.
|
ReceiptRule |
addRule(java.lang.String id)
Adds a new receipt rule in this rule set.
|
ReceiptRule |
addRule(java.lang.String id,
ReceiptRuleOptions options)
Adds a new receipt rule in this rule set.
|
static IReceiptRuleSet |
fromReceiptRuleSetName(software.constructs.Construct scope,
java.lang.String id,
java.lang.String receiptRuleSetName)
Import an exported receipt rule set.
|
java.lang.String |
getReceiptRuleSetName()
The receipt rule set name.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected ReceiptRuleSet(software.amazon.jsii.JsiiObjectRef objRef)
protected ReceiptRuleSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ReceiptRuleSet(software.constructs.Construct scope, java.lang.String id, ReceiptRuleSetProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public ReceiptRuleSet(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public static IReceiptRuleSet fromReceiptRuleSetName(software.constructs.Construct scope, java.lang.String id, java.lang.String receiptRuleSetName)
scope
- This parameter is required.id
- This parameter is required.receiptRuleSetName
- This parameter is required.protected void addDropSpamRule()
public ReceiptRule addRule(java.lang.String id, ReceiptRuleOptions options)
The new rule is added after
the last added rule unless after
is specified.
addRule
in interface IReceiptRuleSet
id
- This parameter is required.options
- public ReceiptRule addRule(java.lang.String id)
The new rule is added after
the last added rule unless after
is specified.
addRule
in interface IReceiptRuleSet
id
- This parameter is required.public java.lang.String getReceiptRuleSetName()
getReceiptRuleSetName
in interface IReceiptRuleSet