AWS::Greengrass::FunctionDefinitionVersion Environment
The environment configuration for a Lambda function on the Amazon IoT Greengrass core.
In an
Amazon CloudFormation template, Environment
is a property of the FunctionConfiguration
property type.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "AccessSysfs" :
Boolean
, "Execution" :Execution
, "ResourceAccessPolicies" :[ ResourceAccessPolicy, ... ]
, "Variables" :Json
}
YAML
AccessSysfs:
Boolean
Execution:Execution
ResourceAccessPolicies:- ResourceAccessPolicy
Variables:Json
Properties
AccessSysfs
-
Indicates whether the function is allowed to access the
/sys
directory on the core device, which allows the read device information from/sys
.Note
This property applies only to Lambda functions that run in a Greengrass container.
Required: No
Type: Boolean
Update requires: Replacement
Execution
-
Settings for the Lambda execution environment in Amazon IoT Greengrass.
Required: No
Type: Execution
Update requires: Replacement
ResourceAccessPolicies
-
A list of the resources in the group that the function can access, with the corresponding read-only or read-write permissions. The maximum is 10 resources.
Note
This property applies only to Lambda functions that run in a Greengrass container.
Required: No
Type: Array of ResourceAccessPolicy
Update requires: Replacement
Variables
-
Environment variables for the Lambda function.
Required: No
Type: Json
Update requires: Replacement
See also
-
FunctionConfigurationEnvironment in the Amazon IoT Greengrass Version 1 API Reference