CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1-dev (changelog, source)
Search

Predicate ServerLess::hasServerlessHandler

Holds if the .yml file ymlFile contains a serverless configuration from framework with handler, codeURI, and runtime properties. codeURI and runtime default to the empty string if no explicit value is set in the configuration.

handler should be interpreted in a language specific way, see mapping.md.

Import path

import codeql.serverless.ServerLess
predicate hasServerlessHandler(File ymlFile, string framework, string handler, string codeUri, string runtime)