untagResource

Removes one or more tags from the specified resource.

Samples


fun main() { 
   //sampleStart 
   // This example removes the "Department" and "Project" tags from a resource.
val resp = serviceDiscoveryClient.untagResource {
    resourceArn = "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm"
    tagKeys = listOf<String>(
        "Project",
        "Department"
    )
} 
   //sampleEnd
}