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


The following commit(s) were added to refs/heads/master by this push:
     new 27f6c29  Regen
27f6c29 is described below

commit 27f6c29e17615e4ff6ae7b9d1019baf17b94cfbd
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Fri Jul 31 09:26:40 2020 +0200

    Regen
---
 .../camel/catalog/docs/aws2-ec2-component.adoc     | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-ec2-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-ec2-component.adoc
index 7d9dfa8..afe0a8b 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-ec2-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-ec2-component.adoc
@@ -178,6 +178,54 @@ from("direct:createAndRun")
      
.to("aws2-ec2://TestDomain?accessKey=xxxx&secretKey=xxxx&operation=createAndRunInstances");
 
--------------------------------------------------------------------------------
 
+- startInstances: this operation will start a list of EC2 instances
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:start")
+     .process(new Processor() {
+            @Override
+            public void process(Exchange exchange) throws Exception {
+                Collection<String> l = new ArrayList<>();
+                l.add("myinstance");
+                exchange.getIn().setHeader(AWS2EC2Constants.INSTANCES_IDS, l);
+            }
+        })
+     
.to("aws2-ec2://TestDomain?accessKey=xxxx&secretKey=xxxx&operation=startInstances");
+--------------------------------------------------------------------------------
+
+- stopInstances: this operation will stop a list of EC2 instances
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:stop")
+     .process(new Processor() {
+            @Override
+            public void process(Exchange exchange) throws Exception {
+                Collection<String> l = new ArrayList<>();
+                l.add("myinstance");
+                exchange.getIn().setHeader(AWS2EC2Constants.INSTANCES_IDS, l);
+            }
+        })
+     
.to("aws2-ec2://TestDomain?accessKey=xxxx&secretKey=xxxx&operation=stopInstances");
+--------------------------------------------------------------------------------
+
+- terminateInstances: this operation will terminate a list of EC2 instances
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:stop")
+     .process(new Processor() {
+            @Override
+            public void process(Exchange exchange) throws Exception {
+                Collection<String> l = new ArrayList<>();
+                l.add("myinstance");
+                exchange.getIn().setHeader(AWS2EC2Constants.INSTANCES_IDS, l);
+            }
+        })
+     
.to("aws2-ec2://TestDomain?accessKey=xxxx&secretKey=xxxx&operation=terminateInstances");
+--------------------------------------------------------------------------------
+
 == Automatic detection of Ec2Client client in registry
 
 The component is capable of detecting the presence of an Ec2Client bean into 
the registry.

Reply via email to