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.
Using getInsightRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getInsightRule(args: GetInsightRuleArgs, opts?: InvokeOptions): Promise<GetInsightRuleResult>
function getInsightRuleOutput(args: GetInsightRuleOutputArgs, opts?: InvokeOptions): Output<GetInsightRuleResult>def get_insight_rule(arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInsightRuleResult
def get_insight_rule_output(arn: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInsightRuleResult]func LookupInsightRule(ctx *Context, args *LookupInsightRuleArgs, opts ...InvokeOption) (*LookupInsightRuleResult, error)
func LookupInsightRuleOutput(ctx *Context, args *LookupInsightRuleOutputArgs, opts ...InvokeOption) LookupInsightRuleResultOutput> Note: This function is named LookupInsightRule in the Go SDK.
public static class GetInsightRule
{
public static Task<GetInsightRuleResult> InvokeAsync(GetInsightRuleArgs args, InvokeOptions? opts = null)
public static Output<GetInsightRuleResult> Invoke(GetInsightRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInsightRuleResult> getInsightRule(GetInsightRuleArgs args, InvokeOptions options)
public static Output<GetInsightRuleResult> getInsightRule(GetInsightRuleArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:cloudwatch:getInsightRule
arguments:
# arguments dictionarydata "aws-native_cloudwatch_get_insight_rule" "name" {
# arguments
}The following arguments are supported:
- Arn string
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName.
- Arn string
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName.
- arn string
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName.
- arn String
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName.
- arn string
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName.
- arn str
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName.
- arn String
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName.
getInsightRule Result
The following output properties are available:
- Apply
On boolTransformed Logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - Arn string
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName. - 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. -
List<Pulumi.
Aws Native. Outputs. 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.
- Apply
On boolTransformed Logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - Arn string
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName. - 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. - 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.
- apply_
on_ booltransformed_ logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - arn string
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName. - 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. - 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.
- apply
On BooleanTransformed Logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - arn String
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName. - 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. - 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.
- apply
On booleanTransformed Logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - arn string
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName. - 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. - 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.
- apply_
on_ booltransformed_ logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - arn str
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName. - 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. - Sequence[root_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.
- apply
On BooleanTransformed Logs - Determines whether the rules is evaluated on transformed versions of logs. Valid values are
TRUEandFALSE. - arn String
- The ARN of the Contributor Insights rule, such as
arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName. - 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. - 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.
Supporting Types
InsightRuleRuleState
Tag
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