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 50ef7baf693963b397361778db65cb34714cfdfe
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed Apr 22 11:06:28 2020 +0200

    Regen website docs
---
 .../components/modules/ROOT/pages/aws2-ec2-component.adoc | 15 ++++++++++++++-
 .../modules/ROOT/pages/aws2-translate-component.adoc      |  2 +-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/docs/components/modules/ROOT/pages/aws2-ec2-component.adoc 
b/docs/components/modules/ROOT/pages/aws2-ec2-component.adoc
index 105de21..0fa9e0f 100644
--- a/docs/components/modules/ROOT/pages/aws2-ec2-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-ec2-component.adoc
@@ -180,7 +180,20 @@ The component is capable of detecting the presence of an 
Ec2Client 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 EC2 there are multiple operations you can submit, as an example for 
Create and run an instance, you can do something like:
+
+------------------------------------------------------------------------------------------------------
+from("direct:start")
+  
.setBody(RunInstancesRequest.builder().imageId("test-1").instanceType(InstanceType.T2_MICRO).build())
+  
.to("aws2-ec2://TestDomain?accessKey=xxxx&secretKey=xxxx&operation=createAndRunInstances");
+------------------------------------------------------------------------------------------------------
+
+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.
 
diff --git a/docs/components/modules/ROOT/pages/aws2-translate-component.adoc 
b/docs/components/modules/ROOT/pages/aws2-translate-component.adoc
index f04551a..4880690 100644
--- a/docs/components/modules/ROOT/pages/aws2-translate-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-translate-component.adoc
@@ -177,7 +177,7 @@ from("direct:start")
 
 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.
 

Reply via email to