update_user_notification_status
¶
update_user_notification_status(
instance_id: InstanceId,
notification_id: NotificationId,
user_id: UserId,
status: NotificationStatus,
*,
config_overrides: Optional[ConnectClientConfig] = 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/connect.py
28979 28980 28981 28982 28983 28984 28985 28986 28987 28988 28989 28990 28991 28992 28993 28994 28995 28996 28997 28998 28999 29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 29015 29016 29017 29018 29019 29020 29021 29022 29023 29024 29025 29026 29027 29028 29029 29030 29031 29032 29033 29034 29035 29036 29037 29038 29039 29040 29041 29042 29043 29044 29045 29046 | |