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/11/19 08:26:11 UTC
[camel] 02/04: CAMEL-15862 - Added createDownloadLink operation to
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 062896f668c6814c2678b87a33bc774990d189bb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Nov 19 09:15:36 2020 +0100
CAMEL-15862 - Added createDownloadLink operation to docs
---
.../camel-aws2-s3/src/main/docs/aws2-s3-component.adoc | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc b/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc
index 7d26000..ebbd654 100644
--- a/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc
+++ b/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc
@@ -340,6 +340,7 @@ Camel-AWS2-S3 component provides the following operation on the producer side:
- listObjects
- getObject (this will return an S3Object instance)
- getObjectRange (this will return an S3Object instance)
+- createDownloadLink
If you don't specify an operation explicitly the producer will do:
- a single file upload
@@ -523,6 +524,23 @@ This operation will return an S3Object instance related to the camelKey object i
This operation will return an S3Object instance related to the camelKey object in mycamelbucket bucket, containing a the bytes from 0 to 9.
+- CreateDownloadLink: this operation will return a download link through S3 Presigner
+
+[source,java]
+--------------------------------------------------------------------------------
+ from("direct:start").process(new Processor() {
+
+ @Override
+ public void process(Exchange exchange) throws Exception {
+ exchange.getIn().setHeader(S3Constants.KEY, "camelKey");
+ }
+ })
+ .to("aws2-s3://mycamelbucket?accessKey=xxx&secretKey=yyy®ion=region&operation=createDownloadLink")
+ .to("mock:result");
+--------------------------------------------------------------------------------
+
+This operation will return a download link url for the file camel-key in the bucket mycamelbucket and region region
+
== Bucket Autocreation
With the option `autoCreateBucket` users are able to avoid the autocreation of an S3 Bucket in case it doesn't exist. The default for this option is `true`.