I’m not 100% sure how your tying to do this but I think you should be using the AWS SDK for Java and then you will need some java actions to what you need
There is something for s3 in the app store it may be possible to modify this to suit your needs