Optional
architectureOptional
bundlingOptional
entryThe path to the file that contains the function entry point. If this is a relative path, it is computed relative to the file where this function is defined
Defaults to './handler.ts'
Optional
environmentEnvironment variables that will be available during function execution
Optional
ephemeralThe size of the function's /tmp directory in MB. Must be a whole number.
Optional
layersAttach Lambda layers to a function
Optional
loggingOptional
memoryMBAn amount of memory (RAM) to allocate to the function between 128 and 10240 MB. Must be a whole number. Default is 512MB.
Optional
nameA name for the function. Defaults to the basename of the entry path if specified. If no entry is specified, defaults to the directory name in which this function is defined.
Example:
If entry is ./scheduled-db-backup.ts
the name will default to "scheduled-db-backup"
If entry is not set and the function is defined in amplify/functions/db-backup/resource.ts
the name will default to "db-backup"
Optional
resourceGroup the function with existing Amplify resources or separate the function into its own group.
Optional
runtimeNode runtime version for the lambda environment.
Defaults to the oldest NodeJS LTS version. See https://nodejs.org/en/about/previous-releases
Optional
scheduleA time interval string to periodically run the function.
This can be either a string of "every <positive whole number><m (minute) or h (hour)>"
, "every day|week|month|year"
or cron expression.
Defaults to no scheduling for the function.
Optional
timeoutAn amount of time in seconds between 1 second and 15 minutes. Must be a whole number. Default is 3 seconds.
The architecture of the target platform for the lambda environment. Defaults to X86_64.