Search documentation

Type to search the documentation.

Yak/Docs/Reference/Python SDK/ObjectStorageMount

Generated API reference

classyak.ObjectStorageMount

yak.ObjectStorageMount

Expose an existing S3-compatible bucket/prefix inside one ephemeral task.

Expose an existing S3-compatible bucket/prefix inside one ephemeral task.

This declaration contains only the named Secret reference. Secret values are
resolved by the control plane for the individual invocation.

Python SDK reference · Yak 0.1.19release v0.1.19
provenancec2e8cf7c309abe376f390072b94a9ecd3e633080
Signature
python
ObjectStorageMount(bucket: str, credentials: Secret, prefix: str = '', endpoint: Optional[str] = None, region: Optional[str] = None, mode: str = 'ro')

Parameters#

NameTypeDefaultDescription
bucketpositional-or-keyword str —

S3-compatible bucket name.

credentialspositional-or-keyword Secret —

Named Secret.from_name(...) containing S3 credentials.

prefixpositional-or-keyword str ''

Optional relative bucket prefix confined to this mount.

endpointpositional-or-keyword Optional[str] None

Optional S3-compatible endpoint URL.

regionpositional-or-keyword Optional[str] None

Signing region; defaults to us-east-1 for the provider endpoint.

modepositional-or-keyword str 'ro'

"ro" for read-only or "rw" for direct user writes.

property

ObjectStorageMount.secret_name#

Return the named credential reference without resolving its value.

Return the named credential reference without resolving its value.

Returns#

str

Return the named credential reference without resolving its value.

Related guides

Object Storage Mounts
BoundaryPreview limitations
  • This page is generated from the pinned release schema; update the site pin when a new release should be documented.
  • Lifecycle, persistence and operational context belong in the linked handwritten guides.