Class CfnInsightRule.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnInsightRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInsightRule>
- Enclosing class:
CfnInsightRule
@Stability(Stable)
public static final class CfnInsightRule.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInsightRule>
A fluent builder for
CfnInsightRule.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnInsightRule.BuilderThe 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 CfnInsightRule.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnInsightRule.Builder.
-
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<CfnInsightRule>- Returns:
- a newly built instance of
CfnInsightRule.
-