Hi

I am not sure if you can filter by any kind of file name, but there is
a prefix option you can set.
com.amazonaws.services.s3.model.ListObjectsRequest#setPrefix

It depends on what API AWS S3 offers and I can only see that there is
this prefix.
Anyone seen some better APIs ?

You can filter afterwards in Apache Camel (client side filtering) via
the Filter EIP but then the file has been read from AWS. What you ask
about is a server side filtering, and so far I have only seen the
prefix option.

You can try look in the API of the s3 model and see if you can find something.


On Mon, Jul 10, 2017 at 5:16 PM, erevkub1 <[email protected]> wrote:
> Hi,
>
> Can any one please tell me if we have any option to read the files form AWS
> S3 bucket based on the file names.
>
> Similar to filter option available in camel file endpoint is there any
> option in AWS S3 or any alternative to fetch the files based on filtering?
>
> Regards,
> Revathy
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/AWS-S3-File-retrival-based-on-filter-conditions-tp5806712.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to