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.
Lists all metadata tags attached to an DMS resource, including replication instance,
endpoint, subnet group, and migration task. For more information, see Tag
data type description.
For .NET Core this operation is only available in asynchronous form. Please refer to ListTagsForResourceAsync.
Namespace: Amazon.DatabaseMigrationService
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z
public abstract ListTagsForResourceResponse ListTagsForResource( ListTagsForResourceRequest request )
Container for the necessary parameters to execute the ListTagsForResource service method.
Exception | Condition |
---|---|
ResourceNotFoundException | The resource could not be found. |
Lists all tags for an AWS DMS resource.
var client = new AmazonDatabaseMigrationServiceClient(); var response = client.ListTagsForResource(new ListTagsForResourceRequest { ResourceArn = "" }); List<Tag> tagList = response.TagList;
.NET Framework:
Supported in: 4.5 and newer, 3.5