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 06:33:07 UTC
[camel] 04/06: Camel-AWS2-Eventbridge: Added documentation for
operation listTargetsByRule
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 26607ca152d08cd7c8cba0b32680917df530fee0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Sep 28 08:22:53 2020 +0200
Camel-AWS2-Eventbridge: Added documentation for operation listTargetsByRule
---
.../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 561f028..a2d6dbc 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
@@ -130,6 +130,7 @@ Camel-AWS2-Eventbridge component provides the following operation on the produce
- disableRule
- listRules
- describeRule
+- listTargetsByRule
- PutRule: this operation create a rule related to an eventbus
@@ -275,6 +276,23 @@ This operation will list all the rules with prefix first from the test eventbus.
This operation will describe the firstrule rule from the test eventbus.
+- ListTargetsByRule: this operation will return a list of targets associated with a rule
+
+[source,java]
+--------------------------------------------------------------------------------
+ from("direct:start").process(new Processor() {
+
+ @Override
+ public void process(Exchange exchange) throws Exception {
+ exchange.getIn().setHeader(EventbridgeConstants.RULE_NAME, "firstrule");
+ }
+ })
+ .to("aws2-eventbridge://test?operation=listTargetsByRule")
+ .to("mock:result");
+--------------------------------------------------------------------------------
+
+this operation will return a list of targets associated with the firstrule rule.
+
== Automatic detection of EventbridgeClient client in registry
The component is capable of detecting the presence of an EventbridgeClient bean into the registry.