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 2020/09/28 07:30:48 UTC

[camel] 04/06: Camel-AWS2-Eventbridge: Added docs for listRuleNamesByTarget

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 bc4a920b8b6d759281e46d958ea30c8c23ed6d65
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Sep 28 09:14:24 2020 +0200

    Camel-AWS2-Eventbridge: Added docs for listRuleNamesByTarget
---
 .../src/main/docs/aws2-eventbridge-component.adoc      | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc b/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc
index d007b72..11995b2 100644
--- a/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc
+++ b/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc
@@ -131,6 +131,7 @@ Camel-AWS2-Eventbridge component provides the following operation on the produce
 - listRules
 - describeRule
 - listTargetsByRule
+- listRuleNamesByTarget
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -293,6 +294,23 @@ This operation will describe the firstrule rule from the test eventbus.
 
 this operation will return a list of targets associated with the firstrule rule.
 
+- ListRuleNamesByTarget: this operation will return a list of rule associated with a target
+
+[source,java]
+--------------------------------------------------------------------------------
+  from("direct:start").process(new Processor() {
+                    
+      @Override
+      public void process(Exchange exchange) throws Exception {
+          exchange.getIn().setHeader(EventbridgeConstants.TARGET_ARN, "firstrule");
+      }
+  })
+  .to("aws2-eventbridge://test?operation=listRuleNamesByTarget")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+this operation will return a list of rule associated with a target.
+
 == Automatic detection of EventbridgeClient client in registry
 
 The component is capable of detecting the presence of an EventbridgeClient bean into the registry.