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/07/05 10:52:07 UTC

[camel] 13/18: CAMEL-13723 - Better docs, SDB

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 e805d78da6885cb2be5cb98ea27387301f06c570
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jul 5 12:32:45 2019 +0200

    CAMEL-13723 - Better docs, SDB
---
 components/camel-aws-sdb/src/main/docs/aws-sdb-component.adoc        | 2 +-
 .../java/org/apache/camel/component/aws/sdb/SdbConfiguration.java    | 3 ++-
 .../apache/camel/builder/endpoint/dsl/SdbEndpointBuilderFactory.java | 5 ++++-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/components/camel-aws-sdb/src/main/docs/aws-sdb-component.adoc b/components/camel-aws-sdb/src/main/docs/aws-sdb-component.adoc
index 1e7535c..7a0c379 100644
--- a/components/camel-aws-sdb/src/main/docs/aws-sdb-component.adoc
+++ b/components/camel-aws-sdb/src/main/docs/aws-sdb-component.adoc
@@ -74,7 +74,7 @@ with the following path and query parameters:
 | *operation* (producer) | Operation to perform | PutAttributes | SdbOperations
 | *proxyHost* (producer) | To define a proxy host when instantiating the SDB client |  | String
 | *proxyPort* (producer) | To define a proxy port when instantiating the SDB client |  | Integer
-| *region* (producer) | The region in which SDB client needs to work |  | String
+| *region* (producer) | The region in which SDB 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() |  | String
 | *secretKey* (producer) | Amazon AWS Secret Key |  | String
 | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean
 | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean
diff --git a/components/camel-aws-sdb/src/main/java/org/apache/camel/component/aws/sdb/SdbConfiguration.java b/components/camel-aws-sdb/src/main/java/org/apache/camel/component/aws/sdb/SdbConfiguration.java
index f1ba6a2..d6e0d10 100644
--- a/components/camel-aws-sdb/src/main/java/org/apache/camel/component/aws/sdb/SdbConfiguration.java
+++ b/components/camel-aws-sdb/src/main/java/org/apache/camel/component/aws/sdb/SdbConfiguration.java
@@ -151,7 +151,8 @@ public class SdbConfiguration {
     }
 
     /**
-     * The region in which SDB client needs to work
+     * The region in which SDB 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()
      */
     public void setRegion(String region) {
         this.region = region;
diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SdbEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SdbEndpointBuilderFactory.java
index a113c4d..d60bb31 100644
--- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SdbEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SdbEndpointBuilderFactory.java
@@ -181,7 +181,10 @@ public interface SdbEndpointBuilderFactory {
             return this;
         }
         /**
-         * The region in which SDB client needs to work.
+         * The region in which SDB 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 option is a: <code>java.lang.String</code> type.
          *