You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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 support tagging.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

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

Returns:

  • (String)


2209
2210
2211
2212
2213
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 2209

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

#valueString

The value for the specified tag key.

Returns:

  • (String)


2209
2210
2211
2212
2213
# File 'gems/aws-sdk-cloudwatchevents/lib/aws-sdk-cloudwatchevents/types.rb', line 2209

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