> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Heap Connect on S3

> Read versioned Heap Connect deliveries and their Avro records.

Configure [Heap Connect for S3](https://help.heap.io/hc/en-us/articles/37271907624337-S3-Integration) on an operator-owned versioned bucket. Give Heap its delivery permissions separately. Use the [S3 object mount](https://docs.bijection.com/integrations/native-s3.md) with an independent read-only AWS credential restricted to the delivery prefix. Pass the same protected label to the receiver binder and as the app's `data`.

Call `source.initialize({ format: "heap-connect", heapBucket: "customer" })`. Use the same bucket in `s3Bucket` and `heapBucket`. The source follows versioned listing positions and retains each key and version. It seals Files up to 1 MiB through version-checked 24 KiB ranges. Larger objects retain metadata. A version unavailable during acquisition stops the source at its last listing position.

The bundled parser reads eligible Avro objects and delivery manifests smaller than or equal to 48 KiB, up to 128 records per object. Records are keyed by object version and ordinal. For a manifest in `sync_DUMP_ID/`, each decoded row identifies a table and contains its columns, incremental flag and listed same-directory Avro keys. Use `heap.resolveFile({ manifest, tableOrdinal, fileOrdinal })` to resolve a manifest entry to its retained version. It reports pending or ambiguous when it cannot select exactly one version. Ignore unlisted raw objects when consuming a delivery.

Heap controls the export schedule and full-resync flags. The mount retains all observed versions and leaves identity resolution and the interpretation of incremental or full-resync tables to the consumer.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.