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 2019/10/01 12:29:23 UTC

[camel] 01/02: Camel AWS ECS: Added sample code on docs

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 c0d809a1cfc668b9fb5d151b25e17a6373735bff
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 1 14:27:59 2019 +0200

    Camel AWS ECS: Added sample code on docs
---
 components/camel-aws-ecs/src/main/docs/aws-ecs-component.adoc | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/components/camel-aws-ecs/src/main/docs/aws-ecs-component.adoc b/components/camel-aws-ecs/src/main/docs/aws-ecs-component.adoc
index b827af7..7635cae 100644
--- a/components/camel-aws-ecs/src/main/docs/aws-ecs-component.adoc
+++ b/components/camel-aws-ecs/src/main/docs/aws-ecs-component.adoc
@@ -152,6 +152,16 @@ Camel-AWS ECS component provides the following operation on the producer side:
 - describeCluster
 - deleteCluster
 
+== Producer Examples
+
+- listClusters: this operation will list the available clusters in ECS
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:listClusters")
+    .to("aws-ecs://test?ecsClient=#amazonEcsClient&operation=listClusters")
+--------------------------------------------------------------------------------
+
 == Automatic detection of AmazonECS client in registry
 
 The component is capable of detecting the presence of an AmazonECS bean into the registry.