batchCreateCategory
inline suspend fun QAppsClient.batchCreateCategory(crossinline block: BatchCreateCategoryRequest.Builder.() -> Unit): BatchCreateCategoryResponse
Creates 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.BatchCreateCategoryInputCategory
fun main() {
//sampleStart
// Creates the categories for the library
qAppsClient.batchCreateCategory {
instanceId = "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
categories = listOf<BatchCreateCategoryInputCategory>(
BatchCreateCategoryInputCategory {
id = "549abfe0-f5c4-45a2-bb9b-c05987a49c6d"
title = "HR"
},
BatchCreateCategoryInputCategory {
id = "18cbebaa-196a-4aa5-a840-88d548e07f8f"
title = "Marketing"
}
)
}
//sampleEnd
}