org.cdk8s.plus22.EnvValue Maven / Gradle / Ivy
package org.cdk8s.plus22;
/**
* Utility class for creating reading env values from various sources.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.47.0 (build 86d2c33)", date = "2021-12-08T00:16:55.091Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = org.cdk8s.plus22.$Module.class, fqn = "cdk8s-plus-22.EnvValue")
public class EnvValue extends software.amazon.jsii.JsiiObject {
protected EnvValue(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected EnvValue(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* Create a value by reading a specific key inside a config map.
*
* @param configMap - The config map. This parameter is required.
* @param key - The key to extract the value from. This parameter is required.
* @param options - Additional options.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus22.EnvValue fromConfigMap(final @org.jetbrains.annotations.NotNull org.cdk8s.plus22.IConfigMap configMap, final @org.jetbrains.annotations.NotNull java.lang.String key, final @org.jetbrains.annotations.Nullable org.cdk8s.plus22.EnvValueFromConfigMapOptions options) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus22.EnvValue.class, "fromConfigMap", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus22.EnvValue.class), new Object[] { java.util.Objects.requireNonNull(configMap, "configMap is required"), java.util.Objects.requireNonNull(key, "key is required"), options });
}
/**
* Create a value by reading a specific key inside a config map.
*
* @param configMap - The config map. This parameter is required.
* @param key - The key to extract the value from. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus22.EnvValue fromConfigMap(final @org.jetbrains.annotations.NotNull org.cdk8s.plus22.IConfigMap configMap, final @org.jetbrains.annotations.NotNull java.lang.String key) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus22.EnvValue.class, "fromConfigMap", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus22.EnvValue.class), new Object[] { java.util.Objects.requireNonNull(configMap, "configMap is required"), java.util.Objects.requireNonNull(key, "key is required") });
}
/**
* Create a value from a key in the current process environment.
*
* @param key - The key to read. This parameter is required.
* @param options - Additional options.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus22.EnvValue fromProcess(final @org.jetbrains.annotations.NotNull java.lang.String key, final @org.jetbrains.annotations.Nullable org.cdk8s.plus22.EnvValueFromProcessOptions options) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus22.EnvValue.class, "fromProcess", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus22.EnvValue.class), new Object[] { java.util.Objects.requireNonNull(key, "key is required"), options });
}
/**
* Create a value from a key in the current process environment.
*
* @param key - The key to read. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus22.EnvValue fromProcess(final @org.jetbrains.annotations.NotNull java.lang.String key) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus22.EnvValue.class, "fromProcess", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus22.EnvValue.class), new Object[] { java.util.Objects.requireNonNull(key, "key is required") });
}
/**
* Defines an environment value from a secret JSON value.
*
* @param secretValue The secret value (secrent + key). This parameter is required.
* @param options Additional options.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus22.EnvValue fromSecretValue(final @org.jetbrains.annotations.NotNull org.cdk8s.plus22.SecretValue secretValue, final @org.jetbrains.annotations.Nullable org.cdk8s.plus22.EnvValueFromSecretOptions options) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus22.EnvValue.class, "fromSecretValue", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus22.EnvValue.class), new Object[] { java.util.Objects.requireNonNull(secretValue, "secretValue is required"), options });
}
/**
* Defines an environment value from a secret JSON value.
*
* @param secretValue The secret value (secrent + key). This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus22.EnvValue fromSecretValue(final @org.jetbrains.annotations.NotNull org.cdk8s.plus22.SecretValue secretValue) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus22.EnvValue.class, "fromSecretValue", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus22.EnvValue.class), new Object[] { java.util.Objects.requireNonNull(secretValue, "secretValue is required") });
}
/**
* Create a value from the given argument.
*
* @param value - The value. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.plus22.EnvValue fromValue(final @org.jetbrains.annotations.NotNull java.lang.String value) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.plus22.EnvValue.class, "fromValue", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus22.EnvValue.class), new Object[] { java.util.Objects.requireNonNull(value, "value is required") });
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.Object getValue() {
return software.amazon.jsii.Kernel.get(this, "value", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.Object getValueFrom() {
return software.amazon.jsii.Kernel.get(this, "valueFrom", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
}