CfnInsightRuleMixinProps
- class aws_cdk.mixins_preview.aws_cloudwatch.mixins.CfnInsightRuleMixinProps(*, apply_on_transformed_logs=None, rule_body=None, rule_name=None, rule_state=None, tags=None)
Bases:
objectProperties for CfnInsightRulePropsMixin.
- Parameters:
apply_on_transformed_logs (
Union[bool,IResolvable,None]) – Determines whether the rules is evaluated on transformed versions of logs. Valid values areTRUEandFALSE.rule_body (
Optional[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 (
Optional[str]) – The name of the rule.rule_state (
Optional[str]) – The current state of the rule. Valid values areENABLEDandDISABLED.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 thecloudwatch:TagResourcepermission in addition to thecloudwatch: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.mixins_preview.aws_cloudwatch import mixins as cloudwatch_mixins cfn_insight_rule_mixin_props = cloudwatch_mixins.CfnInsightRuleMixinProps( apply_on_transformed_logs=False, rule_body="ruleBody", rule_name="ruleName", rule_state="ruleState", 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
TRUEandFALSE.
- 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
ENABLEDandDISABLED.
- 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 thecloudwatch:PutInsightRulepermission.