send_outbound_web_notification
¶
send_outbound_web_notification(
instance_id: InstanceId,
browser_id: WebBrowserId,
session_id: WebSessionId,
expires_at: Timestamp,
source: WebNotificationSource,
destination: WidgetDestination,
content: WebNotificationContent,
*,
config_overrides: Optional[ConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> SendOutboundWebNotificationResponse
Sends an outbound web notification to a customer's web browser for outbound campaigns. For more information about outbound campaigns, see Set up Connect Customer outbound campaigns.
Only the Connect Customer outbound campaigns service principal is allowed to assume a role in your account and call this API.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
-
browser_id(WebBrowserId) –A unique identifier for the customer's web browser instance to which the notification is being sent.
-
session_id(WebSessionId) –A unique identifier for the customer's web session to which the notification is being sent.
-
expires_at(Timestamp) –The timestamp, in Unix epoch time format, at which the web notification expires. After this time, the notification is no longer delivered to the customer's browser.
-
source(WebNotificationSource) –The source of the web notification. A
SourceCampaignobject identifies the campaign and outbound request that triggered this notification. -
destination(WidgetDestination) –The destination for the web notification, specifying the communication widget that delivers the notification and the customer profile of the recipient.
-
content(WebNotificationContent) –The content of the web notification, including the notification type, the view to render, and any optional attributes used to populate it.
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.
-
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
22728 22729 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 22768 22769 22770 22771 22772 22773 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 | |