Interface CustomRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,RuleProps
- All Known Implementing Classes:
CustomRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-19T18:01:32.747Z")
@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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCustomRuleProps
static final class
An implementation forCustomRuleProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomRuleProps.Builder
builder()
default Boolean
Whether to run the rule on configuration changes.The Lambda function to run.default Boolean
Whether to run the rule on a fixed frequency.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.config.RuleProps
getConfigRuleName, getDescription, getEvaluationModes, getInputParameters, getMaximumExecutionFrequency, getRuleScope
-
Method Details
-
getLambdaFunction
The Lambda function to run. -
getConfigurationChanges
Whether to run the rule on configuration changes.Default: false
-
getPeriodic
Whether to run the rule on a fixed frequency.Default: false
-
builder
- Returns:
- a
CustomRuleProps.Builder
ofCustomRuleProps
-