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@Edge will throw

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import 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@Edge will throw

See:

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