untagResource
inline suspend fun ApplicationAutoScalingClient.untagResource(crossinline block: UntagResourceRequest.Builder.() -> Unit): UntagResourceResponse
Deletes tags from an Application Auto Scaling scalable target. To delete a tag, specify the tag key and the Application Auto Scaling scalable target.
Samples
fun main() {
//sampleStart
// This example removes the tag pair with the key name "environment" from the scalable target specified
// by its ARN.
val resp = applicationAutoScalingClient.untagResource {
resourceArn = "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123"
tagKeys = listOf<String>(
"environment"
)
}
//sampleEnd
}