addTagsToResource

Adds metadata tags to an Amazon RDS resource. These tags can also be used with cost allocation reporting to track cost associated with Amazon RDS resources, or used in a Condition statement in an IAM policy for Amazon RDS.

For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources.

Samples

import aws.sdk.kotlin.services.rds.model.Tag
fun main() { 
   //sampleStart 
   // This example adds a tag to an option group.
rdsClient.addTagsToResource {
    resourceName = "arn:aws:rds:us-east-1:992648334831:og:mymysqloptiongroup"
    tags = listOf<Tag>(
        Tag {
            key = "Staging"
            value = "LocationDB"
        }            
    )
} 
   //sampleEnd
}