interface EnvironmentProperty
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Greengrass.CfnFunctionDefinition.EnvironmentProperty | 
|  Java | software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.EnvironmentProperty | 
|  Python | aws_cdk.aws_greengrass.CfnFunctionDefinition.EnvironmentProperty | 
|  TypeScript | @aws-cdk/aws-greengrass»CfnFunctionDefinition»EnvironmentProperty | 
The environment configuration for a Lambda function on the AWS IoT Greengrass core.
In an AWS CloudFormation template, Environment is a property of the FunctionConfiguration property type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as greengrass from '@aws-cdk/aws-greengrass';
declare const variables: any;
const environmentProperty: greengrass.CfnFunctionDefinition.EnvironmentProperty = {
  accessSysfs: false,
  execution: {
    isolationMode: 'isolationMode',
    runAs: {
      gid: 123,
      uid: 123,
    },
  },
  resourceAccessPolicies: [{
    resourceId: 'resourceId',
    // the properties below are optional
    permission: 'permission',
  }],
  variables: variables,
};
Properties
| Name | Type | Description | 
|---|---|---|
| access | boolean | IResolvable | Indicates whether the function is allowed to access the /sysdirectory on the core device, which allows the read device information from/sys. | 
| execution? | IResolvable | Execution | Settings for the Lambda execution environment in AWS IoT Greengrass . | 
| resource | IResolvable | IResolvable | Resource[] | 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. | 
| variables? | any | Environment variables for the Lambda function. | 
accessSysfs?
Type:
boolean | IResolvable
(optional)
Indicates whether the function is allowed to access the /sys directory on the core device, which allows the read device information from /sys .
This property applies only to Lambda functions that run in a Greengrass container.
execution?
Type:
IResolvable | Execution
(optional)
Settings for the Lambda execution environment in AWS IoT Greengrass .
resourceAccessPolicies?
Type:
IResolvable | IResolvable | Resource[]
(optional)
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.
This property applies only for Lambda functions that run in a Greengrass container.
variables?
Type:
any
(optional)
Environment variables for the Lambda function.
