Class ReceiptRuleSet
A new receipt rule set.
Inherited Members
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ReceiptRuleSet : Resource, IReceiptRuleSet, IResource
Syntax (vb)
Public Class ReceiptRuleSet
Inherits Resource
Implements IReceiptRuleSet, IResource
Remarks
ExampleMetadata: infused
Examples
var ruleSet = new ReceiptRuleSet(this, "RuleSet");
var awsRule = ruleSet.AddRule("Aws", new ReceiptRuleOptions {
Recipients = new [] { "aws.com" }
});
Synopsis
Constructors
ReceiptRuleSet(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ReceiptRuleSet(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ReceiptRuleSet(Construct, String, IReceiptRuleSetProps) |
Properties
ReceiptRuleSetName | The receipt rule set name. |
Methods
AddDropSpamRule() | Adds a drop spam rule. |
AddRule(String, IReceiptRuleOptions) | Adds a new receipt rule in this rule set. |
FromReceiptRuleSetName(Construct, String, String) | Import an exported receipt rule set. |
Constructors
ReceiptRuleSet(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ReceiptRuleSet(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ReceiptRuleSet(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ReceiptRuleSet(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ReceiptRuleSet(Construct, String, IReceiptRuleSetProps)
public ReceiptRuleSet(Construct scope, string id, IReceiptRuleSetProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IReceiptRuleSetProps
Properties
ReceiptRuleSetName
The receipt rule set name.
public virtual string ReceiptRuleSetName { get; }
Property Value
System.String
Methods
AddDropSpamRule()
Adds a drop spam rule.
protected virtual void AddDropSpamRule()
AddRule(String, IReceiptRuleOptions)
Adds a new receipt rule in this rule set.
public virtual ReceiptRule AddRule(string id, IReceiptRuleOptions options = null)
Parameters
- id System.String
- options IReceiptRuleOptions
Returns
Remarks
The new rule is added after
the last added rule unless after
is specified.
FromReceiptRuleSetName(Construct, String, String)
Import an exported receipt rule set.
public static IReceiptRuleSet FromReceiptRuleSetName(Construct scope, string id, string receiptRuleSetName)
Parameters
- scope Constructs.Construct
- id System.String
- receiptRuleSetName System.String
Returns