
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
The newest version!
/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy