We recommend new projects start with resources from the AWS provider.
published on Monday, Aug 3, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Aug 3, 2026 by Pulumi
Resource Type definition for AWS::CloudWatch::InsightRule. Creates a Contributor Insights rule that analyzes log data to identify top contributors and usage patterns.
Create InsightRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InsightRule(name: string, args: InsightRuleArgs, opts?: CustomResourceOptions);@overload
def InsightRule(resource_name: str,
args: InsightRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InsightRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
rule_body: Optional[str] = None,
rule_state: Optional[InsightRuleRuleState] = None,
apply_on_transformed_logs: Optional[bool] = None,
rule_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewInsightRule(ctx *Context, name string, args InsightRuleArgs, opts ...ResourceOption) (*InsightRule, error)public InsightRule(string name, InsightRuleArgs args, CustomResourceOptions? opts = null)
public InsightRule(String name, InsightRuleArgs args)
public InsightRule(String name, InsightRuleArgs args, CustomResourceOptions options)
type: aws-native:cloudwatch:InsightRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_cloudwatch_insight_rule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args InsightRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InsightRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InsightRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InsightRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InsightRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InsightRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InsightRule resource accepts the following input properties:
- Rule
Body 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 .
- Rule
State Pulumi.Aws Native. Cloud Watch. Insight Rule Rule State - The current state of the rule. Valid values are
ENABLEDandDISABLED. - Apply
On boolTransformed Logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - Rule
Name string - The name of the rule.
-
List<Pulumi.
Aws Native. Inputs. Tag> 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.
- Rule
Body 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 .
- Rule
State InsightRule Rule State - The current state of the rule. Valid values are
ENABLEDandDISABLED. - Apply
On boolTransformed Logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - Rule
Name string - The name of the rule.
-
Tag
Args 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.
- rule_
body 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 .
- rule_
state "ENABLED" | "DISABLED" - The current state of the rule. Valid values are
ENABLEDandDISABLED. - apply_
on_ booltransformed_ logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - rule_
name string - The name of the rule.
- list(object)
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.
- rule
Body 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 .
- rule
State InsightRule Rule State - The current state of the rule. Valid values are
ENABLEDandDISABLED. - apply
On BooleanTransformed Logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - rule
Name String - The name of the rule.
- List<Tag>
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.
- rule
Body 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 .
- rule
State InsightRule Rule State - The current state of the rule. Valid values are
ENABLEDandDISABLED. - apply
On booleanTransformed Logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - rule
Name string - The name of the rule.
- Tag[]
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.
- 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_
state InsightRule Rule State - The current state of the rule. Valid values are
ENABLEDandDISABLED. - apply_
on_ booltransformed_ logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - rule_
name str - The name of the rule.
-
Sequence[Tag
Args] 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.
- rule
Body 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 .
- rule
State "ENABLED" | "DISABLED" - The current state of the rule. Valid values are
ENABLEDandDISABLED. - apply
On BooleanTransformed Logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - rule
Name String - The name of the rule.
- List<Property Map>
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.
Outputs
All input properties are implicitly available as output properties. Additionally, the InsightRule resource produces the following output properties:
Supporting Types
InsightRuleRuleState, InsightRuleRuleStateArgs
- Enabled
ENABLED- Disabled
DISABLED
- Insight
Rule Rule State Enabled ENABLED- Insight
Rule Rule State Disabled DISABLED
- "ENABLED"
ENABLED- "DISABLED"
DISABLED
- Enabled
ENABLED- Disabled
DISABLED
- Enabled
ENABLED- Disabled
DISABLED
- ENABLED
ENABLED- DISABLED
DISABLED
- "ENABLED"
ENABLED- "DISABLED"
DISABLED
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Aug 3, 2026 by Pulumi