updateQApp
Updates an existing Amazon Q App, allowing modifications to its title, description, and definition.
Samples
import aws.sdk.kotlin.services.qapps.model.AppDefinitionInput
import aws.sdk.kotlin.services.qapps.model.CardInput
import aws.sdk.kotlin.services.qapps.model.CardType
import aws.sdk.kotlin.services.qapps.model.QQueryCardInput
fun main() {
//sampleStart
// Updating the title of an app
val resp = qAppsClient.updateQApp {
instanceId = "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
appId = "7212ff04-de7b-4831-bd80-45d6975ba1b0"
title = "This is the new title"
}
//sampleEnd
}
import aws.sdk.kotlin.services.qapps.model.AppDefinitionInput
import aws.sdk.kotlin.services.qapps.model.CardInput
import aws.sdk.kotlin.services.qapps.model.CardType
import aws.sdk.kotlin.services.qapps.model.QQueryCardInput
fun main() {
//sampleStart
// Updating the app so it has a single q query card
val resp = qAppsClient.updateQApp {
instanceId = "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
appId = "7212ff04-de7b-4831-bd80-45d6975ba1b0"
appDefinition = AppDefinitionInput {
cards = listOf<CardInput>(
CardInput.QQuery(QQueryCardInput {
type = CardType.fromValue("q-query")
title = "Trip Ideas"
id = "18870b94-1e63-40e0-8c12-669c90ac5acc"
prompt = "Recommend me an itinerary for a trip"
}
)
)
}
}
//sampleEnd
}