diff --git a/applications/source/s3-source/README.adoc b/applications/source/s3-source/README.adoc index e0264ea5..436413ef 100644 --- a/applications/source/s3-source/README.adoc +++ b/applications/source/s3-source/README.adoc @@ -78,6 +78,7 @@ $$s3.supplier.auto-create-local-dir$$:: $$Create or not the local directory.$$ * $$s3.supplier.delete-remote-files$$:: $$Delete or not remote files after processing.$$ *($$Boolean$$, default: `$$false$$`)* $$s3.supplier.filename-pattern$$:: $$The pattern to filter remote files.$$ *($$String$$, default: `$$$$`)* $$s3.supplier.filename-regex$$:: $$The regexp to filter remote files.$$ *($$Pattern$$, default: `$$$$`)* +$$s3.supplier.list-only$$:: $$Set to true to return s3 object metadata without copying file to a local directory.$$ *($$Boolean$$, default: `$$false$$`)* $$s3.supplier.local-dir$$:: $$The local directory to store files.$$ *($$File$$, default: `$$$$`)* $$s3.supplier.preserve-timestamp$$:: $$To transfer or not the timestamp of the remote file to the local one.$$ *($$Boolean$$, default: `$$true$$`)* $$s3.supplier.remote-dir$$:: $$AWS S3 bucket resource.$$ *($$String$$, default: `$$bucket$$`)* diff --git a/functions/supplier/s3-supplier/src/main/java/org/springframework/cloud/fn/supplier/s3/AwsS3SupplierProperties.java b/functions/supplier/s3-supplier/src/main/java/org/springframework/cloud/fn/supplier/s3/AwsS3SupplierProperties.java index 7b50ede1..e4f66483 100644 --- a/functions/supplier/s3-supplier/src/main/java/org/springframework/cloud/fn/supplier/s3/AwsS3SupplierProperties.java +++ b/functions/supplier/s3-supplier/src/main/java/org/springframework/cloud/fn/supplier/s3/AwsS3SupplierProperties.java @@ -165,4 +165,12 @@ public class AwsS3SupplierProperties { public boolean isExclusivePatterns() { return !(this.filenamePattern != null && this.filenameRegex != null); } + + public boolean isListOnly() { + return listOnly; + } + + public void setListOnly(boolean listOnly) { + this.listOnly = listOnly; + } }