Class CfnInsightRulePropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnInsightRulePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInsightRulePropsMixin>
- Enclosing class:
CfnInsightRulePropsMixin
@Stability(Stable)
public static final class CfnInsightRulePropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInsightRulePropsMixin>
A fluent builder for
CfnInsightRulePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionapplyOnTransformedLogs(Boolean applyOnTransformedLogs) Determines whether the rules is evaluated on transformed versions of logs.applyOnTransformedLogs(IResolvable applyOnTransformedLogs) Determines whether the rules is evaluated on transformed versions of logs.build()create()create(CfnPropertyMixinOptions options) The definition of the rule, as a JSON object.The name of the rule.The current state of the rule.A list of key-value pairs to associate with the Contributor Insights rule.
-
Method Details
-
create
@Stability(Stable) public static CfnInsightRulePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnInsightRulePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnInsightRulePropsMixin.Builder.
-
applyOnTransformedLogs
@Stability(Stable) public CfnInsightRulePropsMixin.Builder applyOnTransformedLogs(Boolean applyOnTransformedLogs) Determines whether the rules is evaluated on transformed versions of logs.Valid values are
TRUEandFALSE.- Parameters:
applyOnTransformedLogs- Determines whether the rules is evaluated on transformed versions of logs. This parameter is required.- Returns:
this- See Also:
-
applyOnTransformedLogs
@Stability(Stable) public CfnInsightRulePropsMixin.Builder applyOnTransformedLogs(IResolvable applyOnTransformedLogs) Determines whether the rules is evaluated on transformed versions of logs.Valid values are
TRUEandFALSE.- Parameters:
applyOnTransformedLogs- Determines whether the rules is evaluated on transformed versions of logs. This parameter is required.- Returns:
this- See Also:
-
ruleBody
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 .
- Parameters:
ruleBody- The definition of the rule, as a JSON object. This parameter is required.- Returns:
this- See Also:
-
ruleName
The name of the rule.- Parameters:
ruleName- The name of the rule. This parameter is required.- Returns:
this- See Also:
-
ruleState
The current state of the rule.Valid values are
ENABLEDandDISABLED.- Parameters:
ruleState- The current state of the rule. This parameter is required.- Returns:
this- See Also:
-
tags
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.- Parameters:
tags- A list of key-value pairs to associate with the Contributor Insights rule. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInsightRulePropsMixin>- Returns:
- a newly built instance of
CfnInsightRulePropsMixin.
-