title: How to publish sns to a specific endpoint?
body: <p>I have a issue with publishing sns to a specific endpoint.</p>
  
  <p>My code:</p>
  
  <pre><code>var AWS = require('aws-sdk');
  AWS.config.loadFromPath('/web/config.json');
  
  var sns = new AWS.SNS();
  sns.publish({
      // TopicArn:'arn:aws:sns:us-west-2:302467918846:MyTestTopik',
      TargetArn: 'arn:aws:sns:us-west-2:302467918846:MyTestTopik:613ee49c-d4dc-4354-a7e6-c1d9d8277c56',
      Message: "Success!!! ",
      Subject: "TestSNS"
  }, function(err, data) {
      if (err) {
          console.log("Error sending a message " + err);
      } else {
          console.log("Sent message: " + data.MessageId);
  
      }
  });
  </code></pre>
  
  <p>When I use <code>TopicArn</code>, everything is fine. But when I try to send notification to a specific endpoint I take error:</p>
  
  <blockquote>
    <p>Error sending a message InvalidParameter: Invalid parameter: Topic Name</p>
  </blockquote>
  
  <p>And I have no idea what kind of parameters it is and from where.</p>