AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the PutInsightRule operation. Creates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs log group, enabling you to find contributor data for the log events in that log group. For more information, see Using Contributor Insights to Analyze High-Cardinality Data.

If you create a rule, delete it, and then re-create it with the same name, historical data from the first time the rule was created might not be available.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CloudWatch.AmazonCloudWatchRequest
      Amazon.CloudWatch.Model.PutInsightRuleRequest

Namespace: Amazon.CloudWatch.Model
Assembly: AWSSDK.CloudWatch.dll
Version: 3.x.y.z

Syntax

C#
public class PutInsightRuleRequest : AmazonCloudWatchRequest
         IAmazonWebServiceRequest

The PutInsightRuleRequest type exposes the following members

Constructors

NameDescription
Public Method PutInsightRuleRequest()

Properties

NameTypeDescription
Public Property RuleDefinition System.String

Gets and sets the property RuleDefinition.

The definition of the rule, as a JSON object. For details on the valid syntax, see Contributor Insights Rule Syntax.

Public Property RuleName System.String

Gets and sets the property RuleName.

A unique name for the rule.

Public Property RuleState System.String

Gets and sets the property RuleState.

The state of the rule. Valid values are ENABLED and DISABLED.

Public Property Tags System.Collections.Generic.List<Amazon.CloudWatch.Model.Tag>

Gets and sets the property Tags.

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. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.

To be able to associate tags with a rule, you must have the cloudwatch:TagResource permission in addition to the cloudwatch:PutInsightRule permission.

If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5