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

Class: Aws::Greengrass::Types::FunctionRunAsConfig

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

Overview

Note:

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

{
  gid: 1,
  uid: 1,
}

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#gidInteger

The group ID whose permissions are used to run a Lambda function.

Returns:

  • (Integer)

    The group ID whose permissions are used to run a Lambda function.

#uidInteger

The user ID whose permissions are used to run a Lambda function.

Returns:

  • (Integer)

    The user ID whose permissions are used to run a Lambda function.