Safe Haskell | None |
---|---|
Language | Haskell2010 |
Amazon.SNS.Verify.Validate
Synopsis
Documentation
validateSnsMessage :: MonadIO m => SNSPayload -> m (Either SNSNotificationValidationError ValidSNSMessage) Source #
Validate SNS notification
SNS messages are validated through their signature. The algorithm is detailed in the documentation below.
handleSubscription :: MonadIO m => ValidSNSMessage -> m (Either SNSNotificationValidationError Text) Source #
data SNSNotificationValidationError Source #
Constructors
Instances
Exception SNSNotificationValidationError Source # | |
Defined in Amazon.SNS.Verify.Validate | |
Show SNSNotificationValidationError Source # | |
Defined in Amazon.SNS.Verify.Validate Methods showsPrec :: Int -> SNSNotificationValidationError -> ShowS # show :: SNSNotificationValidationError -> String # showList :: [SNSNotificationValidationError] -> ShowS # | |
Eq SNSNotificationValidationError Source # | |
Defined in Amazon.SNS.Verify.Validate |
data ValidSNSMessage Source #
Instances
Show ValidSNSMessage Source # | |
Defined in Amazon.SNS.Verify.Validate Methods showsPrec :: Int -> ValidSNSMessage -> ShowS # show :: ValidSNSMessage -> String # showList :: [ValidSNSMessage] -> ShowS # | |
Eq ValidSNSMessage Source # | |
Defined in Amazon.SNS.Verify.Validate Methods (==) :: ValidSNSMessage -> ValidSNSMessage -> Bool # (/=) :: ValidSNSMessage -> ValidSNSMessage -> Bool # |