associateQAppWithUser

This operation creates a link between the user's identity calling the operation and a specific Q App. This is useful to mark the Q App as a favorite for the user if the user doesn't own the Amazon Q App so they can still run it and see it in their inventory of Q Apps.

Samples


fun main() { 
   //sampleStart 
   // Links an Amazon Q App to the invoker s list of apps
qAppsClient.associateQAppWithUser {
    appId = "393e77fb-0a30-4f47-ad30-75d71aeaed8a"
    instanceId = "0b95c9c4-89cc-4aa8-9aae-aa91cbec699f"
} 
   //sampleEnd
}