import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; 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 class InsightRule extends pulumi.CustomResource { /** * Get an existing InsightRule resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): InsightRule; /** * Returns true if the given object is an instance of InsightRule. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is InsightRule; /** * Determines whether the rules is evaluated on transformed versions of logs. Valid values are `TRUE` and `FALSE` . */ readonly applyOnTransformedLogs: pulumi.Output; /** * The ARN of the Contributor Insights rule, such as `arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName` . */ readonly arn: pulumi.Output; /** * 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: pulumi.Output; /** * The name of the rule. */ readonly ruleName: pulumi.Output; /** * The current state of the rule. Valid values are `ENABLED` and `DISABLED` . */ readonly ruleState: pulumi.Output; /** * 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: pulumi.Output; /** * Create a InsightRule resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: InsightRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a InsightRule resource. */ export interface InsightRuleArgs { /** * Determines whether the rules is evaluated on transformed versions of logs. Valid values are `TRUE` and `FALSE` . */ applyOnTransformedLogs?: pulumi.Input; /** * 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* . */ ruleBody: pulumi.Input; /** * The name of the rule. */ ruleName?: pulumi.Input; /** * The current state of the rule. Valid values are `ENABLED` and `DISABLED` . */ ruleState: pulumi.Input; /** * 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. */ tags?: pulumi.Input[]>; }