Interface CfnFunction.EnvironmentProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFunction.EnvironmentProperty.Jsii$Proxy
- Enclosing class:
CfnFunction
@Stability(Stable)
public static interface CfnFunction.EnvironmentProperty
extends software.amazon.jsii.JsiiSerializable
A function's environment variable settings.
You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
EnvironmentProperty environmentProperty = EnvironmentProperty.builder()
.variables(Map.of(
"variablesKey", "variables"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFunction.EnvironmentPropertystatic final classAn implementation forCfnFunction.EnvironmentProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVariables
Environment variable key-value pairs. For more information, see Using Lambda environment variables .If the value of the environment variable is a time or a duration, enclose the value in quotes.
Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
builder
-