Class CfnInsightRuleProps
Properties for defining a CfnInsightRule
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class CfnInsightRuleProps : Object, ICfnInsightRuleProps
Syntax (vb)
Public Class CfnInsightRuleProps
Inherits Object
Implements ICfnInsightRuleProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;
var cfnInsightRuleProps = new CfnInsightRuleProps {
RuleBody = "ruleBody",
RuleName = "ruleName",
RuleState = "ruleState",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnInsightRuleProps() |
Properties
RuleBody | The definition of the rule, as a JSON object. |
RuleName | The name of the rule. |
RuleState | The current state of the rule. |
Tags | A list of key-value pairs to associate with the Contributor Insights rule. |
Constructors
CfnInsightRuleProps()
public CfnInsightRuleProps()
Properties
RuleBody
The definition of the rule, as a JSON object.
public string RuleBody { get; set; }
Property Value
System.String
Remarks
For details about the syntax, see Contributor Insights Rule Syntax in the Amazon CloudWatch User Guide .
RuleName
The name of the rule.
public string RuleName { get; set; }
Property Value
System.String
Remarks
RuleState
The current state of the rule.
public string RuleState { get; set; }
Property Value
System.String
Remarks
Valid values are ENABLED
and DISABLED
.
Tags
A list of key-value pairs to associate with the Contributor Insights rule.
public object Tags { get; set; }
Property Value
System.Object
Remarks
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.