Optional
Whether this storage resource is the default storage resource for the backend. required and relevant only if there are multiple storage resources defined.
false. Copy
false.
Friendly name that will be used to derive the S3 Bucket name
S3 event trigger configuration
https://docs.amplify.aws/gen2/build-a-backend/storage/#configure-storage-triggers
import { triggerHandler } from '../functions/trigger-handler/resource.ts'export const storage = defineStorage({ triggers: { onUpload: triggerHandler }}) Copy
import { triggerHandler } from '../functions/trigger-handler/resource.ts'export const storage = defineStorage({ triggers: { onUpload: triggerHandler }})
Whether to enable S3 object versioning on the bucket.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html
false Copy
false
Whether this storage resource is the default storage resource for the backend. required and relevant only if there are multiple storage resources defined.