@Stability(value=Stable)
public static interface CfnFunction.EnvironmentProperty
extends software.amazon.jsii.JsiiSerializable
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 Object |
getVariables()
Environment variable key-value pairs.
|
@Stability(value=Stable) @Nullable default Object getVariables()
For more information, see Using Lambda environment variables .
@Stability(value=Stable) static CfnFunction.EnvironmentProperty.Builder builder()
Copyright © 2022. All rights reserved.