Skip to content

Commit

Permalink
Document default pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jeskew committed Sep 3, 2015
1 parent 62de8b3 commit 9e32576
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/MessageValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ class MessageValidator
/** @var string */
private $hostPattern;

/** @var string */
/**
* @var string A pattern that will match all regional SNS endpoints, e.g.:
* - sns.<region>.amazonaws.com (AWS)
* - sns.us-gov-west-1.amazonaws.com (AWS GovCloud)
* - sns.cn-north-1.amazonaws.com.cn (AWS China)
*/
private static $defaultHostPattern
= '/^sns\.[a-zA-Z0-9\-]{3,}\.amazonaws\.com(\.cn)?$/';

Expand Down

0 comments on commit 9e32576

Please sign in to comment.