S3SinkOptions
Defined in: src/sinks/s3.ts:34
Options for s3Sink.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
accessKeyId? |
string |
Access key id (with secretAccessKey; ignored when client is given). |
src/sinks/s3.ts:42 |
bucket |
string |
Bucket name. | src/sinks/s3.ts:36 |
checkpoints? |
boolean |
Upload checkpoints too (default true). |
src/sinks/s3.ts:61 |
client? |
S3Client |
A prebuilt signing client (e.g. new AwsClient({ … })). Otherwise pass credentials. |
src/sinks/s3.ts:40 |
endpoint? |
string |
Endpoint for S3-compatible stores, e.g. https://<account>.r2.cloudflarestorage.com or http://localhost:9000 (MinIO). Default: AWS (https://s3.<region>.amazonaws.com). |
src/sinks/s3.ts:54 |
pathStyle? |
boolean |
Path-style URLs ({endpoint}/{bucket}/{key}) instead of virtual-hosted ({bucket}.{host}/{key}). Default true with endpoint, false for AWS. |
src/sinks/s3.ts:59 |
prefix? |
string |
Key prefix, e.g. "audit/". Default "". |
src/sinks/s3.ts:38 |
region? |
string |
Region. Default "us-east-1" for AWS, "auto" when endpoint is set (R2 expects "auto"). |
src/sinks/s3.ts:49 |
secretAccessKey? |
string |
- | src/sinks/s3.ts:43 |
sessionToken? |
string |
- | src/sinks/s3.ts:44 |
timeoutMs? |
number |
Request timeout. Default 30 000 ms. | src/sinks/s3.ts:63 |