Setting up the Amazon DynamoDB Connector¶
Amazon DynamoDB Connector allows you to access the Amazon DynamoDB REST API from integration sequence.
Amazon DynamoDB makes it simple and cost-effective to store and retrieve any amount of data, as well as serve any level of request traffic. It uses a NoSQL database model, which is non-relational, allowing documents, graphs, and columnar among its data models.
Configuring message builders/formatters¶
Before you start configuring the Amazon DynamoDB connector, you also need to configure the integration runtime, and we refer to that location as
Specific message builders/formatters configuration needs to be enabled in the product as shown below before starting the integration service.
If you are using the Micro Integrator of EI7 or APIM 4.0.0, you need to enable this property by adding the following to the
[[custom_message_formatters]] class="org.apache.synapse.commons.json.JsonStreamFormatter" content_type = "application/x-amz-json-1.0" [[custom_message_builders]] class="org.apache.synapse.commons.json.JsonStreamBuilder" content_type = "application/x-amz-json-1.0"
If you are using EI 6, you can enable this property by doing the following Axis2 configurations in the
<messageFormatter contentType="application/x-amz-json-1.0" class="org.apache.synapse.commons.json.JsonStreamFormatter"/>
<messageBuilder contentType="application/x-amz-json-1.0" class="org.apache.synapse.commons.json.JsonStreamBuilder"/>
Note: If you want to perform blocking invocations, ensure that the above builder and formatter are added and enabled in the
Setting up the AWS Account and DynamoDB Environment¶
Please follow the steps mentioned in the Setting up the Amazon Lambda Environment document in order to create an Amazon account and obtain the access key id and secret access key.
Please find the following steps to navigate in to the Amazon DynamoDB using the AWS account.
Sign in to the AWS Management Console and search Database section under Services.
You can see the following operations and sub operations. The output in the AWS DynamoDB console are shown below.
- Working with Items in Amazon DynamoDB
- Working with Tables in Amazon DynamoDB