From 5b9cf9fd34e369f2c4d3574871be3fbdc1547413 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Tue, 15 Jun 2021 13:37:05 +0200 Subject: [PATCH 1/3] AWS S3 Source Kamelet: Added includeBody option --- aws-s3-source.kamelet.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/aws-s3-source.kamelet.yaml b/aws-s3-source.kamelet.yaml index 781bc6cb6..a7717d2c9 100644 --- a/aws-s3-source.kamelet.yaml +++ b/aws-s3-source.kamelet.yaml @@ -59,6 +59,13 @@ spec: x-descriptors: - 'urn:alm:descriptor:com.tectonic.ui:checkbox' default: false + includeBody: + title: Include Body + description: If it is true, the exchange will be consumed and put into the body and closed. If false the S3Object stream will be put raw into the body and the headers will be set with the S3 object metadata. + type: boolean + x-descriptors: + - 'urn:alm:descriptor:com.tectonic.ui:checkbox' + default: true dependencies: - "camel:aws2-s3" - "camel:kamelet" @@ -70,6 +77,7 @@ spec: secretKey: "{{secretKey}}" accessKey: "{{accessKey}}" region: "{{region}}" + includeBody: "{{includeBody}}" deleteAfterRead: "{{deleteAfterRead}}" steps: - to: "kamelet:sink" From 925fe60949935d2a82af67f8d6b02815aaf4a281 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Tue, 15 Jun 2021 13:37:48 +0200 Subject: [PATCH 2/3] AWS S3 Source Kamelet: Added includeBody option --- .../main/resources/kamelets/aws-s3-source.kamelet.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-s3-source.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-s3-source.kamelet.yaml index 781bc6cb6..a7717d2c9 100644 --- a/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-s3-source.kamelet.yaml +++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-s3-source.kamelet.yaml @@ -59,6 +59,13 @@ spec: x-descriptors: - 'urn:alm:descriptor:com.tectonic.ui:checkbox' default: false + includeBody: + title: Include Body + description: If it is true, the exchange will be consumed and put into the body and closed. If false the S3Object stream will be put raw into the body and the headers will be set with the S3 object metadata. + type: boolean + x-descriptors: + - 'urn:alm:descriptor:com.tectonic.ui:checkbox' + default: true dependencies: - "camel:aws2-s3" - "camel:kamelet" @@ -70,6 +77,7 @@ spec: secretKey: "{{secretKey}}" accessKey: "{{accessKey}}" region: "{{region}}" + includeBody: "{{includeBody}}" deleteAfterRead: "{{deleteAfterRead}}" steps: - to: "kamelet:sink" From a788f5a9f11ec6feb35243ebce1417142046f0a7 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Tue, 15 Jun 2021 13:38:07 +0200 Subject: [PATCH 3/3] AWS S3 Source Kamelet: Added includeBody option --- docs/modules/ROOT/pages/aws-s3-source.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/modules/ROOT/pages/aws-s3-source.adoc b/docs/modules/ROOT/pages/aws-s3-source.adoc index 0cfc38c02..aa43bac3d 100644 --- a/docs/modules/ROOT/pages/aws-s3-source.adoc +++ b/docs/modules/ROOT/pages/aws-s3-source.adoc @@ -19,6 +19,7 @@ The following table summarizes the configuration options available for the `aws- | *secretKey {empty}* *| Secret Key| The secret key obtained from AWS| string| | | autoCreateBucket| Autocreate Bucket| Setting the autocreation of the S3 bucket bucketName.| boolean| `false`| | deleteAfterRead| Auto-delete Objects| Delete objects after consuming them| boolean| `true`| +| includeBody| Include Body| If it is true, the exchange will be consumed and put into the body and closed. If false the S3Object stream will be put raw into the body and the headers will be set with the S3 object metadata.| boolean| `true`| |=== NOTE: Fields marked with ({empty}*) are mandatory.