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

Class: Aws::CloudTrail::Types::Tag

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

Overview

Note:

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

{
  key: "String", # required
  value: "String",
}

A custom key-value pair associated with a resource such as a CloudTrail trail.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.

Returns:

  • (String)


1242
1243
1244
1245
1246
# File 'gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/types.rb', line 1242

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

#valueString

The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.

Returns:

  • (String)


1242
1243
1244
1245
1246
# File 'gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/types.rb', line 1242

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