tagResource

abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Assigns metadata to an AppConfig resource. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define. You can specify a maximum of 50 tags for a resource.

Samples


fun main() { 
   //sampleStart 
   // The following tag resource example tags an application resource.
appConfigClient.tagResource {
    resourceArn = "arn:aws:appconfig:us-east-1:111122223333:application/339ohji"
    tags = mapOf<String, String>(
        "group1" to "1"
    )
} 
   //sampleEnd
}