com.amazonaws.services.lambda.runtime.api.client.util.EnvReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-lambda-java-runtime-interface-client Show documentation
Show all versions of aws-lambda-java-runtime-interface-client Show documentation
The AWS Lambda Java Runtime Interface Client implements the Lambda programming model for Java
/* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. */
package com.amazonaws.services.lambda.runtime.api.client.util;
import java.util.Map;
public class EnvReader {
public Map getEnv() {
return System.getenv();
}
public String getEnv(String envVariableName) {
return System.getenv(envVariableName);
}
public String getEnvOrDefault(String envVariableName, String defaultVal) {
String val = getEnv(envVariableName);
return val == null ? defaultVal : val;
}
}