import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * Resource Type definition for AWS::CloudWatch::InsightRule. Creates a Contributor Insights rule that analyzes log data to identify top contributors and usage patterns. */ export declare function getInsightRule(args: GetInsightRuleArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetInsightRuleArgs { /** * The ARN of the Contributor Insights rule, such as `arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName` . */ arn: string; } export interface GetInsightRuleResult { /** * Determines whether the rules is evaluated on transformed versions of logs. Valid values are `TRUE` and `FALSE` . */ readonly applyOnTransformedLogs?: boolean; /** * The ARN of the Contributor Insights rule, such as `arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName` . */ readonly arn?: string; /** * The definition of the rule, as a JSON object. For details about the syntax, see [Contributor Insights Rule Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html) in the *Amazon CloudWatch User Guide* . */ readonly ruleBody?: string; /** * The current state of the rule. Valid values are `ENABLED` and `DISABLED` . */ readonly ruleState?: enums.cloudwatch.InsightRuleRuleState; /** * 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](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html) . * * To be able to associate tags with a rule, you must have the `cloudwatch:TagResource` permission in addition to the `cloudwatch:PutInsightRule` permission. */ readonly tags?: outputs.Tag[]; } /** * Resource Type definition for AWS::CloudWatch::InsightRule. Creates a Contributor Insights rule that analyzes log data to identify top contributors and usage patterns. */ export declare function getInsightRuleOutput(args: GetInsightRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; export interface GetInsightRuleOutputArgs { /** * The ARN of the Contributor Insights rule, such as `arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName` . */ arn: pulumi.Input; }