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 for an Batch resource. Batch resources that support tags are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported.
Namespace: Amazon.Batch.Model
Assembly: AWSSDK.Batch.dll
Version: 3.x.y.z
public class ListTagsForResourceRequest : AmazonBatchRequest IAmazonWebServiceRequest
The ListTagsForResourceRequest type exposes the following members
Name | Description | |
---|---|---|
ListTagsForResourceRequest() |
Name | Type | Description | |
---|---|---|---|
ResourceArn | System.String |
Gets and sets the property ResourceArn. The Amazon Resource Name (ARN) that identifies the resource that tags are listed for. Batch resources that support tags are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported. |
This demonstrates calling the ListTagsForResource action.
var client = new AmazonBatchClient(); var response = client.ListTagsForResource(new ListTagsForResourceRequest { ResourceArn = "arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1" }); Dictionary<string, string> tags = response.Tags;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5