startQAppSession
Starts a new session for an Amazon Q App, allowing inputs to be provided and the app to be run.
Each Q App session will be condensed into a single conversation in the web experience.
Samples
import aws.sdk.kotlin.services.qapps.model.CardValue
fun main() {
//sampleStart
// Start a session for an Amazon Q App using version 1, passing in initial values for one card
val resp = qAppsClient.startQAppSession {
instanceId = "4cc5e4c2-d2a2-4188-a114-9ca125b4aedc"
appId = "65e7dce7-226a-47f9-b689-22850becef89"
appVersion = 1
initialValues = listOf<CardValue>(
CardValue {
cardId = "6fb5b404-3b7b-48a4-8a8b-56406922a606"
value = "What is the circumference of Earth?"
}
)
}
//sampleEnd
}