S3 Bucket's last modified time

0

Is there a way to get the Bucket's last modified time in go language?

asked a year ago1566 views
2 Answers
0

Yes, use AWS SDK for Go: https://aws.amazon.com/sdk-for-go

And build with Go something equivalent to https://www.learnaws.org/2022/10/10/aws-s3-list-files-date/

profile pictureAWS
EXPERT
answered a year ago
  • Thanks for the reply. I do get the last modified date for objects inside the bucket, however I need the last modified time for bucket, I wanted to track what changes has occurred at particular time interval like policy update, file upload etc. for bucket.

0

Oh, I see Have a look at the example at end of https://docs.aws.amazon.com/cli/latest/reference/macie2/describe-buckets.html Are you looking for "lastUpdated" parameter then?

profile pictureAWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions