Interface CfnInsightRuleMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInsightRuleMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:57.203Z")
@Stability(Stable)
public interface CfnInsightRuleMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnInsightRulePropsMixin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.*;
CfnInsightRuleMixinProps cfnInsightRuleMixinProps = CfnInsightRuleMixinProps.builder()
.applyOnTransformedLogs(false)
.ruleBody("ruleBody")
.ruleName("ruleName")
.ruleState("ruleState")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInsightRuleMixinPropsstatic final classAn implementation forCfnInsightRuleMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectDetermines whether the rules is evaluated on transformed versions of logs.default StringThe definition of the rule, as a JSON object.default StringThe name of the rule.default StringThe 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
-
getApplyOnTransformedLogs
Determines whether the rules is evaluated on transformed versions of logs.Valid values are
TRUEandFALSE.Returns union: either
BooleanorIResolvable- See Also:
-
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:
-
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
CfnInsightRuleMixinProps.BuilderofCfnInsightRuleMixinProps
-