@Stability(value=Stable) public static final class CfnInsightRule.Builder extends Object implements software.amazon.jsii.Builder<CfnInsightRule>
CfnInsightRule.| Modifier and Type | Method and Description |
|---|---|
CfnInsightRule |
build() |
static CfnInsightRule.Builder |
create(software.constructs.Construct scope,
String id) |
CfnInsightRule.Builder |
ruleBody(String ruleBody)
The definition of the rule, as a JSON object.
|
CfnInsightRule.Builder |
ruleName(String ruleName)
The name of the rule.
|
CfnInsightRule.Builder |
ruleState(String ruleState)
The current state of the rule.
|
CfnInsightRule.Builder |
tags(IResolvable tags)
A list of key-value pairs to associate with the Contributor Insights rule.
|
CfnInsightRule.Builder |
tags(List<? extends Object> tags)
A list of key-value pairs to associate with the Contributor Insights rule.
|
@Stability(value=Stable) public static CfnInsightRule.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnInsightRule.Builder.@Stability(value=Stable) public CfnInsightRule.Builder ruleBody(String ruleBody)
For details about the syntax, see Contributor Insights Rule Syntax in the Amazon CloudWatch User Guide .
ruleBody - The definition of the rule, as a JSON object. This parameter is required.this@Stability(value=Stable) public CfnInsightRule.Builder ruleName(String ruleName)
ruleName - The name of the rule. This parameter is required.this@Stability(value=Stable) public CfnInsightRule.Builder ruleState(String ruleState)
Valid values are ENABLED and DISABLED .
ruleState - The current state of the rule. This parameter is required.this@Stability(value=Stable) public CfnInsightRule.Builder tags(IResolvable tags)
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.
tags - A list of key-value pairs to associate with the Contributor Insights rule. This parameter is required.this@Stability(value=Stable) public CfnInsightRule.Builder tags(List<? extends Object> tags)
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.
tags - A list of key-value pairs to associate with the Contributor Insights rule. This parameter is required.this@Stability(value=Stable) public CfnInsightRule build()
build in interface software.amazon.jsii.Builder<CfnInsightRule>Copyright © 2022. All rights reserved.