interface CfnInsightRuleProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.CfnInsightRuleProps |
Java | software.amazon.awscdk.services.cloudwatch.CfnInsightRuleProps |
Python | aws_cdk.aws_cloudwatch.CfnInsightRuleProps |
TypeScript | @aws-cdk/aws-cloudwatch » CfnInsightRuleProps |
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 * as cloudwatch from '@aws-cdk/aws-cloudwatch';
const cfnInsightRuleProps: cloudwatch.CfnInsightRuleProps = {
ruleBody: 'ruleBody',
ruleName: 'ruleName',
ruleState: 'ruleState',
// the properties below are optional
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| rule | string | The definition of the rule, as a JSON object. |
| rule | string | The name of the rule. |
| rule | string | The current state of the rule. |
| tags? | IResolvable | IResolvable | Cfn[] | A list of key-value pairs to associate with the Contributor Insights rule. |
ruleBody
Type:
string
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 .
ruleName
Type:
string
The name of the rule.
ruleState
Type:
string
The current state of the rule.
Valid values are ENABLED and DISABLED .
tags?
Type:
IResolvable | IResolvable | Cfn[]
(optional)
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.

.NET
Java
Python
TypeScript