Confirmation message
When you register or change an endpoint, Amazon sends a confirmation message containing a confirmation token to that endpoint. To confirm the endpoint, copy the value of theToken field from this message and paste it into the Confirmation token field in the Developer Console. For details, see Use Real-Time Notifications.
The following example shows a confirmation message. The Token field holds the value you paste into the console.
Subscription
In this example, a customer creates a new subscription for your app and you receive a SUBSCRIPTION_PURCHASED Real-Time Notification.Consumable
In this example, a customer buys a consumable from your app and you receive a CONSUMABLE_PURCHASED Real-Time Notification.Entitlement
In this example, a customer buys an entitlement from your app and you receive an ENTITLEMENT_PURCHASED Real-Time Notification.Duplicate notifications
Generally, each Real-Time Notification is delivered to each specified endpoint once. However, the distributed nature of Amazon SNS and transient network conditions can cause an occasional duplicate message. Make sure to design the application so that duplicate notification messages do not create any errors or inconsistencies.Example code with Amazon AWS SDK
AWS reference documentation:- Amazon AWS SDK
- Example Code Pointer
- Code Deep Dive Section
- AWS region: us-east-1

