A Bucket is the same as Storage → New bucket in Studio.
Each matches a setting in Studio’s Bucket settings. Rules can read the file’s key: P.object.key and P.object.segments[n] (Rules on storage).

Storage

Use buckets from your app.

Policies

Write the rules.