Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS S3 Source: Added Prefix parameter as optional parameter #433

Merged
merged 3 commits into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions aws-s3-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -79,5 +84,6 @@ spec:
region: "{{region}}"
includeBody: "{{includeBody}}"
deleteAfterRead: "{{deleteAfterRead}}"
prefix: "{{?prefix}}"
steps:
- to: "kamelet:sink"
1 change: 1 addition & 0 deletions docs/modules/ROOT/pages/aws-s3-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -79,5 +84,6 @@ spec:
region: "{{region}}"
includeBody: "{{includeBody}}"
deleteAfterRead: "{{deleteAfterRead}}"
prefix: "{{?prefix}}"
steps:
- to: "kamelet:sink"