class Aws::CloudWatch::Types::TagResourceInput
@note When making an API call, you may pass TagResourceInput
data as a hash: { resource_arn: "AmazonResourceName", # required tags: [ # required { key: "TagKey", # required value: "TagValue", # required }, ], }
@!attribute [rw] resource_arn
The ARN of the CloudWatch resource that you're adding tags to. The ARN format of an alarm is `arn:aws:cloudwatch:Region:account-id:alarm:alarm-name ` The ARN format of a Contributor Insights rule is `arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name ` For more information about ARN format, see [ Resource Types Defined by Amazon CloudWatch][1] in the *Amazon Web Services General Reference*. [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies @return [String]
@!attribute [rw] tags
The list of key-value pairs to associate with the alarm. @return [Array<Types::Tag>]
@see docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/TagResourceInput AWS API Documentation
Constants
- SENSITIVE