You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::ElastiCache::Types::AddTagsToResourceMessage
- Inherits:
-
Struct
- Object
- Struct
- Aws::ElastiCache::Types::AddTagsToResourceMessage
- Defined in:
- (unknown)
Overview
When passing AddTagsToResourceMessage as input to an Aws::Client method, you can use a vanilla Hash:
{
resource_name: "String", # required
tags: [ # required
{
key: "String",
value: "String",
},
],
}
Represents the input of an AddTagsToResource operation.
Instance Attribute Summary collapse
-
#resource_name ⇒ String
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
orarn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot
. -
#tags ⇒ Array<Types::Tag>
A list of cost allocation tags to be added to this resource.
Instance Attribute Details
#resource_name ⇒ String
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
.
ElastiCache resources are cluster and snapshot.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
#tags ⇒ Array<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.