get_lambda_environment_variable: Retrieve a Lambda environment variable if available, and...

View source: R/lambda-config.R

get_lambda_environment_variableR Documentation

Retrieve a Lambda environment variable if available, and error otherwise

Description

This function is provided to return a specific error if an environment variable is not defined. This is used by lambda_config to ensure that the environment variables that are expected to be defined by AWS are present.

If the environment variable is undefined but a default value is provided, then that default value will be returned. However, the environment variable will always take precedence.

Usage

get_lambda_environment_variable(env_var, default = NULL)

Arguments

env_var

character environment variable to retrieve

default

character default value to return if the environment variable is undefined. The environment variable always takes precedence.

Value

character


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