removeTagsFromResource
inline suspend fun ElastiCacheClient.removeTagsFromResource(crossinline block: RemoveTagsFromResourceRequest.Builder.() -> Unit): RemoveTagsFromResourceResponse
Removes the tags identified by the TagKeys
list from the named resource. A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track all your ElastiCache resources, with the exception of global replication group. When you add or remove tags on replication groups, those actions will be replicated to all nodes in the replication group. For more information, see Resource-level permissions.
Samples
fun main() {
//sampleStart
// Removes tags identified by a list of tag keys from the list of tags on the specified resource.
val resp = elastiCacheClient.removeTagsFromResource {
resourceName = "arn:aws:elasticache:us-east-1:1234567890:cluster:my-mem-cluster"
tagKeys = listOf<String>(
"A",
"C",
"E"
)
}
//sampleEnd
}