CmdID

CmdID / aws / aws sns

aws sns create-platform-endpoint

Creates an endpoint for a device and mobile app on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a platform application endpoint

The following create-platform-endpoint example creates an endpoint for the specified platform application using the specified token.

aws sns create-platform-endpoint --platform-application-arn arn:aws:sns:us-west-2:123456789012:app/GCM/MyApplication --token EXAMPLE12345...Identify
--platform-application-arnPlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
--tokenUnique identifier created by the notification service for an app on a device.
Its output
{
    "EndpointArn": "arn:aws:sns:us-west-2:1234567890:endpoint/GCM/MyApplication/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}

For more information, see Setting up an Amazon SNS platform endpoint for mobile notifications in the Amazon Simple Notification Service Developer Guide.

Options

4 in the AWS CLI reference
--attributesFor a list of attributes, see SetEndpointAttributes .
--custom-user-dataArbitrary user data to associate with the endpoint.
--platform-application-arnPlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
--tokenUnique identifier created by the notification service for an app on a device.