Android Code Snippet [B4X] Amazon DynamoDB

Amazon DynamoDB is a NoSQL database service: AWS DynamoDB

The attached project (B4J, B4A and B4I) shows how to access Amazon DynamoDB. The relevant code module is 'AWSDynamoDB'. You should first initialize the class with your credentials (put your keys in Main.Process_Globals in order to obfuscate them):
Private DDB As AWSDynamoDB
DDB.Initialize(DynamoDBAccessKey, DynamoDBSecretAccessKey, DynamoDBRegion)

This is an example of how to perform a GetItem request:
Wait For(DDB.GetItem(tbTable.Text, tbPartitionKey.Text, tbValue1.Text, tbSortKey.Text, tbValue2.Text)) Complete (Result As String)

Not all operations are implemented but it should be easy to add them based on the examples.



    21.8 KB · Views: 139