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());
 
  • 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 interface IReceiptRuleSet
      Parameters:
      id - This parameter is required.
      options -
    • addRule

      @Stability(Stable) @NotNull public ReceiptRule addRule(@NotNull String id)
      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 interface IReceiptRuleSet
      Parameters:
      id - This parameter is required.
    • getReceiptRuleSetName

      @Stability(Stable) @NotNull public String getReceiptRuleSetName()
      The receipt rule set name.
      Specified by:
      getReceiptRuleSetName in interface IReceiptRuleSet