AWS SDK for C++  1.8.95
AWS SDK for C++
Public Member Functions | List of all members
Aws::Greengrass::Model::FunctionRunAsConfig Class Reference

#include <FunctionRunAsConfig.h>

Public Member Functions

 FunctionRunAsConfig ()
 
 FunctionRunAsConfig (Aws::Utils::Json::JsonView jsonValue)
 
FunctionRunAsConfigoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
int GetGid () const
 
bool GidHasBeenSet () const
 
void SetGid (int value)
 
FunctionRunAsConfigWithGid (int value)
 
int GetUid () const
 
bool UidHasBeenSet () const
 
void SetUid (int value)
 
FunctionRunAsConfigWithUid (int value)
 

Detailed Description

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 Also:

AWS API Reference

Definition at line 35 of file FunctionRunAsConfig.h.

Constructor & Destructor Documentation

◆ FunctionRunAsConfig() [1/2]

Aws::Greengrass::Model::FunctionRunAsConfig::FunctionRunAsConfig ( )

◆ FunctionRunAsConfig() [2/2]

Aws::Greengrass::Model::FunctionRunAsConfig::FunctionRunAsConfig ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ GetGid()

int Aws::Greengrass::Model::FunctionRunAsConfig::GetGid ( ) const
inline

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

Definition at line 47 of file FunctionRunAsConfig.h.

◆ GetUid()

int Aws::Greengrass::Model::FunctionRunAsConfig::GetUid ( ) const
inline

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

Definition at line 68 of file FunctionRunAsConfig.h.

◆ GidHasBeenSet()

bool Aws::Greengrass::Model::FunctionRunAsConfig::GidHasBeenSet ( ) const
inline

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

Definition at line 52 of file FunctionRunAsConfig.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::Greengrass::Model::FunctionRunAsConfig::Jsonize ( ) const

◆ operator=()

FunctionRunAsConfig& Aws::Greengrass::Model::FunctionRunAsConfig::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ SetGid()

void Aws::Greengrass::Model::FunctionRunAsConfig::SetGid ( int  value)
inline

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

Definition at line 57 of file FunctionRunAsConfig.h.

◆ SetUid()

void Aws::Greengrass::Model::FunctionRunAsConfig::SetUid ( int  value)
inline

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

Definition at line 78 of file FunctionRunAsConfig.h.

◆ UidHasBeenSet()

bool Aws::Greengrass::Model::FunctionRunAsConfig::UidHasBeenSet ( ) const
inline

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

Definition at line 73 of file FunctionRunAsConfig.h.

◆ WithGid()

FunctionRunAsConfig& Aws::Greengrass::Model::FunctionRunAsConfig::WithGid ( int  value)
inline

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

Definition at line 62 of file FunctionRunAsConfig.h.

◆ WithUid()

FunctionRunAsConfig& Aws::Greengrass::Model::FunctionRunAsConfig::WithUid ( int  value)
inline

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

Definition at line 83 of file FunctionRunAsConfig.h.


The documentation for this class was generated from the following file: