Interface CustomRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,RuleProps
- All Known Implementing Classes:
CustomRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:34.274Z")
@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 classA builder forCustomRulePropsstatic final classAn implementation forCustomRuleProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomRuleProps.Builderbuilder()default BooleanWhether to run the rule on configuration changes.The Lambda function to run.default BooleanWhether to run the rule on a fixed frequency.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods 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.BuilderofCustomRuleProps
-