Skip to main content

Type Alias: CronJob

CronJob = object

Defined in: index.ts:31

Properties​

description?​

optional description?: string

Defined in: index.ts:41


environment?​

optional environment?: Record<string, CloudFormationValue<string>>

Defined in: index.ts:43

Merged over the template's environment.


handler​

handler: string

Defined in: index.ts:33

Lambda handler, <file>.<export>. carlin bundles <file>.ts from it.


layers?​

optional layers?: CloudFormationValue<string>[]

Defined in: index.ts:44


logRetentionInDays?​

optional logRetentionInDays?: number

Defined in: index.ts:50


memorySize?​

optional memorySize?: number

Defined in: index.ts:49

MB.


role?​

optional role?: CloudFormationValue<string>

Defined in: index.ts:40

The execution role ARN. Overrides the template's role.


runtime?​

optional runtime?: string

Defined in: index.ts:45


schedule​

schedule: string | Record<string, string>

Defined in: index.ts:38

An EventBridge cron(...) or rate(...) expression, or several keyed by event name. A single expression is the event Schedule.


timeout?​

optional timeout?: number

Defined in: index.ts:47

Seconds.