我使用AWS SDK发送SNS,但通知不会消失。
final AmazonSNSClient client = new AmazonSNSClient( new BasicAWSCredentials( "xxxx", "zzzzzzzzzzzz") );
final PublishRequest request = new PublishRequest("arn:aws:sns:us-east-1:123455:DEV_WEBSERVICE_ERROR", "This is test", "DEV-Publish");
final PublishResult result = client.publish( request );
System.out.println(result.getMessageId());
client.shutdown();
我创建了一个主题,并在请求中提到了arn。当我执行此代码时,它不发送通知。
请让我知道,那里有什么问题。我正在使用AWS JAVA SDK 1.5.6
-Thanks 苏巴