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 2d2cb90cb11b9b641cf240b7cd3451cbd2804bb3 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Apr 22 10:53:51 2020 +0200 Camel-AWS2-Translate: Fixed pojoRequest example in docs --- .../camel-aws2-translate/src/main/docs/aws2-translate-component.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0e48615..bcf088f 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 @@ -170,7 +170,7 @@ In AWS Translate the only operation available is TranslateText so you can do som from("direct:start") .setBody(TranslateTextRequest.builder().sourceLanguageCode(Translate2LanguageEnum.ITALIAN.toString()) .targetLanguageCode(Translate2LanguageEnum.GERMAN.toString()).text("Ciao").build()) - .to("aws2-translate://test?translateClient=#amazonTranslateClient&operation=translateText"); + .to("aws2-translate://test?translateClient=#amazonTranslateClient&operation=translateText&pojoRequest=true"); ------------------------------------------------------------------------------------------------------ In this way you'll pass the request directly without the need of passing headers and options specifically related to this operation.