batchUpdateCategory

Updates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see Custom labels for Amazon Q Apps.

Samples

import aws.sdk.kotlin.services.qapps.model.CategoryInput

fun main() { 
   //sampleStart 
   // Updates the categories in the library
qAppsClient.batchUpdateCategory {
    instanceId = "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
    categories = listOf<CategoryInput>(
        CategoryInput {
            id = "549abfe0-f5c4-45a2-bb9b-c05987a49c6d"
            title = "HR Management"
        },
        CategoryInput {
            id = "18cbebaa-196a-4aa5-a840-88d548e07f8f"
            title = "Sales"
        }            
    )
} 
   //sampleEnd
}