How to create API Gateway with S3 pass through specific bucket

hi everyone,

i saw the it is possible to make a pass through, but how do i define it to pass through a specific bucket?
And do i need a handler for that ? if yes for what ?

my definition looks like this:

functions:
  create:
    handler: posts.create
    events:
      - http:
          method: get
          path: whatever
          integration: s3
          request:
            passThrough: WHEN_NO_TEMPLATES
1 Like

Did you finally find a way to implement it?