class Aws::CloudWatch::Types::PutInsightRuleInput

@note When making an API call, you may pass PutInsightRuleInput

data as a hash:

    {
      rule_name: "InsightRuleName", # required
      rule_state: "InsightRuleState",
      rule_definition: "InsightRuleDefinition", # required
      tags: [
        {
          key: "TagKey", # required
          value: "TagValue", # required
        },
      ],
    }

@!attribute [rw] rule_name

A unique name for the rule.
@return [String]

@!attribute [rw] rule_state

The state of the rule. Valid values are ENABLED and DISABLED.
@return [String]

@!attribute [rw] rule_definition

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

[1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html
@return [String]

@!attribute [rw] 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][1].

[1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
@return [Array<Types::Tag>]

@see docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutInsightRuleInput AWS API Documentation

Constants

SENSITIVE