bucket_create
Create a MinIO bucket, optionally enabling WORM object lock for write-once-read-many compliance. Supports dry-run preview and reversible deletion while bucket is empty.
Instructions
[WRITE][risk=medium] Create a bucket, optionally WORM-capable. Reversible.
object_lock=True is the ONLY way to get object lock: S3 accepts the flag at bucket creation and has no call that enables it later. The server force-enables versioning as a consequence; the result reports what it observed rather than what was assumed.
Undo deletes the bucket, and only while it is still empty.
Args: bucket_name: New bucket name (3-63 chars, lowercase/digits/dots/hyphens). object_lock: Enable object lock (WORM). Cannot be changed afterwards. dry_run: If True, preview without creating. target: MinIO target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| bucket_name | Yes | ||
| object_lock | No |