send_outbound_web_notification
async
¶
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[AsyncConnectClientConfig] = 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/async_connect.py
23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 23101 23102 23103 23104 23105 | |