The Bucket Lock feature of Google Cloud Storage allows you to configure a data retention policy for a Cloud Storage bucket. This policy governs how long objects in the bucket must be retained. The feature also allows you to lock the data retention policy, permanently preventing the policy from from being reduced or removed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThe page provides versioned documentation for the \u003ccode\u003eBucketRetentionPolicy\u003c/code\u003e struct within the Google Cloud Storage C++ library.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is for version 2.37.0-rc, which is the most recent release candidate.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBucketRetentionPolicy\u003c/code\u003e struct relates to the data retention policies for Google Cloud Storage buckets, including features like Bucket Lock, which controls object retention duration.\u003c/p\u003e\n"],["\u003cp\u003eThe provided document versions range from version \u003ccode\u003e2.11.0\u003c/code\u003e all the way to the most recent \u003ccode\u003e2.37.0-rc\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can see a general overview of bucket lock at \u003ccode\u003ehttps://cloud.google.com/storage/docs/bucket-lock\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]