Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amend lambdaws.create function signature #23

Open
slvnperron opened this issue Jan 7, 2015 · 0 comments
Open

Amend lambdaws.create function signature #23

slvnperron opened this issue Jan 7, 2015 · 0 comments

Comments

@slvnperron
Copy link
Contributor

@EFF said in #19 :

I think this would be easier to use if the params were in an object, no need to stick to a specific order ...
I think it would be easier to handle params as well.. Let's say I don't have any deps and I'd like to specify some configs i have to call it like λ(require.resolve('./calculator'), 'add', [], { name: 'ADD', memory: 256 }); which i think sucks
I would like to call it like

var params = {
    handlerName: 'add',
    lamdaConfigs: {
        name: 'ADD',
        memory : '256'
    }
}
λ(require.resolve('./calculator'), params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant