class Amazonite::CloudWatch::PutInsightRuleInput

Included Modules

Defined in:

cloudwatch/put_insight_rule_input.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rule_name : String, rule_definition : String, rule_state : String | Nil = nil, tags : Array(Tag) | Nil = nil, apply_on_transformed_logs : Bool | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def apply_on_transformed_logs : Bool | Nil #

Specify true to have this rule evaluate log events after they have been transformed by Log transformation. If you specify true, then the log events in log groups that have transformers will be evaluated by Contributor Insights after being transformed. Log groups that don't have transformers will still have their original log events evaluated by Contributor Insights.

The default is false

If a log group has a transformer, and transformation fails for some log events, those log events won't be evaluated by Contributor Insights. For information about investigating log transformation failures, see Transformation metrics and errors.


[View source]
def apply_on_transformed_logs=(apply_on_transformed_logs : Bool | Nil) #

Specify true to have this rule evaluate log events after they have been transformed by Log transformation. If you specify true, then the log events in log groups that have transformers will be evaluated by Contributor Insights after being transformed. Log groups that don't have transformers will still have their original log events evaluated by Contributor Insights.

The default is false

If a log group has a transformer, and transformation fails for some log events, those log events won't be evaluated by Contributor Insights. For information about investigating log transformation failures, see Transformation metrics and errors.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def rule_definition : String #

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


[View source]
def rule_definition=(rule_definition : String) #

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


[View source]
def rule_name : String #

A unique name for the rule.


[View source]
def rule_name=(rule_name : String) #

A unique name for the rule.


[View source]
def rule_state : String | Nil #

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


[View source]
def rule_state=(rule_state : String | Nil) #

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


[View source]
def tags : Array(Tag) | Nil #

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.


[View source]
def tags=(tags : Array(Tag) | Nil) #

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.


[View source]
def validate! : Nil #

[View source]