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/01/16 10:00:10 UTC

[camel] 03/03: Regen 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 92c152f2c38004a0fac6d81f6968ccadb2eed4bc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 16 10:59:36 2020 +0100

    Regen docs
---
 .../modules/ROOT/pages/aws2-translate-component.adoc      | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/docs/components/modules/ROOT/pages/aws2-translate-component.adoc b/docs/components/modules/ROOT/pages/aws2-translate-component.adoc
index 1197c01..95c3cac 100644
--- a/docs/components/modules/ROOT/pages/aws2-translate-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-translate-component.adoc
@@ -4,11 +4,6 @@
 
 *Since Camel 3.1*
 
-*Since Camel 3.1*
-
-
-*Since Camel 3.1*
-
 
 // HEADER START
 *Only producer is supported*
@@ -88,7 +83,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
@@ -132,9 +127,9 @@ Camel-AWS Translate component provides the following operation on the producer s
 
 - translateText
 
-== Automatic detection of AmazonTranslate client in registry
+== Automatic detection of TranslateClient client in registry
 
-The component is capable of detecting the presence of an AmazonTranslate bean into the registry.
+The component is capable of detecting the presence of an TranslateClient bean into the registry.
 If it's the only instance of that type it will be used as client and you won't have to define it as uri parameter.
 This may be really useful for smarter configuration of the endpoint.
 
@@ -145,7 +140,7 @@ from("direct:start")
   .setHeader(TranslateConstants.SOURCE_LANGUAGE, TranslateLanguageEnum.ITALIAN)
   .setHeader(TranslateConstants.TARGET_LANGUAGE, TranslateLanguageEnum.GERMAN)
   .setBody("Ciao")
-  .to("aws-translate://test?translateClient=#amazonTranslateClient&operation=translateText");
+  .to("aws2-translate://test?translateClient=#amazonTranslateClient&operation=translateText");
 ------------------------------------------------------------------------------------------------------
 
 As result you'll get an exchange containing the translated text.
@@ -165,4 +160,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.