public static interface CfnFunction.EnvironmentProperty
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnFunction.EnvironmentProperty.Builder
A builder for
CfnFunction.EnvironmentProperty |
static class |
CfnFunction.EnvironmentProperty.Jsii$Proxy
An implementation for
CfnFunction.EnvironmentProperty |
Modifier and Type | Method and Description |
---|---|
static CfnFunction.EnvironmentProperty.Builder |
builder() |
default java.lang.Object |
getVariables()
Environment variable key-value pairs.
|
default java.lang.Object getVariables()
For more information, see Using Lambda environment variables .
static CfnFunction.EnvironmentProperty.Builder builder()