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();