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 2020/04/22 11:41:20 UTC

[camel] branch master updated (14fc40d -> ff063bb)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from 14fc40d  Regen website docs
     new 4223b3a  Camel-AWS2-KMS: Added example for pojoRequest
     new 3a9fc06  AWS2-KMS: Dependencies element title in docs
     new ff063bb  Regen website docs

The 3 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:
 .../camel-aws2-kms/src/main/docs/aws2-kms-component.adoc  | 15 ++++++++++++++-
 .../components/modules/ROOT/pages/aws2-kms-component.adoc | 15 ++++++++++++++-
 2 files changed, 28 insertions(+), 2 deletions(-)


[camel] 01/03: Camel-AWS2-KMS: Added example for pojoRequest

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 4223b3a2a0c03cdaf1b619336d95721f92f26bce
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 22 13:37:29 2020 +0200

    Camel-AWS2-KMS: Added example for pojoRequest
---
 .../camel-aws2-kms/src/main/docs/aws2-kms-component.adoc    | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc b/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc
index 19dcb9b..a9eba76 100644
--- a/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc
+++ b/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc
@@ -160,6 +160,19 @@ The component is capable of detecting the presence of an KmsClient bean into the
 If it's the only instance of that type it will be used as client and you won't have to define it as uri parameter.
 This may be really useful for smarter configuration of the endpoint.
 
+== Using a POJO as body
+
+Sometimes build an AWS Request can be complex, because of multiple options. We introduce the possibility to use a POJO as body.
+In AWS KMS there are multiple operations you can submit, as an example for Create List keys request, you can do something like:
+
+------------------------------------------------------------------------------------------------------
+from("direct:createUser")
+     .setBody(ListKeysRequest.builder().limit(10).build())
+     .to("aws2-kms://test?kmsClient=#amazonKmsClient&operation=listKeys&pojoRequest=true")
+------------------------------------------------------------------------------------------------------
+
+In this way you'll pass the request directly without the need of passing headers and options specifically related to this operation.
+
 Dependencies
 
 Maven users will need to add the following dependency to their pom.xml.


[camel] 03/03: Regen website docs

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit ff063bb2dfcc0fb14d933e9a394e0809e171b0c2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 22 13:40:22 2020 +0200

    Regen website docs
---
 .../components/modules/ROOT/pages/aws2-kms-component.adoc | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/docs/components/modules/ROOT/pages/aws2-kms-component.adoc b/docs/components/modules/ROOT/pages/aws2-kms-component.adoc
index 97fdacd..a51f1db 100644
--- a/docs/components/modules/ROOT/pages/aws2-kms-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-kms-component.adoc
@@ -162,7 +162,20 @@ The component is capable of detecting the presence of an KmsClient bean into the
 If it's the only instance of that type it will be used as client and you won't have to define it as uri parameter.
 This may be really useful for smarter configuration of the endpoint.
 
-Dependencies
+== Using a POJO as body
+
+Sometimes build an AWS Request can be complex, because of multiple options. We introduce the possibility to use a POJO as body.
+In AWS KMS there are multiple operations you can submit, as an example for Create List keys request, you can do something like:
+
+------------------------------------------------------------------------------------------------------
+from("direct:createUser")
+     .setBody(ListKeysRequest.builder().limit(10).build())
+     .to("aws2-kms://test?kmsClient=#amazonKmsClient&operation=listKeys&pojoRequest=true")
+------------------------------------------------------------------------------------------------------
+
+In this way you'll pass the request directly without the need of passing headers and options specifically related to this operation.
+
+== Dependencies
 
 Maven users will need to add the following dependency to their pom.xml.
 


[camel] 02/03: AWS2-KMS: Dependencies element title in docs

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 3a9fc06226025957264eb2150f503aadaf0a9d13
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 22 13:38:49 2020 +0200

    AWS2-KMS: Dependencies element title in docs
---
 components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc b/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc
index a9eba76..a2d9d1b 100644
--- a/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc
+++ b/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc
@@ -173,7 +173,7 @@ from("direct:createUser")
 
 In this way you'll pass the request directly without the need of passing headers and options specifically related to this operation.
 
-Dependencies
+== Dependencies
 
 Maven users will need to add the following dependency to their pom.xml.