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 a057b1f7566c28ba79b47981493aeaba79915c1a
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed Apr 22 11:20:05 2020 +0200

    Regen website docs
---
 .../modules/ROOT/pages/aws2-eks-component.adoc          | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/docs/components/modules/ROOT/pages/aws2-eks-component.adoc 
b/docs/components/modules/ROOT/pages/aws2-eks-component.adoc
index 7b9cc4c..c7725fe 100644
--- a/docs/components/modules/ROOT/pages/aws2-eks-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-eks-component.adoc
@@ -156,7 +156,7 @@ Camel-AWS EKS component provides the following operation on 
the producer side:
 [source,java]
 
--------------------------------------------------------------------------------
 from("direct:listClusters")
-    .to("aws2-eks://test?ecsClient=#amazonEksClient&operation=listClusters")
+    .to("aws2-eks://test?eksClient=#amazonEksClient&operation=listClusters")
 
--------------------------------------------------------------------------------
 
 == Automatic detection of EksClient client in registry
@@ -165,7 +165,20 @@ The component is capable of detecting the presence of an 
EksClient 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 EKS there are multiple operations you can submit, as an example for 
List cluster request, you can do something like:
+
+------------------------------------------------------------------------------------------------------
+from("direct:start")
+  .setBody(ListClustersRequest.builder().maxResults(12).build())
+  .to("aws2-eks://test?eksClient=#amazonEksClient&operation=listClusters")
+------------------------------------------------------------------------------------------------------
+
+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.
 

Reply via email to