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

Class: Aws::Route53Resolver::Types::Tag

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

Overview

Note:

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

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

One tag that you want to add to the specified resource. A tag consists of a Key (a name for the tag) and a Value.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id.

Returns:

  • (String)


1522
1523
1524
1525
1526
# File 'gems/aws-sdk-route53resolver/lib/aws-sdk-route53resolver/types.rb', line 1522

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

#valueString

The value for the tag. For example, if Key is account-id, then Value might be the ID of the customer account that you're creating the resource for.

Returns:

  • (String)


1522
1523
1524
1525
1526
# File 'gems/aws-sdk-route53resolver/lib/aws-sdk-route53resolver/types.rb', line 1522

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