changeTagsForResource

Adds, edits, or deletes tags for a health check or a hosted zone.

For information about using tags for cost allocation, see Using Cost Allocation Tags in the Billing and Cost Management User Guide.

Samples

import aws.sdk.kotlin.services.route53.model.Tag
import aws.sdk.kotlin.services.route53.model.TagResourceType

fun main() { 
   //sampleStart 
   // The following example adds two tags and removes one tag from the hosted zone with ID Z3M3LMPEXAMPLE.
val resp = route53Client.changeTagsForResource {
    resourceType = TagResourceType.fromValue("hostedzone")
    resourceId = "Z3M3LMPEXAMPLE"
    addTags = listOf<Tag>(
        Tag {
            key = "apex"
            value = "3874"
        },
        Tag {
            key = "acme"
            value = "4938"
        }            
    )
    removeTagKeys = listOf<String>(
        "Nadir"
    )
} 
   //sampleEnd
}