Skip to content

Amend lambdaws.create function signature #23

@slvnperron

Description

@slvnperron

@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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions