diff --git a/aws-s3-source.kamelet.yaml b/aws-s3-source.kamelet.yaml index a7717d2c9..a94a8824a 100644 --- a/aws-s3-source.kamelet.yaml +++ b/aws-s3-source.kamelet.yaml @@ -66,6 +66,11 @@ spec: x-descriptors: - 'urn:alm:descriptor:com.tectonic.ui:checkbox' default: true + prefix: + title: Prefix + description: The AWS S3 bucket prefix to consider while searching + type: string + example: 'folder/' dependencies: - "camel:aws2-s3" - "camel:kamelet" @@ -79,5 +84,6 @@ spec: region: "{{region}}" includeBody: "{{includeBody}}" deleteAfterRead: "{{deleteAfterRead}}" + prefix: "{{?prefix}}" steps: - to: "kamelet:sink" diff --git a/docs/modules/ROOT/pages/aws-s3-source.adoc b/docs/modules/ROOT/pages/aws-s3-source.adoc index 1f2cc01f7..901911f5c 100644 --- a/docs/modules/ROOT/pages/aws-s3-source.adoc +++ b/docs/modules/ROOT/pages/aws-s3-source.adoc @@ -20,6 +20,7 @@ The following table summarizes the configuration options available for the `aws- | 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`| +| prefix| Prefix| The AWS S3 bucket prefix to consider while searching| string| | `"folder/"` |=== NOTE: Fields marked with ({empty}*) are mandatory. diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml index a7717d2c9..a94a8824a 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml @@ -66,6 +66,11 @@ spec: x-descriptors: - 'urn:alm:descriptor:com.tectonic.ui:checkbox' default: true + prefix: + title: Prefix + description: The AWS S3 bucket prefix to consider while searching + type: string + example: 'folder/' dependencies: - "camel:aws2-s3" - "camel:kamelet" @@ -79,5 +84,6 @@ spec: region: "{{region}}" includeBody: "{{includeBody}}" deleteAfterRead: "{{deleteAfterRead}}" + prefix: "{{?prefix}}" steps: - to: "kamelet:sink"