tagResource

abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Associates tags with an Amazon Q Apps resource.

Samples


fun main() { 
   //sampleStart 
   // A call to tag a resource
qAppsClient.tagResource {
    resourceArn = "arn:aws:qapps:us-west-2:123456789012:application/3642ba81-344c-42fd-a480-9119a5a5f26b/qapp/7212ff04-de7b-4831-bd80-45d6975ba1b0"
    tags = mapOf<String, String>(
        "department" to "HR"
    )
} 
   //sampleEnd
}