cloudwatch_put_insight_rule: Creates a Contributor Insights rule

Description Usage Arguments Value Request syntax

View source: R/cloudwatch_operations.R

Description

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.

Usage

1
cloudwatch_put_insight_rule(RuleName, RuleState, RuleDefinition, Tags)

Arguments

RuleName

[required] A unique name for the rule.

RuleState

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

RuleDefinition

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

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 tag_resource.

Value

An empty list.

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
svc$put_insight_rule(
  RuleName = "string",
  RuleState = "string",
  RuleDefinition = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

paws.management documentation built on Aug. 23, 2021, 9:11 a.m.