[−][src]Trait lambda_runtime_core::ConfigProvider
Trait used by the RustRuntime
module to retrieve configuration information
about the environement. This is implemented by the EnvConfigProvider
using
the environment variables. We also have a mock implementation for the unit tests
Required methods
fn get_function_settings(&self) -> Result<FunctionSettings, RuntimeError>
Loads the function settings such as name, arn, memory amount, version, etc.
Return
A Result
of FunctionSettings
or a RuntimeError
. The runtime
fails the init process if this function returns an error.
fn get_runtime_api_endpoint(&self) -> Result<String, RuntimeError>
Returns the endpoint (hostname:port) for the Runtime API endpoint
Implementors
impl ConfigProvider for EnvConfigProvider
[src]
fn get_function_settings(&self) -> Result<FunctionSettings, RuntimeError>
[src]
Loads the function settings from the Lambda environment variables: https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html
fn get_runtime_api_endpoint(&self) -> Result<String, RuntimeError>
[src]
Loads the endpoint from Lambda's default environment variable: AWS_LAMBDA_RUNTIME_API