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
22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 | |