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 84490a87d8119ff8e7c65a1ea26b12f335dc6bee
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed Sep 23 12:04:41 2020 +0200

    Camel-AWS2-Eventbridge: Added docs for deleteRule 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 0620ac9..1c23813 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
@@ -124,6 +124,7 @@ Camel-AWS2-Eventbridge component provides the following 
operation on the produce
 - putRule
 - putTargets
 - removeTargets
+- deleteRule
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -184,6 +185,23 @@ This operation will add the target sqs-queue with the arn 
reported to the target
 
 This operation will remove the target sqs-queue from the firstrule rule.
 
+- DeleteRule: this operation will delete 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=deleteRule")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will remove 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