Class ReceiptRuleSet

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ses.ReceiptRuleSet
All Implemented Interfaces:
IResource, IReceiptRuleSet, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-21T06:34:16.382Z") @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