Package org.cdk8s.plus20
Class EnvValue
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus20.EnvValue
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-03T09:09:28.027Z") @Stability(Stable) public class EnvValue extends software.amazon.jsii.JsiiObject
Utility class for creating reading env values from various sources.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnvValuefromConfigMap(IConfigMap configMap, String key)Create a value by reading a specific key inside a config map.static EnvValuefromConfigMap(IConfigMap configMap, String key, EnvValueFromConfigMapOptions options)Create a value by reading a specific key inside a config map.static EnvValuefromProcess(String key)Create a value from a key in the current process environment.static EnvValuefromProcess(String key, EnvValueFromProcessOptions options)Create a value from a key in the current process environment.static EnvValuefromSecretValue(SecretValue secretValue)Defines an environment value from a secret JSON value.static EnvValuefromSecretValue(SecretValue secretValue, EnvValueFromSecretOptions options)Defines an environment value from a secret JSON value.static EnvValuefromValue(String value)Create a value from the given argument.ObjectgetValue()ObjectgetValueFrom()-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Method Detail
-
fromConfigMap
@Stability(Stable) @NotNull public static EnvValue fromConfigMap(@NotNull IConfigMap configMap, @NotNull String key, @Nullable EnvValueFromConfigMapOptions options)
Create a value by reading a specific key inside a config map.- Parameters:
configMap- - The config map. This parameter is required.key- - The key to extract the value from. This parameter is required.options- - Additional options.
-
fromConfigMap
@Stability(Stable) @NotNull public static EnvValue fromConfigMap(@NotNull IConfigMap configMap, @NotNull String key)
Create a value by reading a specific key inside a config map.- Parameters:
configMap- - The config map. This parameter is required.key- - The key to extract the value from. This parameter is required.
-
fromProcess
@Stability(Stable) @NotNull public static EnvValue fromProcess(@NotNull String key, @Nullable EnvValueFromProcessOptions options)
Create a value from a key in the current process environment.- Parameters:
key- - The key to read. This parameter is required.options- - Additional options.
-
fromProcess
@Stability(Stable) @NotNull public static EnvValue fromProcess(@NotNull String key)
Create a value from a key in the current process environment.- Parameters:
key- - The key to read. This parameter is required.
-
fromSecretValue
@Stability(Stable) @NotNull public static EnvValue fromSecretValue(@NotNull SecretValue secretValue, @Nullable EnvValueFromSecretOptions options)
Defines an environment value from a secret JSON value.- Parameters:
secretValue- The secret value (secrent + key). This parameter is required.options- Additional options.
-
fromSecretValue
@Stability(Stable) @NotNull public static EnvValue fromSecretValue(@NotNull SecretValue secretValue)
Defines an environment value from a secret JSON value.- Parameters:
secretValue- The secret value (secrent + key). This parameter is required.
-
fromValue
@Stability(Stable) @NotNull public static EnvValue fromValue(@NotNull String value)
Create a value from the given argument.- Parameters:
value- - The value. This parameter is required.
-
getValue
@Stability(Stable) @Nullable public Object getValue()
-
getValueFrom
@Stability(Stable) @Nullable public Object getValueFrom()
-
-