PublishToEndpoint
Source:
src/AWS/SNS/PublishToEndpoint.ts
Runtime binding for sns:Publish.
Runtime binding for sns:Publish targeting a mobile-push endpoint of a
PlatformApplication: pass the device TargetArn returned by
CreatePlatformEndpoint.
Provide the PublishToEndpointHttp layer on the Function to implement the binding.
Mobile Push
Section titled “Mobile Push”const publishToEndpoint = yield* SNS.PublishToEndpoint(app);yield* publishToEndpoint({ TargetArn: endpointArn, Message: "hello",});