WebService::Amazon::DynamoDB - perl server implementation for the AWS DynamoDB API
version 0.001
Takes the following named parameters:
ExclusiveStartTableName
Limit
Resolves to a hashref containing the following data:
LastEvaluatedTableName
TableNames
ListTables (p. 58)
CreateTable (p. 22)
DescribeTable (p. 47)
UpdateTable (p. 119)
DeleteTable (p. 43)
PutItem (p. 61)
GetItem (p. 52)
UpdateItem (p. 103)
The following methods are not part of the standard DynamoDB public API, so they are not recommended for use directly.
Adds this table - called by "create_table" if everything passes validation.
Drops the table - called to remove a table that was previously in 'DELETING' state.
Resolves to the attributes requested for this update.
Returns consumed capacity information if available.
Resolves to collection metrics information, if available.
Update or return current table status.
Returns true if we have this table.
Raises various exceptions based on table state.
The following events may be raised on the message bus used by this class - use "subscribe_to_event" in Mixin::Event::Dispatch to watch for them:
$srv->bus->subscribe_to_event( list_tables => sub { my ($ev, $tables, $req, $resp) = @_; ... } );
Note that most of these include a Future - the event is triggered once the Future is marked as ready, so it should be safe to call get to examine the current state:
get
$srv->bus->subscribe_to_event( create_table => sub { my ($ev, $tbl, $req, $resp) = @_; warn "Had a failed table creation request" unless eval { $resp->get }; } );
List tables request.
$request - the original request, as a hashref
$response - the response that will be sent back to the client, as a Future
$tbl - an array of WebService::Amazon::DynamoDB::Server::Table instances
Describe table request.
$tbl - the WebService::Amazon::DynamoDB::Server::Table instance, may be undef
Called when have had a table creation request.
$request - the original request which caused the creation, as a hashref
$tbl - the new WebService::Amazon::DynamoDB::Server::Table instance, may be undef
A table update request.
Called when we have had a table deletion request.
$tbl - the WebService::Amazon::DynamoDB::Server::Table instance that will be deleted, may be undef
Get item request.
$item - the WebService::Amazon::DynamoDB::Server::Item instance, may be undef
Put item request.
Tom Molesworth <cpan@perlsite.co.uk>
Copyright Tom Molesworth 2013-2015. Licensed under the same terms as Perl itself.
To install WebService::Amazon::DynamoDB::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Amazon::DynamoDB::Server
CPAN shell
perl -MCPAN -e shell install WebService::Amazon::DynamoDB::Server
For more information on module installation, please visit the detailed CPAN module installation guide.