public static function create(amazon_sns_topic $topic, $endpoint, $protocol = 'email')
 {
     $response = amazon_sns_helper::request(array('Action' => 'Subscribe', 'TopicArn' => $topic->getArn(), 'Endpoint' => $endpoint, 'Protocol' => $protocol));
 }
 /**
  * Create a new topic with this name
  * 
  * @param string topic name
  * @return amazon_sns_topic
  */
 public static function create($name)
 {
     $response = amazon_sns_helper::request(array('Action' => 'CreateTopic', 'Name' => $name));
     return new amazon_sns_topic($response->CreateTopicResult->TopicArn);
 }