1 回答
- 最新
- 投票最多
- 评论最多
0
Hi,
Yes, you have a parameter named retention
in the class LogRetention of CDK: see https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.LogRetention.html.
Put here the number that you want.
This blog post will show you how to do that form the API Gateway Construct: https://www.kevinwmcconnell.com/cdk/http-api-logs-with-cdk
Best,
Didier