OptionalarchitectureOptionalbundlingOptionalentryThe 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'
OptionalenvironmentEnvironment variables that will be available during function execution
OptionalephemeralThe size of the function's /tmp directory in MB. Must be a whole number.
OptionallayersAttach Lambda layers to a function
OptionalloggingOptionalmemoryMBAn amount of memory (RAM) to allocate to the function between 128 and 10240 MB. Must be a whole number. Default is 512MB.
OptionalnameA 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"
OptionalresourceGroup the function with existing Amplify resources or separate the function into its own group.
OptionalruntimeNode runtime version for the lambda environment.
Defaults to the oldest NodeJS LTS version. See https://nodejs.org/en/about/previous-releases
OptionalscheduleA 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.
OptionaltimeoutAn 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.