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.

Container for the parameters to the ListTagsForResource operation. Lists the tags that have been added to the specified resource. This operation is only supported in the cached volume, stored volume and tape gateway type.

Inheritance Hierarchy


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


public class ListTagsForResourceRequest : AmazonStorageGatewayRequest

The ListTagsForResourceRequest type exposes the following members



Public Property Limit System.Int32

Gets and sets the property Limit.

Specifies that the list of tags returned be limited to the specified number of items.

Public Property Marker System.String

Gets and sets the property Marker.

An opaque string that indicates the position at which to begin returning the list of tags.

Public Property ResourceARN System.String

Gets and sets the property ResourceARN.

The Amazon Resource Name (ARN) of the resource for which you want to list tags.


Lists the tags that have been added to the specified resource.

To list tags that have been added to a resource

var response = client.ListTagsForResource(new ListTagsForResourceRequest 
    Limit = 1,
    Marker = "1",
    ResourceARN = "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B"

string marker = response.Marker;
string resourceARN = response.ResourceARN;
List tags = response.Tags;


Version Information

.NET Standard:
Supported in: 1.3

.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