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.
A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track all your ElastiCache resources, with the exception of global replication group. When you add or remove tags on replication groups, those actions will be replicated to all nodes in the replication group. For more information, see Resource-level permissions.
For example, you can use cost-allocation tags to your ElastiCache resources, Amazon 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 in the ElastiCache User Guide.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginAddTagsToResource and EndAddTagsToResource.
Namespace: Amazon.ElastiCache
Assembly: AWSSDK.ElastiCache.dll
Version: 3.x.y.z
public abstract Task<AddTagsToResourceResponse> AddTagsToResourceAsync( AddTagsToResourceRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the AddTagsToResource service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
CacheClusterNotFoundException | The requested cluster ID does not refer to an existing cluster. |
CacheParameterGroupNotFoundException | The requested cache parameter group name does not refer to an existing cache parameter group. |
CacheSecurityGroupNotFoundException | The requested cache security group name does not refer to an existing cache security group. |
CacheSubnetGroupNotFoundException | The requested cache subnet group name does not refer to an existing cache subnet group. |
InvalidARNException | The requested Amazon Resource Name (ARN) does not refer to an existing resource. |
InvalidReplicationGroupStateException | The requested replication group is not in the available state. |
InvalidServerlessCacheSnapshotStateException | The state of the serverless cache snapshot was not received. Available for Redis only. |
InvalidServerlessCacheStateException | The account for these credentials is not currently active. |
ReplicationGroupNotFoundException | The specified replication group does not exist. |
ReservedCacheNodeNotFoundException | The requested reserved cache node was not found. |
ServerlessCacheNotFoundException | The serverless cache was not found or does not exist. |
ServerlessCacheSnapshotNotFoundException | This serverless cache snapshot could not be found or does not exist. Available for Redis only. |
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 50. |
UserGroupNotFoundException | The user group was not found or does not exist |
UserNotFoundException | The user does not exist or could not be found. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5