Api Gateway log retention does not obey logRetentionInDays

I have enabled API Gateway logs in the yaml file using:

    restApi: true

I also have setup log retention for the Lambda logs using:

  logRetentionInDays: 30

This sets all the Lambda logs to be retained for 30 days but the API Gateway logs still shows as Never expire in the console.

Is there a way to get the API Gateway logs to also only be retained for 30 days? It seems the yaml setting logRetentionInDays only applies to Lambda logs and not API Gateway.