Class ReceiptRuleSet
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.ses.ReceiptRuleSet
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IReceiptRuleSet
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.437Z")
@Stability(Stable)
public class ReceiptRuleSet
extends Resource
implements IReceiptRuleSet
A new receipt rule set.
Example:
ReceiptRuleSet ruleSet = new ReceiptRuleSet(this, "RuleSet"); ReceiptRule awsRule = ruleSet.addRule("Aws", ReceiptRuleOptions.builder() .recipients(List.of("aws.com")) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ses.IReceiptRuleSet
IReceiptRuleSet.Jsii$Default, IReceiptRuleSet.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
ReceiptRuleSet
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ReceiptRuleSet
(software.amazon.jsii.JsiiObjectRef objRef) ReceiptRuleSet
(software.constructs.Construct scope, String id) ReceiptRuleSet
(software.constructs.Construct scope, String id, ReceiptRuleSetProps props) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds a drop spam rule.Adds a new receipt rule in this rule set.addRule
(String id, ReceiptRuleOptions options) Adds a new receipt rule in this rule set.static IReceiptRuleSet
fromReceiptRuleSetName
(software.constructs.Construct scope, String id, String receiptRuleSetName) Import an exported receipt rule set.The receipt rule set name.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ReceiptRuleSet
protected ReceiptRuleSet(software.amazon.jsii.JsiiObjectRef objRef) -
ReceiptRuleSet
protected ReceiptRuleSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ReceiptRuleSet
@Stability(Stable) public ReceiptRuleSet(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ReceiptRuleSetProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
-
-
ReceiptRuleSet
@Stability(Stable) public ReceiptRuleSet(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Details
-
fromReceiptRuleSetName
@Stability(Stable) @NotNull public static IReceiptRuleSet fromReceiptRuleSetName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String receiptRuleSetName) Import an exported receipt rule set.- Parameters:
scope
- This parameter is required.id
- This parameter is required.receiptRuleSetName
- This parameter is required.
-
addDropSpamRule
@Stability(Stable) protected void addDropSpamRule()Adds a drop spam rule. -
addRule
@Stability(Stable) @NotNull public ReceiptRule addRule(@NotNull String id, @Nullable ReceiptRuleOptions options) Adds a new receipt rule in this rule set.The new rule is added after the last added rule unless
after
is specified.- Specified by:
addRule
in interfaceIReceiptRuleSet
- Parameters:
id
- This parameter is required.options
-
-
addRule
Adds a new receipt rule in this rule set.The new rule is added after the last added rule unless
after
is specified.- Specified by:
addRule
in interfaceIReceiptRuleSet
- Parameters:
id
- This parameter is required.
-
getReceiptRuleSetName
The receipt rule set name.- Specified by:
getReceiptRuleSetName
in interfaceIReceiptRuleSet
-