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/08/03 15:42:14 UTC

[camel] 02/04: Camel-AWS2-MQ: Added deleteBroker example

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 00ffa38aee6a94cb8ba2e77f7f3f2eea56b94704
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Aug 3 17:38:22 2020 +0200

    Camel-AWS2-MQ: Added deleteBroker example
---
 components/camel-aws2-mq/src/main/docs/aws2-mq-component.adoc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/components/camel-aws2-mq/src/main/docs/aws2-mq-component.adoc b/components/camel-aws2-mq/src/main/docs/aws2-mq-component.adoc
index 4c72603..8ddc1b2 100644
--- a/components/camel-aws2-mq/src/main/docs/aws2-mq-component.adoc
+++ b/components/camel-aws2-mq/src/main/docs/aws2-mq-component.adoc
@@ -196,6 +196,15 @@ from("direct:createBroker")
     .to("aws2-mq://test?amazonMqClient=#amazonMqClient&operation=createBroker")
 --------------------------------------------------------------------------------
 
+- deleteBroker: this operation will delete an MQ Broker in AWS
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:listBrokers")
+    .setHeader(MQ2Constants.BROKER_ID, constant("123")
+    .to("aws2-mq://test?amazonMqClient=#amazonMqClient&operation=deleteBroker")
+--------------------------------------------------------------------------------
+
 == Automatic detection of MqClient client in registry
 
 The component is capable of detecting the presence of an MqClient bean into the registry.