@Stability(value=Stable) public static final class CfnInsightRuleProps.Builder extends Object implements software.amazon.jsii.Builder<CfnInsightRuleProps>
CfnInsightRuleProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnInsightRuleProps |
build()
Builds the configured instance.
|
CfnInsightRuleProps.Builder |
ruleBody(String ruleBody)
Sets the value of
CfnInsightRuleProps.getRuleBody() |
CfnInsightRuleProps.Builder |
ruleName(String ruleName)
Sets the value of
CfnInsightRuleProps.getRuleName() |
CfnInsightRuleProps.Builder |
ruleState(String ruleState)
Sets the value of
CfnInsightRuleProps.getRuleState() |
CfnInsightRuleProps.Builder |
tags(IResolvable tags)
Sets the value of
CfnInsightRuleProps.getTags() |
CfnInsightRuleProps.Builder |
tags(List<? extends Object> tags)
Sets the value of
CfnInsightRuleProps.getTags() |
@Stability(value=Stable) public CfnInsightRuleProps.Builder ruleBody(String ruleBody)
CfnInsightRuleProps.getRuleBody()ruleBody - The definition of the rule, as a JSON object. This parameter is required.
For details about the syntax, see Contributor Insights Rule Syntax in the Amazon CloudWatch User Guide .this@Stability(value=Stable) public CfnInsightRuleProps.Builder ruleName(String ruleName)
CfnInsightRuleProps.getRuleName()ruleName - The name of the rule. This parameter is required.this@Stability(value=Stable) public CfnInsightRuleProps.Builder ruleState(String ruleState)
CfnInsightRuleProps.getRuleState()ruleState - The current state of the rule. This parameter is required.
Valid values are ENABLED and DISABLED .this@Stability(value=Stable) public CfnInsightRuleProps.Builder tags(IResolvable tags)
CfnInsightRuleProps.getTags()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 the cloudwatch:PutInsightRule permission.
this@Stability(value=Stable) public CfnInsightRuleProps.Builder tags(List<? extends Object> tags)
CfnInsightRuleProps.getTags()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 the cloudwatch:PutInsightRule permission.
this@Stability(value=Stable) public CfnInsightRuleProps build()
build in interface software.amazon.jsii.Builder<CfnInsightRuleProps>CfnInsightRulePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.