changeTagsForResource
abstract suspend fun changeTagsForResource(input: ChangeTagsForResourceRequest): ChangeTagsForResourceResponse
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
// 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"
)
}Content copied to clipboard