2024/12/10 - Amazon Connect Service - 2 new api methods
Changes Add support for Push Notifications for Amazon Connect chat. With Push Notifications enabled an alert could be sent to customers about new messages even when they aren't actively using the mobile application.
Creates registration for a device token and a chat contact to receive real-time push notifications. For more information about push notifications, see Set up push notifications in Amazon Connect for mobile chat in the Amazon Connect Administrator Guide.
See also: AWS API Documentation
Request Syntax
client.create_push_notification_registration( InstanceId='string', ClientToken='string', PinpointAppArn='string', DeviceToken='string', DeviceType='GCM'|'APNS'|'APNS_SANDBOX', ContactConfiguration={ 'ContactId': 'string', 'ParticipantRole': 'AGENT'|'CUSTOMER'|'SYSTEM'|'CUSTOM_BOT'|'SUPERVISOR', 'IncludeRawMessage': True|False } )
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
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.
This field is autopopulated if not provided.
string
[REQUIRED]
The Amazon Resource Name (ARN) of the Pinpoint application.
string
[REQUIRED]
The push notification token issued by the Apple or Google gateways.
string
[REQUIRED]
The device type to use when sending the message.
dict
[REQUIRED]
The contact configuration for push notification registration.
ContactId (string) -- [REQUIRED]
The identifier of the contact within the Amazon Connect instance.
ParticipantRole (string) --
The role of the participant in the chat conversation.
IncludeRawMessage (boolean) --
Whether to include raw connect message in the push notification payload. Default is False.
dict
Response Syntax
{ 'RegistrationId': 'string' }
Response Structure
(dict) --
RegistrationId (string) --
The identifier for the registration.
Deletes registration for a device token and a chat contact.
See also: AWS API Documentation
Request Syntax
client.delete_push_notification_registration( InstanceId='string', RegistrationId='string', ContactId='string' )
string
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
string
[REQUIRED]
The identifier for the registration.
string
[REQUIRED]
The identifier of the contact within the Amazon Connect instance.
dict
Response Syntax
{}
Response Structure
(dict) --