Class CfnInsightRuleProps
Properties for defining a CfnInsightRule
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInsightRuleProps : ICfnInsightRuleProps
Syntax (vb)
Public Class CfnInsightRuleProps 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
ApplyOnTransformedLogs = false,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnInsightRuleProps() | Properties for defining a |
Properties
ApplyOnTransformedLogs | Determines whether the rules is evaluated on transformed versions of logs. |
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()
Properties for defining a CfnInsightRule
.
public CfnInsightRuleProps()
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
ApplyOnTransformedLogs = false,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
ApplyOnTransformedLogs
Determines whether the rules is evaluated on transformed versions of logs.
public object? ApplyOnTransformedLogs { get; set; }
Property Value
Remarks
Valid values are TRUE
and FALSE
.
RuleBody
The definition of the rule, as a JSON object.
public string RuleBody { get; set; }
Property Value
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
Remarks
RuleState
The current state of the rule.
public string RuleState { get; set; }
Property Value
Remarks
Valid values are ENABLED
and DISABLED
.
Tags
A list of key-value pairs to associate with the Contributor Insights rule.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
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.