Class CfnInsightRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInsightRule>
- Enclosing class:
- CfnInsightRule
CfnInsightRule
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnInsightRule.Builder
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.tags
(IResolvable tags) A list of key-value pairs to associate with the Contributor Insights rule.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
ruleName
The name of the rule.- Parameters:
ruleName
- The name of the rule. This parameter is required.- Returns:
this
-
ruleState
The current state of the rule.Valid values are
ENABLED
andDISABLED
.- Parameters:
ruleState
- The current state of the rule. This parameter is required.- Returns:
this
-
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:TagResource
permission in addition to thecloudwatch:PutInsightRule
permission.- Parameters:
tags
- A list of key-value pairs to associate with the Contributor Insights rule. This parameter is required.- Returns:
this
-
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:TagResource
permission in addition to thecloudwatch:PutInsightRule
permission.- Parameters:
tags
- A list of key-value pairs to associate with the Contributor Insights rule. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInsightRule>
- Returns:
- a newly built instance of
CfnInsightRule
.
-