ServerLess Framework maximumRetryAttempts for S3 Lambda?

Hi,

I created an app/service using Serverless Framework 1.71.3. I would like to set the Retry attempts option to 0. So, when serverless deploys the lambda function, it’s going to say 0 instead of the default 2.

Here’s my code, but it’s not working. Any thoughts?

Serverless deploys the function fine but it doesn’t update the Retry attempts field.

functions:

get_events:
  runtime: python3.7
  handler: handler.myfunc
  events:
    - s3:
        maximumRetryAttempts: 0
        bucket: ...
        existing: true
        event: s3:ObjectCreated:*
        rules:
          - suffix: .json
  layers:
    - ...