Validate the `bucket` option.