Interface CustomPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,RuleProps
- All Known Implementing Classes:
CustomPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:17.562Z")
@Stability(Stable)
public interface CustomPolicyProps
extends software.amazon.jsii.JsiiSerializable, RuleProps
Construction properties for a CustomPolicy.
Example:
String samplePolicyText = "\n# This rule checks if point in time recovery (PITR) is enabled on active Amazon DynamoDB tables\nlet status = ['ACTIVE']\n\nrule tableisactive when\n resourceType == \"AWS::DynamoDB::Table\" {\n configuration.tableStatus == %status\n}\n\nrule checkcompliance when\n resourceType == \"AWS::DynamoDB::Table\"\n tableisactive {\n let pitr = supplementaryConfiguration.ContinuousBackupsDescription.pointInTimeRecoveryDescription.pointInTimeRecoveryStatus\n %pitr == \"ENABLED\"\n}\n";
CustomPolicy.Builder.create(this, "Custom")
.policyText(samplePolicyText)
.enableDebugLog(true)
.ruleScope(RuleScope.fromResources(List.of(ResourceType.DYNAMODB_TABLE)))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCustomPolicyPropsstatic final classAn implementation forCustomPolicyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomPolicyProps.Builderbuilder()default BooleanThe boolean expression for enabling debug logging for your AWS Config Custom Policy rule.The policy definition containing the logic for your AWS Config Custom Policy rule.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
-
getPolicyText
The policy definition containing the logic for your AWS Config Custom Policy rule. -
getEnableDebugLog
The boolean expression for enabling debug logging for your AWS Config Custom Policy rule.Default: false
-
builder
- Returns:
- a
CustomPolicyProps.BuilderofCustomPolicyProps
-