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 UntagResource operation. Deletes specified tags from an Batch resource.

Inheritance Hierarchy

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

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

Syntax

C#
public class UntagResourceRequest : AmazonBatchRequest
         IAmazonWebServiceRequest

The UntagResourceRequest type exposes the following members

Constructors

NameDescription
Public Method UntagResourceRequest()

Properties

NameTypeDescription
Public Property ResourceArn System.String

Gets and sets the property ResourceArn.

The Amazon Resource Name (ARN) of the resource from which to delete tags. 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.

Public Property TagKeys System.Collections.Generic.List<System.String>

Gets and sets the property TagKeys.

The keys of the tags to be removed.

Examples

This demonstrates calling the UntagResource action.

UntagResource Example


var client = new AmazonBatchClient();
var response = client.UntagResource(new UntagResourceRequest 
{
    ResourceArn = "arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1",
    TagKeys = new List<string> {
        "Stage"
    }
});


            

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