每个订阅可以只有一个协议
String topicArn = snsClient.createTopic(new CreateTopicRequest("lambda_topic" /*topic Name*/).getTopicArn();
String subscriptionArn = snsClient.subscribe(new SubscribeRequest(topicArn,"lambda", "arn:aws:lambda:us-east-1:123456789012:function:messageStore"));
因此,在向主题发布消息时,是否有任何方法可以指定使用哪种协议,以便最终不会向所有协议发送消息?
{
"default": "Message body text here.",
"email": "Message body text here.",
"sms": "Message body text here."
}