s3ObjectKeys
function s3ObjectKeys(batch, prefix?): object;Defined in: src/sinks/s3.ts:79
The object keys a batch is written to (exported for tooling and tests).
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
batch |
StreamBatch |
undefined |
prefix? |
string |
"" |
Returns
Section titled “Returns”object
| Name | Type | Defined in |
|---|---|---|
checkpoints |
string[] |
src/sinks/s3.ts:82 |
events |
string | null |
src/sinks/s3.ts:82 |
Example
Section titled “Example”s3ObjectKeys(batch, "audit/");// { events: "audit/acme/2026/11/20/000000000001-000000000100.jsonl",// checkpoints: ["audit/acme/checkpoints/chk_01J….json"] }