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 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Batch.AmazonBatchRequest
      Amazon.Batch.Model.ListTagsForResourceRequest

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

Syntax

C#
public class ListTagsForResourceRequest : AmazonBatchRequest
         IAmazonWebServiceRequest

The ListTagsForResourceRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property 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.

Examples

This demonstrates calling the ListTagsForResource action.

ListTagsForResource Example


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;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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