
commonMain.aws.smithy.kotlin.runtime.util.EnvironmentProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils-jvm Show documentation
Show all versions of utils-jvm Show documentation
Utilities for working with the Smithy runtime
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.util
/**
* Provide a mapping from key to value
*/
public interface EnvironmentProvider {
/**
* Get a map of all environment variables.
* @return A map of string keys to string values.
*/
public fun getAllEnvVars(): Map
/**
* Get an environment variable or null
*
* @param key name of environment variable
* @return value of environment variable or null if undefined
*/
public fun getenv(key: String): String?
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy