Show / Hide Table of Contents

Class CfnFunctionDefinitionPropsMixin.RunAsProperty

The access identity whose permissions are used to run the Lambda function.

Inheritance
object
CfnFunctionDefinitionPropsMixin.RunAsProperty
Implements
CfnFunctionDefinitionPropsMixin.IRunAsProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.Mixins.Preview.AWS.Greengrass.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnFunctionDefinitionPropsMixin.RunAsProperty : CfnFunctionDefinitionPropsMixin.IRunAsProperty
Syntax (vb)
Public Class CfnFunctionDefinitionPropsMixin.RunAsProperty Implements CfnFunctionDefinitionPropsMixin.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 <a href="https://docs.aws.amazon.com/greengrass/v1/developerguide/lambda-group-config.html#lambda-running-as-root">Running a Lambda Function as Root</a> .

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-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.Mixins.Preview.AWS.Greengrass.Mixins;

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

Synopsis

Constructors

RunAsProperty()

The access identity whose permissions are used to run the Lambda function.

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()

The access identity whose permissions are used to run the Lambda function.

public RunAsProperty()
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 <a href="https://docs.aws.amazon.com/greengrass/v1/developerguide/lambda-group-config.html#lambda-running-as-root">Running a Lambda Function as Root</a> .

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-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.Mixins.Preview.AWS.Greengrass.Mixins;

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

Properties

Gid

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

public double? Gid { get; set; }
Property Value

double?

Remarks

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

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

Uid

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

public double? Uid { get; set; }
Property Value

double?

Remarks

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

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

Implements

CfnFunctionDefinitionPropsMixin.IRunAsProperty
Back to top Generated by DocFX