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 15:15:16 UTC

[camel] 06/07: Camel-AWS2-Eventbridge: Added docs for disableRule 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 d224c4b52cfef9835649594ab297eafd62eb0e46
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Sep 23 15:01:14 2020 +0200

    Camel-AWS2-Eventbridge: Added docs for disableRule operation
---
 .../camel/catalog/docs/aws2-eventbridge-component.adoc | 18 ++++++++++++++++++
 .../src/main/docs/aws2-eventbridge-component.adoc      | 18 ++++++++++++++++++
 .../modules/ROOT/pages/aws2-eventbridge-component.adoc | 18 ++++++++++++++++++
 3 files changed, 54 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 3ad305b..cee8155 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
@@ -126,6 +126,7 @@ Camel-AWS2-Eventbridge component provides the following operation on the produce
 - removeTargets
 - deleteRule
 - enableRule
+- disableRule
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -220,6 +221,23 @@ This operation will remove the firstrule rule from the test eventbus.
 
 This operation will enable the firstrule rule from the test eventbus.
 
+- DisableRule: this operation will disable a rule related to an eventbus
+
+[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=disableRule")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will disable the firstrule rule 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/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc b/components/camel-aws2-eventbridge/src/main/docs/aws2-eventbridge-component.adoc
index 3ad305b..cee8155 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
@@ -126,6 +126,7 @@ Camel-AWS2-Eventbridge component provides the following operation on the produce
 - removeTargets
 - deleteRule
 - enableRule
+- disableRule
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -220,6 +221,23 @@ This operation will remove the firstrule rule from the test eventbus.
 
 This operation will enable the firstrule rule from the test eventbus.
 
+- DisableRule: this operation will disable a rule related to an eventbus
+
+[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=disableRule")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will disable the firstrule rule 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 e221057..f2b0f87 100644
--- a/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc
@@ -128,6 +128,7 @@ Camel-AWS2-Eventbridge component provides the following operation on the produce
 - removeTargets
 - deleteRule
 - enableRule
+- disableRule
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -222,6 +223,23 @@ This operation will remove the firstrule rule from the test eventbus.
 
 This operation will enable the firstrule rule from the test eventbus.
 
+- DisableRule: this operation will disable a rule related to an eventbus
+
+[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=disableRule")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will disable the firstrule rule 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.