Skip to content

CreatePlatformEndpoint

Source: src/AWS/SNS/CreatePlatformEndpoint.ts

Runtime binding for sns:CreatePlatformEndpoint.

Bind this operation to a PlatformApplication to register device push tokens at runtime. The PlatformApplicationArn is injected automatically; the call is idempotent per token. Provide the CreatePlatformEndpointHttp layer on the Function to implement the binding.

const createEndpoint = yield* SNS.CreatePlatformEndpoint(app);
const endpoint = yield* createEndpoint({ Token: deviceToken });