serverless-offline
Version:
Emulate AWS λ and API Gateway locally when developing your Serverless project
27 lines (16 loc) • 452 B
JavaScript
import crypto from "node:crypto"
export default class ScheduleEvent {
account = crypto.randomUUID()
detail = {};
["detail-type"] = "Scheduled Event"
id = crypto.randomUUID()
region = null
resources = []
source = "aws.events"
// format of aws displaying the time, e.g.: 2020-02-09T14:13:57Z
time = new Date().toISOString().replaceAll(/\.(.*)(?=Z)/g, "")
version = "0"
constructor(region) {
this.region = region
}
}