Interface CustomRuleProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, RuleProps
All Known Implementing Classes:
CustomRuleProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-08-02T00:29:08.603Z") @Stability(Stable) public interface CustomRuleProps extends software.amazon.jsii.JsiiSerializable, RuleProps
Construction properties for a CustomRule.

Example:

 Function fn;
 String samplePolicyText;
 ManagedRule.Builder.create(this, "ManagedRule")
         .identifier(ManagedRuleIdentifiers.API_GW_XRAY_ENABLED)
         .evaluationModes(EvaluationMode.DETECTIVE_AND_PROACTIVE)
         .build();
 CustomRule.Builder.create(this, "CustomRule")
         .lambdaFunction(fn)
         .evaluationModes(EvaluationMode.PROACTIVE)
         .build();
 CustomPolicy.Builder.create(this, "CustomPolicy")
         .policyText(samplePolicyText)
         .evaluationModes(EvaluationMode.DETECTIVE)
         .build();
 
  • Method Details

    • getLambdaFunction

      @Stability(Stable) @NotNull IFunction getLambdaFunction()
      The Lambda function to run.
    • getConfigurationChanges

      @Stability(Stable) @Nullable default Boolean getConfigurationChanges()
      Whether to run the rule on configuration changes.

      Default: false

    • getPeriodic

      @Stability(Stable) @Nullable default Boolean getPeriodic()
      Whether to run the rule on a fixed frequency.

      Default: false

    • builder

      @Stability(Stable) static CustomRuleProps.Builder builder()
      Returns:
      a CustomRuleProps.Builder of CustomRuleProps