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.57.0 (build f614666)", date="2022-04-26T09:02:10.468Z") @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 EnvValuefromFieldRef(EnvFieldPaths fieldPath)Create a value from a field reference.static EnvValuefromFieldRef(EnvFieldPaths fieldPath, EnvValueFromFieldRefOptions options)Create a value from a field reference.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 EnvValuefromResource(ResourceFieldPaths resource)Create a value from a resource.static EnvValuefromResource(ResourceFieldPaths resource, EnvValueFromResourceOptions options)Create a value from a resource.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.
-
fromFieldRef
@Stability(Stable) @NotNull public static EnvValue fromFieldRef(@NotNull EnvFieldPaths fieldPath, @Nullable EnvValueFromFieldRefOptions options)
Create a value from a field reference.- Parameters:
fieldPath- : The field reference. This parameter is required.options- : Additional options.
-
fromFieldRef
@Stability(Stable) @NotNull public static EnvValue fromFieldRef(@NotNull EnvFieldPaths fieldPath)
Create a value from a field reference.- Parameters:
fieldPath- : The field reference. 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.
-
fromResource
@Stability(Stable) @NotNull public static EnvValue fromResource(@NotNull ResourceFieldPaths resource, @Nullable EnvValueFromResourceOptions options)
Create a value from a resource.- Parameters:
resource- : Resource to select the value from. This parameter is required.options- : Additional options.
-
fromResource
@Stability(Stable) @NotNull public static EnvValue fromResource(@NotNull ResourceFieldPaths resource)
Create a value from a resource.- Parameters:
resource- : Resource to select the value from. 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()
-
-