Skip to content
v2.275.0

EnvironmentOptions Struct ​

Environment variables options.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const environmentOptions: lambda.EnvironmentOptions = {
  removeInEdge: false,
};

Properties ​

removeInEdgeoptionalbooleanremove_in_edgeoptionalboolremoveInEdgeoptionalBooleanRemoveInEdgeoptionalboolRemoveInEdgeoptional*bool#
When used in Lambda@Edge via edgeArn() API, these environment variables will be removed.

Default: false - using the function in Lambda@Edge will throw

If not set, an error will be thrown.