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 6fb5922eb674008db5609aa2a287ebb68376648f
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Oct 1 12:30:45 2019 +0200

    Camel AWS EC2: Added example of create and run instance through producer
---
 .../camel-aws-ec2/src/main/docs/aws-ec2-component.adoc     | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/components/camel-aws-ec2/src/main/docs/aws-ec2-component.adoc 
b/components/camel-aws-ec2/src/main/docs/aws-ec2-component.adoc
index a6c36a1..997e3e0 100644
--- a/components/camel-aws-ec2/src/main/docs/aws-ec2-component.adoc
+++ b/components/camel-aws-ec2/src/main/docs/aws-ec2-component.adoc
@@ -172,6 +172,20 @@ terminate operations on.
 - createTags
 - deleteTags
 
+== Producer Examples
+
+- createAndRunInstances: this operation will create an EC2 instance and run it
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:createAndRun")
+     .setHeader(EC2Constants.IMAGE_ID, constant("ami-fd65ba94"))
+     .setHeader(EC2Constants.INSTANCE_TYPE, constant(InstanceType.T2Micro))
+     .setHeader(EC2Constants.INSTANCE_MIN_COUNT, constant("1"))
+     .setHeader(EC2Constants.INSTANCE_MAX_COUNT, constant("1"))
+     
.to("aws-ec2://TestDomain?accessKey=xxxx&secretKey=xxxx&operation=createAndRunInstances");
+--------------------------------------------------------------------------------
+
 == Automatic detection of AmazonEC2 client in registry
 
 The component is capable of detecting the presence of an AmazonEC2 bean into 
the registry.

Reply via email to