Class: Aws::CloudWatchEvents::Types::Tag

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb

Overview

Note:

When making an API call, you may pass Tag data as a hash:

{
  key: "TagKey", # required
  value: "TagValue", # required
}

A key-value pair associated with an AWS resource. In EventBridge, rules and event buses support tagging.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

A string you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.

Returns:

  • (String)


2281
2282
2283
2284
2285
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 2281

class Tag < Struct.new(
  :key,
  :value)
  include Aws::Structure
end

#valueString

The value for the specified tag key.

Returns:

  • (String)


2281
2282
2283
2284
2285
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 2281

class Tag < Struct.new(
  :key,
  :value)
  include Aws::Structure
end