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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb

Overview

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#gidInteger

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

Returns:

  • (Integer)


1859
1860
1861
1862
1863
1864
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1859

class FunctionRunAsConfig < Struct.new(
  :gid,
  :uid)
  SENSITIVE = []
  include Aws::Structure
end

#uidInteger

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

Returns:

  • (Integer)


1859
1860
1861
1862
1863
1864
# File 'gems/aws-sdk-greengrass/lib/aws-sdk-greengrass/types.rb', line 1859

class FunctionRunAsConfig < Struct.new(
  :gid,
  :uid)
  SENSITIVE = []
  include Aws::Structure
end