diff --git a/src/MessageValidator.php b/src/MessageValidator.php index 3e6b646..dd4c24c 100644 --- a/src/MessageValidator.php +++ b/src/MessageValidator.php @@ -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..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)?$/';