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
29312 29313 29314 29315 29316 29317 29318 29319 29320 29321 29322 29323 29324 29325 29326 29327 29328 29329 29330 29331 29332 29333 29334 29335 29336 29337 29338 29339 29340 29341 29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 | |