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 661fa9ee4c81d9a658e7a78df1e5458042093e0d Author: Andrea Cosentino <[email protected]> AuthorDate: Fri Apr 24 11:41:45 2020 +0200 Regen docs --- docs/components/modules/ROOT/pages/aws2-s3-component.adoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/components/modules/ROOT/pages/aws2-s3-component.adoc b/docs/components/modules/ROOT/pages/aws2-s3-component.adoc index c4222fd..a320865 100644 --- a/docs/components/modules/ROOT/pages/aws2-s3-component.adoc +++ b/docs/components/modules/ROOT/pages/aws2-s3-component.adoc @@ -547,6 +547,19 @@ from("direct:putObject") .to(awsEndpoint); -------------------------------------------------------------------------------- +== Using a POJO as body + +Sometimes build an AWS Request can be complex, because of multiple options. We introduce the possibility to use a POJO as body. +In AWS S3 there are multiple operations you can submit, as an example for List brokers request, you can do something like: + +------------------------------------------------------------------------------------------------------ +from("direct:aws2-s3") + .setBody(ListObjectsRequest.builder().bucket(bucketName).build()) + .to("aws2-s3://test?amazonS3Client=#amazonS3Client&operation=listObjects&pojoRequest=true") +------------------------------------------------------------------------------------------------------ + +In this way you'll pass the request directly without the need of passing headers and options specifically related to this operation. + == Dependencies Maven users will need to add the following dependency to their pom.xml.
