{"id":16758478,"url":"https://github.com/kessler/schedule-aws-lambda","last_synced_at":"2026-04-12T12:38:40.733Z","repository":{"id":142618785,"uuid":"114475611","full_name":"kessler/schedule-aws-lambda","owner":"kessler","description":"attach a schedule to an existing aws lambda function","archived":false,"fork":false,"pushed_at":"2017-12-16T16:46:22.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T04:43:33.330Z","etag":null,"topics":["aws","aws-lambda","node-module","nodejs","npm-module","npm-package"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kessler.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-16T16:43:43.000Z","updated_at":"2018-09-25T02:31:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"a072e4ba-161f-49d0-a759-5d442cc469cc","html_url":"https://github.com/kessler/schedule-aws-lambda","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"ad20b7e933ac4bcfa979a42af75ecd0a2e92f19d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kessler/schedule-aws-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fschedule-aws-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fschedule-aws-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fschedule-aws-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fschedule-aws-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kessler","download_url":"https://codeload.github.com/kessler/schedule-aws-lambda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fschedule-aws-lambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271012144,"owners_count":24684486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","node-module","nodejs","npm-module","npm-package"],"created_at":"2024-10-13T04:05:28.686Z","updated_at":"2026-04-12T12:38:35.711Z","avatar_url":"https://github.com/kessler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# schedule-aws-lambda\r\n\r\n**attach a schedule to an existing aws lambda function**\r\n\r\n[![npm status](http://img.shields.io/npm/v/schedule-aws-lambda.svg?style=flat-square)](https://www.npmjs.org/package/schedule-aws-lambda) \r\n\r\n## example\r\n\r\n`npm i schedule-aws-lambda`\r\n\r\n```js\r\nconst { Lambda, CloudWatchEvents } = require('aws-sdk')\r\nconst lambda = new Lambda()\r\nconst cloudwatch = new CloudWatchEvents()\r\nconst schedule = require('schedule-aws-lambda')(lambda, cloudwatch)\r\n\r\nschedule('the-function-name').withInput({ foo: 'bar' }).at('rate(5 minutes)').then(console.log)\r\n```\r\n\r\n## api\r\n\r\nThis module exposes the following fluent interface:\r\n```js\r\nrequire('schedule-aws-lambda')(dependencies)(functionName)\r\n    .[withInput(...) | input(...) | rule.id(...) | rule.name(...) | rule.description(...) ]\r\n    .at(expression)\r\n    .then(...)\r\n```\r\n_input() is an alias of withInput()_\r\n\r\nalternatively one can use the `execute` api:\r\n```js\r\nrequire('schedule-aws-lambda')(dependencies)\r\n    .execute({ functionName, functionInput }, { ruleName, ruleDescription, ruleId = ulid(), scheduleExpression })\r\n    .then(...)\r\n```\r\n\r\nfor further details examine the source and jsdocs\r\n\r\n## license\r\n\r\n[MIT](http://opensource.org/licenses/MIT) © Yaniv Kessler\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fschedule-aws-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkessler%2Fschedule-aws-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fschedule-aws-lambda/lists"}