removeTags
inline suspend fun ElasticLoadBalancingV2Client.removeTags(crossinline block: RemoveTagsRequest.Builder.() -> Unit): RemoveTagsResponse
Removes the specified tags from the specified Elastic Load Balancing resources. You can remove the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.
Samples
fun main() {
//sampleStart
// This example removes the specified tags from the specified load balancer.
elasticLoadBalancingV2Client.removeTags {
resourceArns = listOf<String>(
"arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
)
tagKeys = listOf<String>(
"project",
"department"
)
}
//sampleEnd
}