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.
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
public abstract UntagResourceResponse UntagResource( UntagResourceRequest request )
Container for the necessary parameters to execute the UntagResource service method.
Exception | Condition |
---|---|
ResourceNotFoundException | The specified resource doesn't exist. |
ValidationException | An exception was thrown for a validation issue. Review the available parameters for the API request. |
This example removes the tag pair with the key name "environment" from the scalable target specified by its ARN.
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" } });
.NET Framework:
Supported in: 4.5, 4.0, 3.5