Class CfnFunctionDefinitionVersion.EnvironmentProperty
The environment configuration for a Lambda function on the AWS IoT Greengrass core.
Inheritance
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.AWS.Greengrass.dll
Syntax (csharp)
public class EnvironmentProperty : Object, CfnFunctionDefinitionVersion.IEnvironmentProperty
Syntax (vb)
Public Class EnvironmentProperty
Inherits Object
Implements CfnFunctionDefinitionVersion.IEnvironmentProperty
Remarks
In an AWS CloudFormation template, Environment
is a property of the FunctionConfiguration
property type.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var variables;
var environmentProperty = new EnvironmentProperty {
AccessSysfs = false,
Execution = new ExecutionProperty {
IsolationMode = "isolationMode",
RunAs = new RunAsProperty {
Gid = 123,
Uid = 123
}
},
ResourceAccessPolicies = new [] { new ResourceAccessPolicyProperty {
ResourceId = "resourceId",
// the properties below are optional
Permission = "permission"
} },
Variables = variables
};
Synopsis
Constructors
EnvironmentProperty() |
Properties
AccessSysfs | Indicates whether the function is allowed to access the |
Execution | Settings for the Lambda execution environment in AWS IoT Greengrass . |
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. |
Variables | Environment variables for the Lambda function. |
Constructors
EnvironmentProperty()
public EnvironmentProperty()
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
.
public object AccessSysfs { get; set; }
Property Value
System.Object
Remarks
This property applies only to Lambda functions that run in a Greengrass container.
Execution
Settings for the Lambda execution environment in AWS IoT Greengrass .
public object Execution { get; set; }
Property Value
System.Object
Remarks
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.
public object ResourceAccessPolicies { get; set; }
Property Value
System.Object
Remarks
This property applies only to Lambda functions that run in a Greengrass container.
Variables
Environment variables for the Lambda function.
public object Variables { get; set; }
Property Value
System.Object