EnvironmentOptions

class aws_cdk.aws_lambda.EnvironmentOptions(*, remove_in_edge=None)

Bases: object

Environment variables options.

Parameters

remove_in_edge (Optional[bool]) – When used in Lambda@Edge via edgeArn() API, these environment variables will be removed. If not set, an error will be thrown. Default: false - using the function in Lambda

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_lambda as lambda_

environment_options = lambda.EnvironmentOptions(
    remove_in_edge=False
)

Attributes

remove_in_edge

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

If not set, an error will be thrown.

Default

false - using the function in Lambda

See

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-requirements-limits.html#lambda-requirements-lambda-function-configuration

Edge

will throw

Return type

Optional[bool]