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:08 UTC

[camel] 05/05: Camel-AWS2-Evenbridge: Regen

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 b9077f3cc499f8dbb6522e925841a9a5801084c2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 23 18:22:06 2020 +0200

    Camel-AWS2-Evenbridge: Regen
---
 .../camel/catalog/docs/aws2-eventbridge-component.adoc | 18 ++++++++++++++++++
 .../modules/ROOT/pages/aws2-eventbridge-component.adoc | 18 ++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc
index 0712da6..eed37ff 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/aws2-eventbridge-component.adoc
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/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.
diff --git a/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc b/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc
index 3bb5b67..223c938 100644
--- a/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc
@@ -129,6 +129,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
 
@@ -240,6 +241,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.