interface CfnInsightRuleMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudWatch.Mixins.CfnInsightRuleMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudwatch/mixins#CfnInsightRuleMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.cloudwatch.mixins.CfnInsightRuleMixinProps |
Python | aws_cdk.mixins_preview.aws_cloudwatch.mixins.CfnInsightRuleMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_cloudwatch » mixins » CfnInsightRuleMixinProps |
Properties for CfnInsightRulePropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudwatch_mixins } from '@aws-cdk/mixins-preview/aws-cloudwatch';
const cfnInsightRuleMixinProps: cloudwatch_mixins.CfnInsightRuleMixinProps = {
applyOnTransformedLogs: false,
ruleBody: 'ruleBody',
ruleName: 'ruleName',
ruleState: 'ruleState',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| apply | boolean | IResolvable | Determines whether the rules is evaluated on transformed versions of logs. |
| 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? | Cfn[] | A list of key-value pairs to associate with the Contributor Insights rule. |
applyOnTransformedLogs?
Type:
boolean | IResolvable
(optional)
Determines whether the rules is evaluated on transformed versions of logs.
Valid values are TRUE and FALSE .
ruleBody?
Type:
string
(optional)
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
(optional)
The name of the rule.
ruleState?
Type:
string
(optional)
The current state of the rule.
Valid values are ENABLED and DISABLED .
tags?
Type:
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
Go
Java
Python
TypeScript