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 dc899a21f2f7181d093eb52cbf98eb51c832a4bb Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Jan 16 10:52:42 2020 +0100 Camel-AWS2-Translate: Added information about the region in SDK v2 --- .../src/main/docs/aws2-translate-component.adoc | 4 ++-- .../camel/component/aws2/translate/Translate2Configuration.java | 6 +++--- .../builder/endpoint/dsl/Translate2EndpointBuilderFactory.java | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc b/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc index 5de4d3c..4d43d3a 100644 --- a/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc +++ b/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc @@ -87,7 +87,7 @@ with the following path and query parameters: | *proxyHost* (producer) | To define a proxy host when instantiating the Translate client | | String | *proxyPort* (producer) | To define a proxy port when instantiating the Translate client | | Integer | *proxyProtocol* (producer) | To define a proxy protocol when instantiating the Translate client | HTTPS | Protocol -| *region* (producer) | The region in which Translate 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 +| *region* (producer) | The region in which Translate 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() | | String | *secretKey* (producer) | Amazon AWS Secret Key | | String | *sourceLanguage* (producer) | Source language to use | | String | *targetLanguage* (producer) | Target language to use | | String @@ -164,4 +164,4 @@ Maven users will need to add the following dependency to their pom.xml. </dependency> --------------------------------------- -where `$\{camel-version\}` must be replaced by the actual version of Camel. \ No newline at end of file +where `$\{camel-version\}` must be replaced by the actual version of Camel. diff --git a/components/camel-aws2-translate/src/main/java/org/apache/camel/component/aws2/translate/Translate2Configuration.java b/components/camel-aws2-translate/src/main/java/org/apache/camel/component/aws2/translate/Translate2Configuration.java index 3ac1def..d458b30 100644 --- a/components/camel-aws2-translate/src/main/java/org/apache/camel/component/aws2/translate/Translate2Configuration.java +++ b/components/camel-aws2-translate/src/main/java/org/apache/camel/component/aws2/translate/Translate2Configuration.java @@ -137,9 +137,9 @@ public class Translate2Configuration implements Cloneable { /** * The region in which Translate 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() + * 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; diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/Translate2EndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/Translate2EndpointBuilderFactory.java index 292eb4a..71daceb 100644 --- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/Translate2EndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/Translate2EndpointBuilderFactory.java @@ -207,9 +207,9 @@ public interface Translate2EndpointBuilderFactory { } /** * The region in which Translate 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(). + * 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(). * * The option is a: <code>java.lang.String</code> type. *