AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Greengrass::Types::FunctionDefaultExecutionConfig

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing FunctionDefaultExecutionConfig as input to an Aws::Client method, you can use a vanilla Hash:

{
  isolation_mode: "GreengrassContainer", # accepts GreengrassContainer, NoContainer
  run_as: {
    gid: 1,
    uid: 1,
  },
}

Configuration information that specifies how a Lambda function runs.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#isolation_modeString

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.

Possible values:

  • GreengrassContainer
  • NoContainer

Returns:

  • (String)

    Specifies whether the Lambda function runs in a Greengrass container (default) or without containerization.

#run_asTypes::FunctionRunAsConfig

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''.

Returns: