You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/09/15 08:55:43 UTC
[camel] branch main updated (6584802 -> df933f4)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git.
from 6584802 Point JDK 17 instead of JDK 16 in Jenkins job
new a7c8f9f Camel-AWS2-EC2: Added Examples title in the related section
new df933f4 CAMEL-16849 - Add at least one example for component in docs - Camel-AWS2-DDB
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../src/main/docs/aws2-ddb-component.adoc | 19 +++++++++++++++++++
.../src/main/docs/aws2-ec2-component.adoc | 4 +++-
2 files changed, 22 insertions(+), 1 deletion(-)
[camel] 02/02: CAMEL-16849 - Add at least one example for component
in docs - Camel-AWS2-DDB
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit df933f4a027685a856f6dcd895400836969b1877
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 15 10:53:52 2021 +0200
CAMEL-16849 - Add at least one example for component in docs - Camel-AWS2-DDB
---
.../src/main/docs/aws2-ddb-component.adoc | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/components/camel-aws/camel-aws2-ddb/src/main/docs/aws2-ddb-component.adoc b/components/camel-aws/camel-aws2-ddb/src/main/docs/aws2-ddb-component.adoc
index f890805..52901d0 100644
--- a/components/camel-aws/camel-aws2-ddb/src/main/docs/aws2-ddb-component.adoc
+++ b/components/camel-aws/camel-aws2-ddb/src/main/docs/aws2-ddb-component.adoc
@@ -394,6 +394,25 @@ Registry.
== Dependencies
+== Examples
+
+=== Producer Examples
+
+- PutItem: this operation will create an entry into DynamoDB
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:start")
+ .setHeader(Ddb2Constants.OPERATION, Ddb2Operations.PutItem)
+ .setHeader(Ddb2Constants.CONSISTENT_READ, "true")
+ .setHeader(Ddb2Constants.RETURN_VALUES, "ALL_OLD")
+ .setHeader(Ddb2Constants.ITEM, attributeMap)
+ .setHeader(Ddb2Constants.ATTRIBUTE_NAMES, attributeMap.keySet());
+ .to("aws2-ddb://" + tableName + "?keyAttributeName=" + attributeName + "&keyAttributeType=" + KeyType.HASH
+ + "&keyScalarType=" + ScalarAttributeType.S
+ + "&readCapacity=1&writeCapacity=1");
+--------------------------------------------------------------------------------
+
Maven users will need to add the following dependency to their pom.xml.
*pom.xml*
[camel] 01/02: Camel-AWS2-EC2: Added Examples title in the related
section
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit a7c8f9f97842006a34b0710f917243daf246f8ea
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 15 10:50:11 2021 +0200
Camel-AWS2-EC2: Added Examples title in the related section
---
.../camel-aws/camel-aws2-ec2/src/main/docs/aws2-ec2-component.adoc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/components/camel-aws/camel-aws2-ec2/src/main/docs/aws2-ec2-component.adoc b/components/camel-aws/camel-aws2-ec2/src/main/docs/aws2-ec2-component.adoc
index 2cfdbf2..8b45c9f 100644
--- a/components/camel-aws/camel-aws2-ec2/src/main/docs/aws2-ec2-component.adoc
+++ b/components/camel-aws/camel-aws2-ec2/src/main/docs/aws2-ec2-component.adoc
@@ -207,7 +207,9 @@ terminate operations on.
- createTags
- deleteTags
-== Producer Examples
+== Examples
+
+=== Producer Examples
- createAndRunInstances: this operation will create an EC2 instance and run it