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.

Deletes tags from an Application Auto Scaling scalable target. To delete a tag, specify the tag key and the Application Auto Scaling scalable target.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to UntagResourceAsync.

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

Syntax

C#
public abstract UntagResourceResponse UntagResource(
         UntagResourceRequest request
)

Parameters

request
Type: Amazon.ApplicationAutoScaling.Model.UntagResourceRequest

Container for the necessary parameters to execute the UntagResource service method.

Return Value


The response from the UntagResource service method, as returned by ApplicationAutoScaling.

Exceptions

ExceptionCondition
ResourceNotFoundException The specified resource doesn't exist.
ValidationException An exception was thrown for a validation issue. Review the available parameters for the API request.

Examples

This example removes the tag pair with the key name "environment" from the scalable target specified by its ARN.

To remove a tag from a scalable target


var client = new AmazonApplicationAutoScalingClient();
var response = client.UntagResource(new UntagResourceRequest 
{
    ResourceARN = "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123",
    TagKeys = new List<string> {
        "environment"
    }
});


            

Version Information

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

See Also