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/23 16:25:07 UTC
[camel] 04/05: Camel-AWS2-Eventbridge: Added docs for listRules
operation
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 ada4dc22621fb5b32083d05685c59e971ab35de1
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 23 18:21:03 2020 +0200
Camel-AWS2-Eventbridge: Added docs for listRules operation
---
.../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 0712da6..eed37ff 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
@@ -127,6 +127,7 @@ Camel-AWS2-Eventbridge component provides the following operation on the produce
- deleteRule
- enableRule
- disableRule
+- listRules
- PutRule: this operation create a rule related to an eventbus
@@ -238,6 +239,23 @@ This operation will enable the firstrule rule from the test eventbus.
This operation will disable the firstrule rule from the test eventbus.
+- ListRules: this operation will list all the rules related to an eventbus with prefix first
+
+[source,java]
+--------------------------------------------------------------------------------
+ from("direct:start").process(new Processor() {
+
+ @Override
+ public void process(Exchange exchange) throws Exception {
+ exchange.getIn().setHeader(EventbridgeConstants.RULE_NAME_PREFIX, "first");
+ }
+ })
+ .to("aws2-eventbridge://test?operation=listRules")
+ .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will list all the rules with prefix first from the test eventbus.
+
== Automatic detection of EventbridgeClient client in registry
The component is capable of detecting the presence of an EventbridgeClient bean into the registry.