LarpixClient/electron/node_modules/electron-publish/out/s3/bucketLocation.d.ts
olcxja fb6c8b6ee9
All checks were successful
Android Build / publish (push) Successful in 55s
Linux Build / publish (push) Successful in 1m6s
update electron to v43
2026-07-09 22:38:33 +02:00

8 lines
523 B
TypeScript

/**
* Resolves the AWS region for a bucket via the S3 GetBucketLocation API (SigV4-signed).
* Uses path-style endpoint so dotted bucket names pass TLS hostname validation.
* Credentials are resolved via the standard provider chain (env vars → ~/.aws/credentials).
* AWS returns an empty LocationConstraint element for us-east-1 (the implicit default region).
* Mirrors the behaviour of the `get-bucket-location` app-builder subcommand.
*/
export declare function getBucketLocation(bucket: string): Promise<string>;