Paws::Kinesis::MemoryCaller - A Paws Caller with in-memory Kinesis.
my $kinesis = Paws->service('Kinesis', region => 'N/A', caller => Paws::Kinesis::MemoryCaller->new(), credentials => Paws::Credential::Environment->new(), ); # or simply... my $kinesis = Paws::Kinesis::MemoryCaller->new_kinesis(); # Then use $kinesis as you would normally, for example: # Put multiple records on a stream... $kinesis->PutRecords(%args); # Get records from a stream... $kinesis->GetRecords(%args);
Paws::Kinesis::MemoryCaller implements Paws::Net::CallerRole which simulates its own streams, shards and records in memory.
The following methods have been implemented:
CreateStream
DescribeStream
GetRecords
GetShardIterator
PutRecord
PutRecords
Shortcut method to create a new Kinesis service instance that uses this caller. Equivalent to:
Paws->service('Kinesis', caller => Paws::Kinesis::MemoryCaller->new(), credentials => Paws::Credential::Environment->new(), region => "N/A", );
Copyright (C) Keith Broughton.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Keith Broughton <keithbro [AT] cpan.org>
<keithbro [AT] cpan.org>
Please report any bugs or feature requests on GitHub:
https://github.com/keithbro/Paws-Kinesis-MemoryCaller/issues.
To install Paws::Kinesis::MemoryCaller, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws::Kinesis::MemoryCaller
CPAN shell
perl -MCPAN -e shell install Paws::Kinesis::MemoryCaller
For more information on module installation, please visit the detailed CPAN module installation guide.