🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@anabode/scheduler_cw

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anabode/scheduler_cw

Scheduler ===

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

Scheduler

Inserts a scheduled rule and assigns a target invocation.

Currently supports Lambda and SNS.

Prerequisites:

JSON credentials file and config object with at least {aws: {region = 'eu-west-1, topicArn: ''}}'

Usage:

npm i @anabode/scheduler_cw --save

var payload = {
	"Name": "name-me",
	"Description": "fooo",
	"detail": {"Body": "stuff happens", "Title": "AppTest", "Stuff": "more IDS and relevenat identifiers go here"},
	"type_name": "reminder",
	"type_id": "31cb0ab9-c53f-4f4e-83e3-38291793d1b5",
	"cron_expr": "19,20,22 16 11 OCT ? 2018" 
};

var conf = { aws: { region: 'eu-west-1', targetArn: 'arn:aws:sns:eu-west-1:1234556789012:some-topic' }};
var schedulerWorker = require('@anabode/scheduler_cw');
schedulerWorker.createScheduledRule(payload, conf, (e, d) => { 
  if (e) {
    console.error(e.message, e.stack);
  } else {
    console.log(d)
  }
})

TODO:

FAQs

Package last updated on 11 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts