WebService::Amazon::DynamoDB - support for the AWS DynamoDB API
version 0.001
my $ddb = WebService::Amazon::DynamoDB->new( implementation => 'WebService::Amazon::DynamoDB::LWP', version => '20120810', access_key => 'access_key', secret_key => 'secret_key', host => 'localhost', port => 8000, ); $ddb->batch_get_item( sub { my $tbl = shift; my $data = shift; warn "Batch get: $tbl had " . join(',', %$data) . "\n"; }, items => { $table_name => { keys => [ name => 'some test name here', ], fields => [qw(name age)], } }, )->get;
Provides a Future-based API for Amazon's DynamoDB REST API. See WebService::Amazon::DynamoDB::20120810 for available methods.
Current implementations for issuing the HTTP requests:
WebService::Amazon::DynamoDB::NaHTTP - use Net::Async::HTTP for applications based on IO::Async (this gives nonblocking behaviour)
WebService::Amazon::DynamoDB::LWP - use LWP::UserAgent (will block, timeouts are unlikely to work)
WebService::Amazon::DynamoDB::MojoUA - use Mojo::UserAgent, should be suitable for integration into a Mojolicious application.
Net::Amazon::DynamoDB - supports the older (2011) API with v2 signing, so it doesn't work with DynamoDB Local.
AWS::CLIWrapper - alternative approach using wrappers around AWS commandline tools
Tom Molesworth <cpan@entitymodel.com>
Copyright Tom Molesworth 2013. Licensed under the same terms as Perl itself.
To install WebService::Amazon::DynamoDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Amazon::DynamoDB
CPAN shell
perl -MCPAN -e shell install WebService::Amazon::DynamoDB
For more information on module installation, please visit the detailed CPAN module installation guide.