<html>
<head>
<base href="https://cwiki.apache.org/confluence">
<link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CAMEL&forWysiwyg=true"
type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://cwiki.apache.org/confluence/display/CAMEL/AWS-DDB">AWS-DDB</a></h2>
<h4>Page <b>edited</b> by <a href="https://cwiki.apache.org/confluence/display/~bibryam">Bilgin
Ibryam</a>
</h4>
<br/>
<h4>Changes (2)</h4>
<div id="page-diffs">
<table class="diff" cellpadding="0" cellspacing="0">
<tr><td class="diff-snipped" >...<br></td></tr>
<tr><td class="diff-unchanged" >{div:class=confluenceTableSmall} <br>||
Header || Type || Description || <br></td></tr>
<tr><td class="diff-changed-lines" >| {{CamelAwsDdbProvisionedThroughput}}
| <span class="diff-changed-words">{{ProvisionedThroughputDescription}<span class="diff-added-chars"style="background-color:
#dfd;">}</span></span> | The value of the ProvisionedThroughput property for
this table | <br></td></tr>
<tr><td class="diff-unchanged" >| {{CamelAwsDdbCreationDate}} | {{Date}}
| Creation DateTime of this table. | <br>| {{CamelAwsDdbTableItemCount}} | {{Long}}
| Item count for this table. | <br></td></tr>
<tr><td class="diff-changed-lines" >| {{CamelAwsDdbKeySchema}} | <span
class="diff-changed-words">{{KeySchema<span class="diff-added-chars"style="background-color:
#dfd;">}}</span></span> | The KeySchema that identifies the primary key for
this table. | <br></td></tr>
<tr><td class="diff-unchanged" >| {{CamelAwsDdbTableName}} | {{String}}
| The table name. | <br>| {{CamelAwsDdbTableSize}} | {{Long}} | The table size in bytes.
| <br></td></tr>
<tr><td class="diff-snipped" >...<br></td></tr>
</table>
</div> <h4>Full Content</h4>
<div class="notificationGreySide">
<h2><a name="AWS-DDB-DDBComponent"></a>DDB Component</h2>
<p><b>Available as of Camel 2.10</b></p>
<p>The DynamoDB component supports storing and retrieving data from/to <a href="http://aws.amazon.com/dynamodb"
class="external-link" rel="nofollow">Amazon's DynamoDB</a> service.</p>
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16"
height="16" align="absmiddle" alt="" border="0"></td><td><b>Prerequisites</b><br
/>You must have a valid Amazon Web Services developer account, and be signed up to use
Amazon DynamoDB. More information are available at <a href="http://aws.amazon.com/dynamodb"
class="external-link" rel="nofollow">Amazon DynamoDB</a>.</td></tr></table></div>
<h3><a name="AWS-DDB-URIFormat"></a>URI Format</h3>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
aws-ddb:<span class="code-comment">//domainName[?options]</span>
</pre>
</div></div>
<p>You can append query options to the URI in the following format, ?options=value&option2=value&...</p>
<h3><a name="AWS-DDB-URIOptions"></a>URI Options</h3>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Name </th>
<th class='confluenceTh'> Default Value </th>
<th class='confluenceTh'> Context </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'>amazonDDBClient </td>
<td class='confluenceTd'> <tt>null</tt> </td>
<td class='confluenceTd'> Producer </td>
<td class='confluenceTd'> Reference to a <tt>com.amazonaws.services.dynamodb.AmazonDynamoDB</tt>
in the <a href="/confluence/display/CAMEL/Registry" title="Registry">Registry</a>.
</td>
</tr>
<tr>
<td class='confluenceTd'>accessKey </td>
<td class='confluenceTd'> <tt>null</tt> </td>
<td class='confluenceTd'> Producer </td>
<td class='confluenceTd'> Amazon AWS Access Key </td>
</tr>
<tr>
<td class='confluenceTd'>secretKey </td>
<td class='confluenceTd'> <tt>null</tt> </td>
<td class='confluenceTd'> Producer </td>
<td class='confluenceTd'> Amazon AWS Secret Key </td>
</tr>
<tr>
<td class='confluenceTd'>amazonDdbEndpoint </td>
<td class='confluenceTd'> <tt>null</tt> </td>
<td class='confluenceTd'> Producer </td>
<td class='confluenceTd'> The region with which the AWS-DDB client wants to work with.
</td>
</tr>
<tr>
<td class='confluenceTd'>tableName </td>
<td class='confluenceTd'> <tt>null</tt> </td>
<td class='confluenceTd'> Producer </td>
<td class='confluenceTd'> The name of the table currently worked with. </td>
</tr>
<tr>
<td class='confluenceTd'>readCapacity </td>
<td class='confluenceTd'> <tt>0</tt> </td>
<td class='confluenceTd'> Producer </td>
<td class='confluenceTd'> The provisioned throughput to reserve for reading resources
from your table </td>
</tr>
<tr>
<td class='confluenceTd'>writeCapacity </td>
<td class='confluenceTd'> <tt>0</tt> </td>
<td class='confluenceTd'> Producer </td>
<td class='confluenceTd'> The provisioned throughput to reserved for writing resources
to your table </td>
</tr>
<tr>
<td class='confluenceTd'>consistentRead </td>
<td class='confluenceTd'> <tt>false</tt> </td>
<td class='confluenceTd'> Producer </td>
<td class='confluenceTd'> Determines whether or not strong consistency should be enforced
when data is read.</td>
</tr>
<tr>
<td class='confluenceTd'>operation</td>
<td class='confluenceTd'> <tt>PutAttributes</tt> </td>
<td class='confluenceTd'> Producer </td>
<td class='confluenceTd'> Valid values are BatchGetItems, DeleteItem, DeleteTable, DescribeTable,
GetItem, PutItem, Query, Scan, UpdateItem, UpdateTable.</td>
</tr>
</tbody></table>
</div>
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16"
height="16" align="absmiddle" alt="" border="0"></td><td><b>Required
DDB component options</b><br />You have to provide the amazonDDBClient in the
<a href="/confluence/display/CAMEL/Registry" title="Registry">Registry</a> or
your accessKey and secretKey to access the <a href="http://aws.amazon.com/dynamodb" class="external-link"
rel="nofollow">Amazon's DynamoDB</a>.</td></tr></table></div>
<h3><a name="AWS-DDB-Usage"></a>Usage</h3>
<h4><a name="AWS-DDB-MessageheadersevaluatedbytheDDBproducer"></a>Message
headers evaluated by the DDB producer</h4>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbBatchItems</tt> </td>
<td class='confluenceTd'> <tt>Map<String, KeysAndAttributes></tt>
</td>
<td class='confluenceTd'> A map of the table name and corresponding items to get by
primary key. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbTableName</tt> </td>
<td class='confluenceTd'> <tt>String</tt> </td>
<td class='confluenceTd'> Table Name for this operation. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbKey</tt> </td>
<td class='confluenceTd'> <tt>Key</tt> </td>
<td class='confluenceTd'> The primary key that uniquely identifies each item in a table.
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbReturnValues</tt> </td>
<td class='confluenceTd'> <tt>String</tt> </td>
<td class='confluenceTd'> Use this parameter if you want to get the attribute name-value
pairs before or after they are modified(NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW).
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbUpdateCondition</tt> </td>
<td class='confluenceTd'> <tt>Map<String, ExpectedAttributeValue></tt>
</td>
<td class='confluenceTd'> Designates an attribute for a conditional modification. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbAttributeNames</tt> </td>
<td class='confluenceTd'> <tt>Collection<String></tt> </td>
<td class='confluenceTd'> If attribute names are not specified then all attributes will
be returned. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbConsistentRead</tt> </td>
<td class='confluenceTd'> <tt>Boolean</tt> </td>
<td class='confluenceTd'> If set to true, then a consistent read is issued, otherwise
eventually consistent is used. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbItem</tt> </td>
<td class='confluenceTd'> <tt>Map<String, AttributeValue></tt>
</td>
<td class='confluenceTd'> A map of the attributes for the item, and must include the
primary key values that define the item. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbExactCount</tt> </td>
<td class='confluenceTd'> <tt>Boolean</tt> </td>
<td class='confluenceTd'> If set to true, Amazon DynamoDB returns a total number of
items that match the query parameters, instead of a list of the matching items and their
attributes. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbStartKey</tt> </td>
<td class='confluenceTd'> <tt>Key</tt> </td>
<td class='confluenceTd'> Primary key of the item from which to continue an earlier
query. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbHashKeyValue</tt> </td>
<td class='confluenceTd'> <tt>AttributeValue</tt> </td>
<td class='confluenceTd'> Value of the hash component of the composite primary key.
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbLimit</tt> </td>
<td class='confluenceTd'> <tt>Integer</tt> </td>
<td class='confluenceTd'> The maximum number of items to return. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbScanRangeKeyCondition</tt> </td>
<td class='confluenceTd'> <tt>Condition</tt> </td>
<td class='confluenceTd'> A container for the attribute values and comparison operators
to use for the query. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbScanIndexForward</tt> </td>
<td class='confluenceTd'> <tt>Boolean</tt> </td>
<td class='confluenceTd'> Specifies forward or backward traversal of the index. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbScanFilter</tt> </td>
<td class='confluenceTd'> <tt>Map<String, Condition></tt>
</td>
<td class='confluenceTd'> Evaluates the scan results and returns only the desired values.
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbUpdateValues</tt> </td>
<td class='confluenceTd'> <tt>Map<String, AttributeValueUpdate></tt>
</td>
<td class='confluenceTd'> Map of attribute name to the new value and action for the
update. </td>
</tr>
</tbody></table>
</div>
</div>
<h4><a name="AWS-DDB-MessageheaderssetduringBatchGetItemsoperation"></a>Message
headers set during BatchGetItems operation</h4>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbBatchResponse</tt> </td>
<td class='confluenceTd'> <tt>Map<String,BatchResponse></tt>
</td>
<td class='confluenceTd'> Table names and the respective item attributes from the tables.
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbUnprocessedKeys</tt> </td>
<td class='confluenceTd'> <tt>Map<String,KeysAndAttributes></tt>
</td>
<td class='confluenceTd'> Contains a map of tables and their respective keys that were
not processed with the current response. </td>
</tr>
</tbody></table>
</div>
</div>
<h4><a name="AWS-DDB-MessageheaderssetduringDeleteItemoperation"></a>Message
headers set during DeleteItem operation</h4>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbAttributes</tt> </td>
<td class='confluenceTd'> <tt>Map<String, AttributeValue></tt>
</td>
<td class='confluenceTd'> The list of attributes returned by the operation. </td>
</tr>
</tbody></table>
</div>
</div>
<h4><a name="AWS-DDB-MessageheaderssetduringDeleteTableoperation"></a>Message
headers set during DeleteTable operation</h4>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbProvisionedThroughput</tt> </td>
<td class='confluenceTd'> <tt>ProvisionedThroughputDescription</tt> </td>
<td class='confluenceTd'> The value of the ProvisionedThroughput property for this table
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbCreationDate</tt> </td>
<td class='confluenceTd'> <tt>Date</tt> </td>
<td class='confluenceTd'> Creation DateTime of this table. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbTableItemCount</tt> </td>
<td class='confluenceTd'> <tt>Long</tt> </td>
<td class='confluenceTd'> Item count for this table. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbKeySchema</tt> </td>
<td class='confluenceTd'> <tt>KeySchema</tt> </td>
<td class='confluenceTd'> The KeySchema that identifies the primary key for this table.
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbTableName</tt> </td>
<td class='confluenceTd'> <tt>String</tt> </td>
<td class='confluenceTd'> The table name. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbTableSize</tt> </td>
<td class='confluenceTd'> <tt>Long</tt> </td>
<td class='confluenceTd'> The table size in bytes. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbTableStatus</tt> </td>
<td class='confluenceTd'> <tt>String</tt> </td>
<td class='confluenceTd'> The status of the table: CREATING, UPDATING, DELETING, ACTIVE
</td>
</tr>
</tbody></table>
</div>
</div>
<h4><a name="AWS-DDB-MessageheaderssetduringDescribeTableoperation"></a>Message
headers set during DescribeTable operation</h4>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbProvisionedThroughput</tt> </td>
<td class='confluenceTd'> {{ProvisionedThroughputDescription} </td>
<td class='confluenceTd'> The value of the ProvisionedThroughput property for this table
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbCreationDate</tt> </td>
<td class='confluenceTd'> <tt>Date</tt> </td>
<td class='confluenceTd'> Creation DateTime of this table. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbTableItemCount</tt> </td>
<td class='confluenceTd'> <tt>Long</tt> </td>
<td class='confluenceTd'> Item count for this table. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbKeySchema</tt> </td>
<td class='confluenceTd'> {{KeySchema </td>
<td class='confluenceTd'> The KeySchema that identifies the primary key for this table.
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbTableName</tt> </td>
<td class='confluenceTd'> <tt>String</tt> </td>
<td class='confluenceTd'> The table name. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbTableSize</tt> </td>
<td class='confluenceTd'> <tt>Long</tt> </td>
<td class='confluenceTd'> The table size in bytes. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbTableStatus</tt> </td>
<td class='confluenceTd'> <tt>String</tt> </td>
<td class='confluenceTd'> The status of the table: CREATING, UPDATING, DELETING, ACTIVE
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbReadCapacity</tt> </td>
<td class='confluenceTd'> <tt>Long</tt> </td>
<td class='confluenceTd'> ReadCapacityUnits property of this table. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbWriteCapacity</tt> </td>
<td class='confluenceTd'> <tt>Long</tt> </td>
<td class='confluenceTd'> WriteCapacityUnits property of this table. </td>
</tr>
</tbody></table>
</div>
</div>
<h4><a name="AWS-DDB-MessageheaderssetduringGetItemoperation"></a>Message
headers set during GetItem operation</h4>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbAttributes</tt> </td>
<td class='confluenceTd'> <tt>Map<String, AttributeValue></tt>
</td>
<td class='confluenceTd'> The list of attributes returned by the operation. </td>
</tr>
</tbody></table>
</div>
</div>
<h4><a name="AWS-DDB-MessageheaderssetduringPutItemoperation"></a>Message
headers set during PutItem operation</h4>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbAttributes</tt> </td>
<td class='confluenceTd'> <tt>Map<String, AttributeValue></tt>
</td>
<td class='confluenceTd'> The list of attributes returned by the operation. </td>
</tr>
</tbody></table>
</div>
</div>
<h4><a name="AWS-DDB-MessageheaderssetduringQueryoperation"></a>Message
headers set during Query operation</h4>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbItems</tt> </td>
<td class='confluenceTd'> <tt>List<java.util.Map<String,AttributeValue>></tt>
</td>
<td class='confluenceTd'> The list of attributes returned by the operation. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbLastEvaluatedKey</tt> </td>
<td class='confluenceTd'> <tt>Key</tt> </td>
<td class='confluenceTd'> Primary key of the item where the query operation stopped,
inclusive of the previous result set. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbConsumedCapacity</tt> </td>
<td class='confluenceTd'> <tt>Double</tt> </td>
<td class='confluenceTd'> The number of Capacity Units of the provisioned throughput
of the table consumed during the operation. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbCount</tt> </td>
<td class='confluenceTd'> <tt>Integer</tt> </td>
<td class='confluenceTd'> Number of items in the response. </td>
</tr>
</tbody></table>
</div>
</div>
<h4><a name="AWS-DDB-MessageheaderssetduringScanoperation"></a>Message headers
set during Scan operation</h4>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbItems</tt> </td>
<td class='confluenceTd'> <tt>List<java.util.Map<String,AttributeValue>></tt>
</td>
<td class='confluenceTd'> The list of attributes returned by the operation. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbLastEvaluatedKey</tt> </td>
<td class='confluenceTd'> <tt>Key</tt> </td>
<td class='confluenceTd'> Primary key of the item where the query operation stopped,
inclusive of the previous result set. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbConsumedCapacity</tt> </td>
<td class='confluenceTd'> <tt>Double</tt> </td>
<td class='confluenceTd'> The number of Capacity Units of the provisioned throughput
of the table consumed during the operation. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbCount</tt> </td>
<td class='confluenceTd'> <tt>Integer</tt> </td>
<td class='confluenceTd'> Number of items in the response. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbScannedCount</tt> </td>
<td class='confluenceTd'> <tt>Integer</tt> </td>
<td class='confluenceTd'> Number of items in the complete scan before any filters are
applied. </td>
</tr>
</tbody></table>
</div>
</div>
<h4><a name="AWS-DDB-MessageheaderssetduringUpdateItemoperation"></a>Message
headers set during UpdateItem operation</h4>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelAwsDdbAttributes</tt> </td>
<td class='confluenceTd'> <tt>Map<String, AttributeValue></tt>
</td>
<td class='confluenceTd'> The list of attributes returned by the operation. </td>
</tr>
</tbody></table>
</div>
</div>
<h4><a name="AWS-DDB-AdvancedAmazonDynamoDBconfiguration"></a>Advanced AmazonDynamoDB
configuration</h4>
<p>If you need more control over the <tt>AmazonDynamoDBClient</tt> configuration
you can create your own instance and refer to it from the URI:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
from(<span class="code-quote">"direct:start"</span>)
.to(<span class="code-quote">"aws-ddb:<span class="code-comment">//domainName?amazonDDBClient=#amazonDDBClient"</span>);</span>
</pre>
</div></div>
<p>The <tt>#amazonDDBClient</tt> refers to a <tt>AmazonDynamoDB</tt>
in the <a href="/confluence/display/CAMEL/Registry" title="Registry">Registry</a>.</p>
<p>For example if your Camel Application is running behind a firewall:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
AWSCredentials awsCredentials = <span class="code-keyword">new</span> BasicAWSCredentials(<span
class="code-quote">"myAccessKey"</span>, <span class="code-quote">"mySecretKey"</span>);
ClientConfiguration clientConfiguration = <span class="code-keyword">new</span>
ClientConfiguration();
clientConfiguration.setProxyHost(<span class="code-quote">"http:<span class="code-comment">//myProxyHost"</span>);
</span>clientConfiguration.setProxyPort(8080);
AmazonDynamoDB amazonDDBClient = <span class="code-keyword">new</span> AmazonDynamoDBClient(awsCredentials,
clientConfiguration);
</pre>
</div></div>
<h3><a name="AWS-DDB-Dependencies"></a>Dependencies</h3>
<p>Maven users will need to add the following dependency to their pom.xml.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader"
style="border-bottom-width: 1px;"><b>pom.xml</b></div><div class="codeContent
panelContent">
<pre class="code-xml">
<span class="code-tag"><dependency></span>
<span class="code-tag"><groupId></span>org.apache.camel<span
class="code-tag"></groupId></span>
<span class="code-tag"><artifactId></span>camel-aws<span
class="code-tag"></artifactId></span>
<span class="code-tag"><version></span>${camel-version}<span
class="code-tag"></version></span>
<span class="code-tag"></dependency></span>
</pre>
</div></div>
<p>where <tt>${camel-version</tt>} must be replaced by the actual version
of Camel (2.10 or higher).</p>
<h3><a name="AWS-DDB-SeeAlso"></a>See Also</h3>
<ul>
<li><a href="/confluence/display/CAMEL/Configuring+Camel" title="Configuring Camel">Configuring
Camel</a></li>
<li><a href="/confluence/display/CAMEL/Component" title="Component">Component</a></li>
<li><a href="/confluence/display/CAMEL/Endpoint" title="Endpoint">Endpoint</a></li>
<li><a href="/confluence/display/CAMEL/Getting+Started" title="Getting Started">Getting
Started</a></li>
</ul>
<ul class="alternate" type="square">
<li><a href="/confluence/display/CAMEL/AWS" title="AWS">AWS Component</a></li>
</ul>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;">
<a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
</div>
<a href="https://cwiki.apache.org/confluence/display/CAMEL/AWS-DDB">View Online</a>
|
<a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=27839516&revisedVersion=3&originalVersion=2">View
Changes</a>
|
<a href="https://cwiki.apache.org/confluence/display/CAMEL/AWS-DDB?showComments=true&showCommentArea=true#addcomment">Add
Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|