If you mean compress all images in an S3 bucket? Not directly. But we do have a Squoosh CLI!
https://github.com/GoogleChromeLabs/squoosh/tree/dev/cli