class Amazonite::CloudWatch::ManagedRule

Overview

Contains the information that's required to enable a managed Contributor Insights rule for an Amazon Web Services resource.

Included Modules

Defined in:

cloudwatch/managed_rule.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(template_name : String, resource_arn : String, tags : Array(Tag) | 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 hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def resource_arn : String #

The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.


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

The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.


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

A list of key-value pairs that you can associate with a managed Contributor Insights rule. You can associate as many as 50 tags with a rule. Tags can help you organize and categorize your resources. You also can use them to scope user permissions by granting a user permission to access or change only the resources that have certain tag values. 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 that 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 that you can associate with a managed Contributor Insights rule. You can associate as many as 50 tags with a rule. Tags can help you organize and categorize your resources. You also can use them to scope user permissions by granting a user permission to access or change only the resources that have certain tag values. 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 that you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.


[View source]
def template_name : String #

The template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.


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

The template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.


[View source]
def validate! : Nil #

[View source]