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
29710 29711 29712 29713 29714 29715 29716 29717 29718 29719 29720 29721 29722 29723 29724 29725 29726 29727 29728 29729 29730 29731 29732 29733 29734 29735 29736 29737 29738 29739 29740 29741 29742 29743 29744 29745 29746 29747 29748 29749 29750 29751 29752 29753 29754 29755 29756 29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778 | |