AWS Fundamentals Logo
AWS Fundamentals
AWS::CloudWatch::InsightRule

CloudWatch InsightRule

Resource Type definition for AWS::CloudWatch::InsightRule. Creates a Contributor Insights rule that analyzes log data to identify top contributors and usage patterns.

Properties

5 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
RuleBody
string
Required
RuleName
string
RequiredCreate-only
RuleState
string
Required
ApplyOnTransformedLogs
boolean
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Arnstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CloudWatch::InsightRule

Resources:
  MyResource:
    Type: AWS::CloudWatch::InsightRule
    Properties:
      RuleName: "my-rulename"
      RuleState: "ENABLED"
      RuleBody: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

cloudwatch:PutInsightRulecloudwatch:DescribeInsightRulescloudwatch:TagResource

read

cloudwatch:DescribeInsightRulescloudwatch:ListTagsForResource

update

cloudwatch:PutInsightRulecloudwatch:DescribeInsightRulescloudwatch:TagResourcecloudwatch:UntagResource

delete

cloudwatch:DeleteInsightRulescloudwatch:DescribeInsightRules

list

cloudwatch:DescribeInsightRules

Get the CloudWatch Cheat Sheet

Everything you need to know about CloudWatch on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceCloudWatch
Properties6
Required3
TaggingSupported
Primary IDArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

RuleName

External Links