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 ca47131b217837a44195a432cf78729e6db22e23
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed Sep 23 14:45:32 2020 +0200

    Camel-AWS2-Eventbridge: Added docs for enableRule 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 0bd7ab3..48af13e 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
@@ -125,6 +125,7 @@ Camel-AWS2-Eventbridge component provides the following 
operation on the produce
 - putTargets
 - removeTargets
 - deleteRule
+- enableRule
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -202,6 +203,23 @@ This operation will remove the target sqs-queue from the 
firstrule rule.
 
 This operation will remove the firstrule rule from the test eventbus.
 
+- EnableRule: this operation will enable 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=enableRule")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will enable 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 0bd7ab3..48af13e 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
@@ -125,6 +125,7 @@ Camel-AWS2-Eventbridge component provides the following 
operation on the produce
 - putTargets
 - removeTargets
 - deleteRule
+- enableRule
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -202,6 +203,23 @@ This operation will remove the target sqs-queue from the 
firstrule rule.
 
 This operation will remove the firstrule rule from the test eventbus.
 
+- EnableRule: this operation will enable 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=enableRule")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will enable 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 bc263d4..a107ad3 100644
--- a/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-eventbridge-component.adoc
@@ -127,6 +127,7 @@ Camel-AWS2-Eventbridge component provides the following 
operation on the produce
 - putTargets
 - removeTargets
 - deleteRule
+- enableRule
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -204,6 +205,23 @@ This operation will remove the target sqs-queue from the 
firstrule rule.
 
 This operation will remove the firstrule rule from the test eventbus.
 
+- EnableRule: this operation will enable 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=enableRule")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will enable 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.

Reply via email to