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

Class: Aws::ElastiCache::Types::AddTagsToResourceMessage

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

Overview

Note:

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

{
  resource_name: "String", # required
  tags: [ # required
    {
      key: "String",
      value: "String",
    },
  ],
}

Represents the input of an AddTagsToResource operation.

Instance Attribute Summary collapse

Instance Attribute Details

#resource_nameString

The Amazon Resource Name (ARN) of the resource to which the tags are to be added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot.

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.

Returns:

  • (String)


47
48
49
50
51
# File 'gems/aws-sdk-elasticache/lib/aws-sdk-elasticache/types.rb', line 47

class AddTagsToResourceMessage < Struct.new(
  :resource_name,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.

Returns:



47
48
49
50
51
# File 'gems/aws-sdk-elasticache/lib/aws-sdk-elasticache/types.rb', line 47

class AddTagsToResourceMessage < Struct.new(
  :resource_name,
  :tags)
  include Aws::Structure
end