Summary
Expose the SDK's fileLockEnabled create-bucket option so workflows can create Object Lock-capable buckets.
Why
B2 Object Lock must be enabled when a bucket is created; it cannot be enabled later on a normal bucket. The action has retention verbs and issues for default retention, but without fileLockEnabled during bucket creation, infrastructure workflows cannot bootstrap compliant buckets end to end.
SDK support (already available)
B2Client.createBucket({ fileLockEnabled })
CreateBucketRequest.fileLockEnabled
BucketInfo.fileLockConfiguration
Proposed surface
Extend the future create-bucket action from #100 with:
file-lock-enabled (true / false, default false)
The output/summary should include the returned fileLockConfiguration so users can verify the bucket was created with Object Lock enabled.
Acceptance criteria
Out of scope
Summary
Expose the SDK's
fileLockEnabledcreate-bucket option so workflows can create Object Lock-capable buckets.Why
B2 Object Lock must be enabled when a bucket is created; it cannot be enabled later on a normal bucket. The action has retention verbs and issues for default retention, but without
fileLockEnabledduring bucket creation, infrastructure workflows cannot bootstrap compliant buckets end to end.SDK support (already available)
B2Client.createBucket({ fileLockEnabled })CreateBucketRequest.fileLockEnabledBucketInfo.fileLockConfigurationProposed surface
Extend the future create-bucket action from #100 with:
file-lock-enabled(true/false, defaultfalse)The output/summary should include the returned
fileLockConfigurationso users can verify the bucket was created with Object Lock enabled.Acceptance criteria
create-bucketacceptsfile-lock-enabled.fileLockEnabled: trueto the SDK create call.fileLockConfiguration.Out of scope