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 961e3fe561b8a404358eb43e53c852b40662597f
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Sep 22 17:43:31 2020 +0200

    Camel-AWS2-Eventbridge: Regen
---
 .../catalog/docs/aws2-eventbridge-component.adoc    | 21 +++++++++++++++++++++
 .../ROOT/pages/aws2-eventbridge-component.adoc      | 21 +++++++++++++++++++++
 2 files changed, 42 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 a681327..a149f5c 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
 
 - putRule
 - putTargets
+- removeTargets
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -165,6 +166,26 @@ This operation will create a rule named firstrule and it 
will use a json file fo
 
 This operation will add the target sqs-queue with the arn reported to the 
targets of the firstrule rule.
 
+- RemoveTargets: this operation will remove a collection of target from the 
rule 
+
+[source,java]
+--------------------------------------------------------------------------------
+  from("direct:start").process(new Processor() {
+                    
+      @Override
+      public void process(Exchange exchange) throws Exception {
+          exchange.getIn().setHeader(EventbridgeConstants.RULE_NAME, 
"firstrule");
+          List<String> ids = new ArrayList<String>();
+          targets.add("sqs-queue");
+          exchange.getIn().setHeader(EventbridgeConstants.TARGETS_IDS, 
targets);
+      }
+  })
+  .to("aws2-eventbridge://test?operation=removeTargets")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will remove the target sqs-queue from the firstrule rule.
+
 == 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 21e2f44..b87e323 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
 
 - putRule
 - putTargets
+- removeTargets
 
 - PutRule: this operation create a rule related to an eventbus
 
@@ -167,6 +168,26 @@ This operation will create a rule named firstrule and it 
will use a json file fo
 
 This operation will add the target sqs-queue with the arn reported to the 
targets of the firstrule rule.
 
+- RemoveTargets: this operation will remove a collection of target from the 
rule 
+
+[source,java]
+--------------------------------------------------------------------------------
+  from("direct:start").process(new Processor() {
+                    
+      @Override
+      public void process(Exchange exchange) throws Exception {
+          exchange.getIn().setHeader(EventbridgeConstants.RULE_NAME, 
"firstrule");
+          List<String> ids = new ArrayList<String>();
+          targets.add("sqs-queue");
+          exchange.getIn().setHeader(EventbridgeConstants.TARGETS_IDS, 
targets);
+      }
+  })
+  .to("aws2-eventbridge://test?operation=removeTargets")
+  .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will remove the target sqs-queue from the firstrule rule.
+
 == 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