Is there a reason why the accessLog definition on ...
# help
g
Is there a reason why the accessLog definition on sst.Api does not accept RetentionDays from
aws-cdk-lib/aws-logs
?
f
Hey @Garret Harp this should work
Copy code
new Api(this, "Api", {
  accessLog: {
    retention: "THREE_DAYS",
  },
  routes: ...
});
More details here https://docs.serverless-stack.com/constructs/Api#apiaccesslogprops
g
Yeah that is what I am doing right now but I would prefer if we could specify using RetentionDays especially since I have a helper that sets it based on the stage 😅
f
Gotcha. Lemme put that in.
It takes RetentionDays in
0.61.1
🤓
g
Thank you!