amazonka-greengrass-2.0: Amazon Greengrass SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • gid :: Maybe Int

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

  • uid :: Maybe Int

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

Instances

Instances details
FromJSON FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

ToJSON 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 #

Read FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

Show FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

NFData FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

Methods

rnf :: FunctionRunAsConfig -> () #

Eq FunctionRunAsConfig Source # 
Instance details

Defined in Amazonka.Greengrass.Types.FunctionRunAsConfig

Hashable 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" "amazonka-greengrass-2.0-KjUXjyW3l8XyfFjm5ZueR" 'False) (C1 ('MetaCons "FunctionRunAsConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "uid") '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:gid:FunctionRunAsConfig', functionRunAsConfig_gid - The group ID whose permissions are used to run a Lambda function.

$sel:uid:FunctionRunAsConfig', functionRunAsConfig_uid - 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.

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

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