The bucket option defines the S3 bucket to use for managing files.
OptionalcdnUrl?: string | nullThe cdnUrl field can be used to define the base URL for generating public URL for a file. For example, If you use CloudFront alongside S3 to serve public files, the cdnUrl property should be the CloudFront URL.
OptionalenableAccurateGetPublicUrl?: booleanIf false the getPublicUrl method of ISignedFileStorageAdapter will perfom one database call and therby always return string even when the file doesnt exists.
Note the fewer database calls the cheaper it will be when using aws s3.
OptionalenableAccurateGetSignedDownloadUrl?: booleanIf false the getSignedDownloadUrl method of ISignedFileStorageAdapter will perfom one database call and therby always return string even when the file doesnt exists.
Note the fewer database calls the cheaper it will be when using aws s3.
OptionalenableAccuratePut?: booleanIf false the put method of ISignedFileStorageAdapter will perform one database call and thereby always return true even when the file doesnt exists.
Note the fewer database calls the cheaper it will be when using aws s3.
OptionalenableAccurateRemoveMany?: booleanOptionalpublicUrlGenerator?: S3FilePublicUrlGeneratorDefine a custom public url generator for creating public and signed URLs.
OptionalserverSideEncryption?: ServerSideEncryption | nullDefine ServerSideEncryption option for all objects uploaded to S3. It can be disabled by passing null
IMPORT_PATH:
"@daiso-tech/core/file-storage/aws-file-storage-adapter"