Skip to content

/AWS1/CL_GGSFUNCDEFEXECCONFIG

Configuration information that specifies how a Lambda function runs.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_isolationmode TYPE /AWS1/GGSFUNCTIONISOLATIONMODE /AWS1/GGSFUNCTIONISOLATIONMODE

Specifies whether the Lambda function runs in a Greengrass container (default) or without containerization. Unless your scenario requires that you run without containerization, we recommend that you run in a Greengrass container. Omit this value to run the Lambda function with the default containerization for the group.

io_runas TYPE REF TO /AWS1/CL_GGSFUNCRUNASCONFIG /AWS1/CL_GGSFUNCRUNASCONFIG

Specifies the user and group whose permissions are used when running the Lambda function. You can specify one or both values to override the default values. We recommend that you avoid running as root unless absolutely necessary to minimize the risk of unintended changes or malicious attacks. To run as root, you must set ''IsolationMode'' to ''NoContainer'' and update config.json in ''greengrass-root/config'' to set ''allowFunctionsToRunAsRoot'' to ''yes''.


Queryable Attributes

IsolationMode

Specifies whether the Lambda function runs in a Greengrass container (default) or without containerization. Unless your scenario requires that you run without containerization, we recommend that you run in a Greengrass container. Omit this value to run the Lambda function with the default containerization for the group.

Accessible with the following methods

Method Description
GET_ISOLATIONMODE() Getter for ISOLATIONMODE, with configurable default
ASK_ISOLATIONMODE() Getter for ISOLATIONMODE w/ exceptions if field has no value
HAS_ISOLATIONMODE() Determine if ISOLATIONMODE has a value

RunAs

Specifies the user and group whose permissions are used when running the Lambda function. You can specify one or both values to override the default values. We recommend that you avoid running as root unless absolutely necessary to minimize the risk of unintended changes or malicious attacks. To run as root, you must set ''IsolationMode'' to ''NoContainer'' and update config.json in ''greengrass-root/config'' to set ''allowFunctionsToRunAsRoot'' to ''yes''.

Accessible with the following methods

Method Description
GET_RUNAS() Getter for RUNAS