Interface CfnInsightRuleProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnInsightRuleProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.826Z") @Stability(Stable) public interface CfnInsightRuleProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnInsightRule.

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();
 
  • Method Details

    • getRuleBody

      @Stability(Stable) @NotNull String getRuleBody()
      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 .

    • getRuleName

      @Stability(Stable) @NotNull String getRuleName()
      The name of the rule.
    • getRuleState

      @Stability(Stable) @NotNull String getRuleState()
      The current state of the rule.

      Valid values are ENABLED and DISABLED .

    • getTags

      @Stability(Stable) @Nullable default Object getTags()
      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.

    • builder

      @Stability(Stable) static CfnInsightRuleProps.Builder builder()
      Returns:
      a CfnInsightRuleProps.Builder of CfnInsightRuleProps