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

Class: Aws::EventBridge::Types::Tag

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/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)


2216
2217
2218
2219
2220
# File 'gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/types.rb', line 2216

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

#valueString

The value for the specified tag key.

Returns:

  • (String)


2216
2217
2218
2219
2220
# File 'gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/types.rb', line 2216

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