Interface ICfnInsightRuleProps
Properties for defining a CfnInsightRule
.
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public interface ICfnInsightRuleProps
Syntax (vb)
Public Interface 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
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. |
Properties
RuleBody
The definition of the rule, as a JSON object.
string RuleBody { get; }
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.
string RuleName { get; }
Property Value
System.String
Remarks
RuleState
The current state of the rule.
string RuleState { get; }
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.
virtual object Tags { get; }
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.