Amazon SNS: Not able to get Application Endpoint Arn

I need to subscribe a PlatformApplication to a Topic for that I create a new PlatformApplication which returns the PlatformApplicationArn and a new Topic which returns TopicArn . However to subsribe to a topic one needs Application Endpoint Arn which I am unable to find using any calls.

Below is their API.

response = client.subscribe(
    TopicArn='string',
    Protocol='string',
    Endpoint='string'
)

For the application protocol, the endpoint is the EndpointArn of a mobile app and device.

If I use PlatformApplicationArn I get the below error.

botocore.errorfactory.InvalidParameterException: An error occurred
(InvalidParameter) when calling the Subscribe operation: Invalid parameter:   
Application endpoint arn invalid:arn:aws:sns:us-west-
2:252285631092:app/GCM/tmp

Their document is so lacking. Can anyone help find the same?

链接地址: http://www.djcxy.com/p/32218.html

上一篇: 如何调试Amazon SQS订阅SNS的问题

下一篇: 亚马逊SNS:无法获得应用程序端点