MCPcopy Index your code
hub / github.com/simstudioai/sim / createS3Config

Function createS3Config

apps/sim/lib/uploads/core/storage-service.ts:54–63  ·  view source on GitHub ↗

* Create an S3 config from StorageConfig * @throws Error if required properties are missing

(config: StorageConfig)

Source from the content-addressed store, hash-verified

52 * @throws Error if required properties are missing
53 */
54function createS3Config(config: StorageConfig): S3Config {
55 if (!config.bucket || !config.region) {
56 throw new Error('S3 configuration missing required properties: bucket and region')
57 }
58
59 return {
60 bucket: config.bucket,
61 region: config.region,
62 }
63}
64
65/**
66 * Insert file metadata into the database

Callers 8

uploadFileFunction · 0.85
ensureBackendFunction · 0.85
downloadFileFunction · 0.85
downloadFileStreamFunction · 0.85
deleteFileFunction · 0.85
deleteFilesFunction · 0.85
headObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected