CfnInsightRuleProps
- class aws_cdk.aws_cloudwatch.CfnInsightRuleProps(*, rule_body, rule_name, rule_state, apply_on_transformed_logs=None, tags=None)
- Bases: - object- Properties for defining a - CfnInsightRule.- Parameters:
- rule_body ( - str) – 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 .
- rule_name ( - str) – The name of the rule.
- rule_state ( - str) – The current state of the rule. Valid values are- ENABLEDand- DISABLED.
- apply_on_transformed_logs ( - Union[- bool,- IResolvable,- None]) – Determines whether the rules is evaluated on transformed versions of logs. Valid values are- TRUEand- FALSE.
- tags ( - Optional[- Sequence[- Union[- CfnTag,- Dict[- str,- Any]]]]) – 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:TagResourcepermission in addition to the- cloudwatch:PutInsightRulepermission.
 
- See:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_cloudwatch as cloudwatch cfn_insight_rule_props = cloudwatch.CfnInsightRuleProps( rule_body="ruleBody", rule_name="ruleName", rule_state="ruleState", # the properties below are optional apply_on_transformed_logs=False, tags=[CfnTag( key="key", value="value" )] ) - Attributes - apply_on_transformed_logs
- Determines whether the rules is evaluated on transformed versions of logs. - Valid values are - TRUEand- FALSE.
 - rule_body
- 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 . 
 - rule_name
- The name of the rule. 
 - rule_state
- The current state of the rule. - Valid values are - ENABLEDand- DISABLED.
 - tags
- 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:TagResourcepermission in addition to the- cloudwatch:PutInsightRulepermission.