@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:51.253Z") @Stability(value=Stable) public interface CfnInsightRuleProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
CfnInsightRuleProps cfnInsightRuleProps = CfnInsightRuleProps.builder()
.ruleBody("ruleBody")
.ruleName("ruleName")
.ruleState("ruleState")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInsightRuleProps.Builder
A builder for
CfnInsightRuleProps |
static class |
CfnInsightRuleProps.Jsii$Proxy
An implementation for
CfnInsightRuleProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnInsightRuleProps.Builder |
builder() |
String |
getRuleBody()
The definition of the rule, as a JSON object.
|
String |
getRuleName()
The name of the rule.
|
String |
getRuleState()
The current state of the rule.
|
default Object |
getTags()
A list of key-value pairs to associate with the Contributor Insights rule.
|
@Stability(value=Stable) @NotNull String getRuleBody()
For details about the syntax, see Contributor Insights Rule Syntax in the Amazon CloudWatch User Guide .
@Stability(value=Stable) @NotNull String getRuleName()
@Stability(value=Stable) @NotNull String getRuleState()
Valid values are ENABLED and DISABLED .
@Stability(value=Stable) @Nullable default Object getTags()
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.
@Stability(value=Stable) static CfnInsightRuleProps.Builder builder()
CfnInsightRuleProps.Builder of CfnInsightRulePropsCopyright © 2023. All rights reserved.