AWS SDK Version 3 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.

Returns a list of tags. You can return tags from a specific resource by specifying an ARN, or you can return all tags for a given type of resource, such as clusters, snapshots, and so on.

The following are limitations for DescribeTags:

If you specify both tag keys and tag values in the same request, Amazon Redshift returns all resources that match any combination of the specified keys and values. For example, if you have owner and environment for tag keys, and admin and test for tag values, all resources that have any combination of those values are returned.

If both tag keys and values are omitted from the request, resources are returned regardless of whether they have tag keys or values associated with them.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to DescribeTagsAsync.

Namespace: Amazon.Redshift
Assembly: AWSSDK.Redshift.dll
Version: 3.x.y.z


public abstract DescribeTagsResponse DescribeTags(
         DescribeTagsRequest request
Type: Amazon.Redshift.Model.DescribeTagsRequest

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

Return Value
The response from the DescribeTags service method, as returned by Redshift.


InvalidTagException The tag is invalid.
ResourceNotFoundException The resource could not be found.


This example gets all available tags for an account.

To get tags for a resource

var response = client.DescribeTags(new DescribeTagsRequest 

List taggedResources = response.TaggedResources;


Version Information

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also