libZSservicesZSamazonka-greengrassZSamazonka-greengrass
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Greengrass.Types.FunctionRunAsConfig

Description

 
Synopsis

Documentation

data FunctionRunAsConfig Source #

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

See: newFunctionRunAsConfig smart constructor.

Constructors

FunctionRunAsConfig' 

Fields

  • uid :: Maybe Int

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

  • gid :: Maybe Int

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

Instances

Instances details
Eq FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

Read FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

Show FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

Generic FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

Associated Types

type Rep FunctionRunAsConfig :: Type -> Type #

NFData FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

Methods

rnf :: FunctionRunAsConfig -> () #

Hashable FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

ToJSON FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

FromJSON FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

type Rep FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

type Rep FunctionRunAsConfig = D1 ('MetaData "FunctionRunAsConfig" "Amazonka.Greengrass.Types.FunctionRunAsConfig" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "FunctionRunAsConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "uid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "gid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

newFunctionRunAsConfig :: FunctionRunAsConfig Source #

Create a value of FunctionRunAsConfig with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:uid:FunctionRunAsConfig', functionRunAsConfig_uid - The user ID whose permissions are used to run a Lambda function.

$sel:gid:FunctionRunAsConfig', functionRunAsConfig_gid - The group ID whose permissions are used to run a Lambda function.

functionRunAsConfig_uid :: Lens' FunctionRunAsConfig (Maybe Int) Source #

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

functionRunAsConfig_gid :: Lens' FunctionRunAsConfig (Maybe Int) Source #

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