-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? If yes, please describe the problem.
It would be great to have an abstract resource like lambda
for adding custom resources based on AWS. OK, it's kind of wrapper for fetch
but it shows how super easily one can extend and call the AskQL with custom-made data sources
Describe the solution you'd like to see.
It could be like lambda
helper one can could add as a customResource
. I mean something like:
const baseEnvironment = {
const customResources = [
'myLambdaCall': awsLambda("myFunctionName", awsOptions) // the first attribute of the returned resource is accepting the lambda payload and it's returning json
];
resources: {...builtInResources, ...customResources },
// customValues,
};
so then they could use it in the AskQL Script (assuming we already have #575 implemented) like this:
let a = { exampleObject }
a:myLambdaCall:jsonPath("a:items[0]")
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request