A way to know when a VPC was last used using the aws sdk?

Hello, is there. a way to know when a VPC was last used using the aws sdk?

CloudWatch Logs API probably is the way to go

https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeFlowLogs.html

Thank you for the idea!