Class: Aws::ServiceDiscovery::Types::Tag

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-servicediscovery/types.rb

Overview

Note:

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

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

A custom key-value pair associated with a resource.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

The key identifier, or name, of the tag.

Returns:

  • (String)


3096
3097
3098
3099
3100
3101
# File 'lib/aws-sdk-servicediscovery/types.rb', line 3096

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

#valueString

The string value associated with the key of the tag. You can set the value of a tag to an empty string, but you can’t set the value of a tag to null.

Returns:

  • (String)


3096
3097
3098
3099
3100
3101
# File 'lib/aws-sdk-servicediscovery/types.rb', line 3096

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