Interface CfnFunctionDefinitionVersion.IExecutionProperty
Configuration settings for the Lambda execution environment on the AWS IoT Greengrass core.
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IExecutionProperty
Syntax (vb)
Public Interface IExecutionProperty
Remarks
In an AWS CloudFormation template, Execution
is a property of the DefaultConfig
property type for a function definition version and the Environment
property type for a function.
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 executionProperty = new ExecutionProperty {
IsolationMode = "isolationMode",
RunAs = new RunAsProperty {
Gid = 123,
Uid = 123
}
};
Synopsis
Properties
IsolationMode | The containerization that the Lambda function runs in. |
RunAs | The user and group permissions used to run the Lambda function. |
Properties
IsolationMode
The containerization that the Lambda function runs in.
virtual string IsolationMode { get; }
Property Value
System.String
Remarks
Valid values are GreengrassContainer
or NoContainer
. Typically, this is GreengrassContainer
. For more information, see Containerization in the Developer Guide .
We recommend that you run in a Greengrass container unless your business case requires that you run without containerization.
RunAs
The user and group permissions used to run the Lambda function.
virtual object RunAs { get; }
Property Value
System.Object
Remarks
Typically, this is the ggc_user and ggc_group. For more information, see Run as in the Developer Guide .
Running as the root user increases risks to your data and device. Do not run as root (UID/GID=0) unless your business case requires it. For more information and requirements, see <a href="https://docs.aws.amazon.com/greengrass/v1/developerguide/lambda-group-config.html#lambda-running-as-root">Running a Lambda Function as Root</a> .