config_or_runtime_api: Convert a config to a runtime API if necessary

View source: R/endpoints.R

config_or_runtime_apiR Documentation

Convert a config to a runtime API if necessary

Description

Endpoint functions need to accept either a config (as created by lambda_config) or a runtime API. This function will accept either and ensure that the runtime API is returned.

Usage

config_or_runtime_api(config)

Arguments

config

A list of configuration values as created by the lambda_config function.


lambdr documentation built on Nov. 25, 2023, 5:08 p.m.