update_q_app_session_metadata
¶
update_q_app_session_metadata(
instance_id: InstanceId,
session_id: UUID,
sharing_configuration: SessionSharingConfiguration,
*,
config_overrides: Optional[QAppsClientConfig] = None,
session_name: Optional[SessionName] = None,
) -> UpdateQAppSessionMetadataOutput
Updates the configuration metadata of a session for a given Q App sessionId.
Parameters:
-
instance_id(InstanceId) –The unique identifier of the Amazon Q Business application environment instance.
-
session_id(UUID) –The unique identifier of the Q App session to update configuration for.
-
session_name(Optional[SessionName], default:None) –The new name for the Q App session.
-
sharing_configuration(SessionSharingConfiguration) –The new sharing configuration for the Q App data collection session.
Raises:
-
AccessDeniedException–The client is not authorized to perform the requested operation.
-
InternalServerException–An internal service error occurred while processing the request.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The requested operation could not be completed because it would exceed the service's quota or limit.
-
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:
Updates an existing session metadata for an Amazon Q App
>>> client.update_q_app_session_metadata(instance_id='0b95c9c4-89cc-4aa8-9aae-aa91cbec699f', session_id='56ae47c3-10bc-4c2c-8b27-9b9fe23b3edb', session_name='Trip itinerary collection session', sharing_configuration={'enabled': True, 'acceptResponses': True, 'revealCards': False})
Source code in docs_src/capo_qapps/_services/q_apps.py
2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 | |