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
23267 23268 23269 23270 23271 23272 23273 23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 23296 23297 23298 23299 23300 23301 23302 23303 23304 23305 23306 23307 23308 23309 23310 23311 23312 23313 23314 23315 23316 23317 23318 23319 23320 23321 23322 23323 23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 23335 23336 23337 23338 | |