Class: Aws::CloudWatch::Types::TagResourceInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatch::Types::TagResourceInput
- Defined in:
- gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb
Overview
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
},
],
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#resource_arn ⇒ String
The ARN of the CloudWatch resource that you're adding tags to.
-
#tags ⇒ Array<Types::Tag>
The list of key-value pairs to associate with the alarm.
Instance Attribute Details
#resource_arn ⇒ String
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 in the Amazon Web Services General Reference.
4694 4695 4696 4697 4698 4699 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 4694 class TagResourceInput < Struct.new( :resource_arn, :tags) SENSITIVE = [] include Aws::Structure end |
#tags ⇒ Array<Types::Tag>
The list of key-value pairs to associate with the alarm.
4694 4695 4696 4697 4698 4699 |
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 4694 class TagResourceInput < Struct.new( :resource_arn, :tags) SENSITIVE = [] include Aws::Structure end |