AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
The AddTagsToResource action adds up to 10 cost allocation tags to the named resource. A cost allocation tag is a key-value pair where the key and value are case-sensitive. Cost allocation tags can be used to categorize and track your AWS costs.

When you apply tags to your ElastiCache resources, AWS generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services. For more information, see Using Cost Allocation Tags in Amazon ElastiCache.

Namespace: Amazon.ElastiCache
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public virtual AddTagsToResourceResponse AddTagsToResource(
         AddTagsToResourceRequest request
)

Parameters

request
Type: Amazon.ElastiCache.Model.AddTagsToResourceRequest

Container for the necessary parameters to execute the AddTagsToResource service method.

Return Value
Type: Amazon.ElastiCache.Model.AddTagsToResourceResponse
The response from the AddTagsToResource service method, as returned by ElastiCache.

Exceptions

ExceptionCondition
CacheClusterNotFoundException The requested cache cluster ID does not refer to an existing cache cluster.
InvalidARNException The requested Amazon Resource Name (ARN) does not refer to an existing resource.
SnapshotNotFoundException The requested snapshot name does not refer to an existing snapshot.
TagQuotaPerResourceExceededException The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 10.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5