Skip to content

FunctionConfigurationEnvironment

Source code in docs_src/capo_greengrass/types/function_configuration_environment.py
class FunctionConfigurationEnvironment(TypedDict, closed=True):
    access_sysfs: NotRequired["capo_greengrass.types.__boolean.__boolean"]
    """If true, the Lambda function is allowed to access the host's /sys folder. Use this when the Lambda function needs to read device information from /sys. This setting applies only when you run the Lambda function in a Greengrass container."""
    execution: NotRequired[
        "capo_greengrass.types.function_execution_config.FunctionExecutionConfig"
    ]
    """Configuration related to executing the Lambda function"""
    resource_access_policies: NotRequired[
        "capo_greengrass.types.__list_of_resource_access_policy.__listOfResourceAccessPolicy"
    ]
    """A list of the resources, with their permissions, to which the Lambda function will be granted access. A Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the Lambda function in a Greengrass container."""
    variables: NotRequired["capo_greengrass.types.__map_of__string.__mapOf__string"]
    """Environment variables for the Lambda function's configuration."""

access_sysfs instance-attribute

access_sysfs: NotRequired[__boolean]

If true, the Lambda function is allowed to access the host's /sys folder. Use this when the Lambda function needs to read device information from /sys. This setting applies only when you run the Lambda function in a Greengrass container.

execution instance-attribute

execution: NotRequired[FunctionExecutionConfig]

Configuration related to executing the Lambda function

resource_access_policies instance-attribute

resource_access_policies: NotRequired[__listOfResourceAccessPolicy]

A list of the resources, with their permissions, to which the Lambda function will be granted access. A Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the Lambda function in a Greengrass container.

variables instance-attribute

variables: NotRequired[__mapOf__string]

Environment variables for the Lambda function's configuration.