update_q_app
async
¶
update_q_app(
instance_id: InstanceId,
app_id: UUID,
*,
config_overrides: Optional[AsyncQAppsClientConfig] = None,
title: Optional[Title] = None,
description: Optional[Description] = None,
app_definition: Optional[AppDefinitionInput] = None,
) -> UpdateQAppOutput
Updates an existing Amazon Q App, allowing modifications to its title, description, and definition.
Parameters:
-
instance_id(InstanceId) –The unique identifier of the Amazon Q Business application environment instance.
-
app_id(UUID) –The unique identifier of the Q App to update.
-
title(Optional[Title], default:None) –The new title for the Q App.
-
description(Optional[Description], default:None) –The new description for the Q App.
-
app_definition(Optional[AppDefinitionInput], default:None) –The new definition specifying the cards and flow for the Q App.
Raises:
-
AccessDeniedException–The client is not authorized to perform the requested operation.
-
ContentTooLargeException–The requested operation could not be completed because the content exceeds the maximum allowed size.
-
InternalServerException–An internal service error occurred while processing the request.
-
ResourceNotFoundException–The requested resource could not be found.
-
ThrottlingException–The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.
-
UnauthorizedException–The client is not authenticated or authorized to perform the requested operation.
-
ValidationException–The input failed to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Updating the title of an app
>>> await client.update_q_app(instance_id='0b95c9c4-89cc-4aa8-9aae-aa91cbec699f', app_id='7212ff04-de7b-4831-bd80-45d6975ba1b0', title='This is the new title')
Updating the app so it has a single q-query card
>>> await client.update_q_app(instance_id='0b95c9c4-89cc-4aa8-9aae-aa91cbec699f', app_id='7212ff04-de7b-4831-bd80-45d6975ba1b0', app_definition={'cards': [{'qQuery': {'type': 'q-query', 'title': 'Trip Ideas', 'id': '18870b94-1e63-40e0-8c12-669c90ac5acc', 'prompt': 'Recommend me an itinerary for a trip'}}]})
Source code in docs_src/capo_qapps/_services/async_q_apps.py
2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 | |