Show / Hide Table of Contents

Class CfnFunctionDefinitionVersion.RunAsProperty

The user and group permissions used to run the Lambda function.

Inheritance
System.Object
CfnFunctionDefinitionVersion.RunAsProperty
Implements
CfnFunctionDefinitionVersion.IRunAsProperty
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.AWS.Greengrass.dll
Syntax (csharp)
public class RunAsProperty : Object, CfnFunctionDefinitionVersion.IRunAsProperty
Syntax (vb)
Public Class RunAsProperty
    Inherits Object
    Implements CfnFunctionDefinitionVersion.IRunAsProperty
Remarks

This setting overrides the default access identity that's specified for the group (by default, ggc_user and ggc_group). You can override the user, group, or both. For more information, see Run as in the Developer Guide .

Running as the root user increases risks to your data and device. Do not run as root (UID/GID=0) unless your business case requires it. For more information and requirements, see Running a Lambda Function as Root .

In an AWS CloudFormation template, RunAs is a property of the Execution property type.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-runas.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;

var runAsProperty = new RunAsProperty {
    Gid = 123,
    Uid = 123
};

Synopsis

Constructors

RunAsProperty()

Properties

Gid

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

Uid

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

Constructors

RunAsProperty()

public RunAsProperty()

Properties

Gid

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

public Nullable<double> Gid { get; set; }
Property Value

System.Nullable<System.Double>

Remarks

You can use the getent group command on your core device to look up the group ID.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-runas.html#cfn-greengrass-functiondefinitionversion-runas-gid

Uid

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

public Nullable<double> Uid { get; set; }
Property Value

System.Nullable<System.Double>

Remarks

You can use the getent passwd command on your core device to look up the user ID.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-runas.html#cfn-greengrass-functiondefinitionversion-runas-uid

Implements

CfnFunctionDefinitionVersion.IRunAsProperty
Back to top Generated by DocFX