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/02/03 18:25:25 UTC

[camel] 05/07: CAMEL-14478 - Create an AWS-KMS component based on SDK v2, added more notes

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 d8924a3c1b453ecd7cf926da3618107c6f2bb32f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Feb 3 17:55:19 2020 +0100

    CAMEL-14478 - Create an AWS-KMS component based on SDK v2, added more notes
---
 components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc     | 5 +++++
 .../java/org/apache/camel/component/aws2/kms/KMS2Configuration.java | 6 ++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc b/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc
index 78563f1..247abd8 100644
--- a/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc
+++ b/components/camel-aws2-kms/src/main/docs/aws2-kms-component.adoc
@@ -17,6 +17,11 @@ You must have a valid Amazon Web Services developer account, and be
 signed up to use Amazon KMS. More information is available at
 https://aws.amazon.com/kms/[Amazon KMS].
 
+[NOTE]
+====
+The AWS2 KMS component is not supported in OSGI
+====
+
 == URI Format
 
 [source,java]
diff --git a/components/camel-aws2-kms/src/main/java/org/apache/camel/component/aws2/kms/KMS2Configuration.java b/components/camel-aws2-kms/src/main/java/org/apache/camel/component/aws2/kms/KMS2Configuration.java
index 9efe1fc..4663794 100644
--- a/components/camel-aws2-kms/src/main/java/org/apache/camel/component/aws2/kms/KMS2Configuration.java
+++ b/components/camel-aws2-kms/src/main/java/org/apache/camel/component/aws2/kms/KMS2Configuration.java
@@ -131,8 +131,10 @@ public class KMS2Configuration implements Cloneable {
     }
 
     /**
-     * The region in which KMS client needs to work. When using this parameter, the configuration will expect the capitalized name of the region (for example AP_EAST_1)
-     * You'll need to use the name Regions.EU_WEST_1.name()
+     * The region in which EKS client needs to work. When using this
+     * parameter, the configuration will expect the lowercase name of the
+     * region (for example ap-east-1) You'll need to use the name
+     * Region.EU_WEST_1.id()
      */
     public void setRegion(String region) {
         this.region = region;