https://github.com/pplu/sns-notification
Representing SNS Notifications
https://github.com/pplu/sns-notification
Last synced: 10 months ago
JSON representation
Representing SNS Notifications
- Host: GitHub
- URL: https://github.com/pplu/sns-notification
- Owner: pplu
- License: other
- Created: 2017-05-15T12:15:21.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T09:41:08.000Z (over 5 years ago)
- Last Synced: 2025-04-09T05:46:51.026Z (about 1 year ago)
- Language: Perl
- Size: 9.77 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
=encoding UTF-8
=head1 NAME
SNS::Notification - An object for representing SNS Notifications
=head1 SYNOPSIS
use SNS::Notification;
my $not = SNS::Notification->new(
Timestamp => ...
... required attributes ...
);
#do something with $obj
my $body = decode_json($sns_message);
my $sns = eval { SNS::Notification->new($body) };
if ($@) {
die "Doesn't look like an SNS::Message to me";
}
print $sns->Message;
=head1 DESCRIPTION
This module holds an object for representing an SNS messsage. It tries
to validate that all appropiate fields are present.
This is really just a module for other modules that work with SNS to
depend on (and not reimplement it constantly).
=head1 SEE ALSO
L
L
L
=head1 COPYRIGHT and LICENSE
Copyright (c) 2016 by CAPSiDE
This code is distributed under the Apache 2 License. The full text of the license can be found in the LICENSE file included with this module.