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 2019/10/01 14:07:58 UTC

[camel] 03/04: Camel-AWS-KMS: added sample code for producer on docs

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 041c837fac252fd673ca40815e91f3670163801d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 1 16:05:42 2019 +0200

    Camel-AWS-KMS: added sample code for producer on docs
---
 components/camel-aws-kms/src/main/docs/aws-kms-component.adoc | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/components/camel-aws-kms/src/main/docs/aws-kms-component.adoc b/components/camel-aws-kms/src/main/docs/aws-kms-component.adoc
index adbf7a7..45f6077 100644
--- a/components/camel-aws-kms/src/main/docs/aws-kms-component.adoc
+++ b/components/camel-aws-kms/src/main/docs/aws-kms-component.adoc
@@ -156,6 +156,16 @@ Camel-AWS KMS component provides the following operation on the producer side:
 - describeKey
 - enableKey
 
+== Producer Examples
+
+- listKeys: this operation will list the available keys in KMS
+
+[source,java]
+--------------------------------------------------------------------------------
+from("direct:listKeys")
+      .to("aws-kms://test?kmsClient=#amazonKmsClient&operation=listKeys")
+--------------------------------------------------------------------------------
+
 == Automatic detection of AWSKMS client in registry
 
 The component is capable of detecting the presence of an AWSKMS bean into the registry.