update_user_notification_status
async
¶
update_user_notification_status(
instance_id: InstanceId,
notification_id: NotificationId,
user_id: UserId,
status: NotificationStatus,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
last_modified_time: Optional[Timestamp] = None,
last_modified_region: Optional[RegionName] = None,
) -> UpdateUserNotificationStatusResponse
Updates the status of a notification for a specific user, such as marking it as read or hidden. Users can only update notification status for notifications that have been sent to them. READ status deprioritizes the notification and greys it out, while HIDDEN status removes it from the notification widget.
Parameters:
-
instance_id(InstanceId) –The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
notification_id(NotificationId) –The unique identifier for the notification.
-
user_id(UserId) –The identifier of the user whose notification status is being updated.
-
status(NotificationStatus) –The new status for the notification. Valid values are READ, UNREAD, and HIDDEN.
-
last_modified_time(Optional[Timestamp], default:None) –The timestamp when the notification status was last modified. Used for cross-region replication and optimistic locking.
-
last_modified_region(Optional[RegionName], default:None) –The AWS Region where the notification status was last modified. Used for cross-region replication.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 29386 29387 29388 29389 29390 29391 29392 29393 29394 29395 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415 29416 29417 29418 29419 29420 29421 29422 29423 29424 29425 29426 29427 29428 29429 29430 29431 29432 29433 29434 29435 29436 29437 29438 29439 29440 29441 29442 | |