Interface CfnInsightRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInsightRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:32.443Z")
@Stability(Stable)
public interface CfnInsightRuleProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnInsightRule.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
CfnInsightRuleProps cfnInsightRuleProps = CfnInsightRuleProps.builder()
.ruleBody("ruleBody")
.ruleName("ruleName")
.ruleState("ruleState")
// the properties below are optional
.applyOnTransformedLogs(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInsightRulePropsstatic final classAn implementation forCfnInsightRuleProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnInsightRuleProps.Builderbuilder()default ObjectDetermines whether the rules is evaluated on transformed versions of logs.The definition of the rule, as a JSON object.The name of the rule.The current state of the rule.getTags()A list of key-value pairs to associate with the Contributor Insights rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRuleBody
The definition of the rule, as a JSON object.For details about the syntax, see Contributor Insights Rule Syntax in the Amazon CloudWatch User Guide .
- See Also:
-
getRuleName
The name of the rule.- See Also:
-
getRuleState
The current state of the rule.Valid values are
ENABLEDandDISABLED.- See Also:
-
getApplyOnTransformedLogs
Determines whether the rules is evaluated on transformed versions of logs.Valid values are
TRUEandFALSE.Returns union: either
BooleanorIResolvable- See Also:
-
getTags
A list of key-value pairs to associate with the Contributor Insights rule.You can associate as many as 50 tags with a rule.
Tags can help you organize and categorize your resources. For more information, see Tagging Your Amazon CloudWatch Resources .
To be able to associate tags with a rule, you must have the
cloudwatch:TagResourcepermission in addition to thecloudwatch:PutInsightRulepermission.- See Also:
-
builder
- Returns:
- a
CfnInsightRuleProps.BuilderofCfnInsightRuleProps
-