@Stability(value=Stable)
public static interface CfnFunctionDefinitionVersion.RunAsProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;
RunAsProperty runAsProperty = RunAsProperty.builder()
.gid(123)
.uid(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFunctionDefinitionVersion.RunAsProperty.Builder
A builder for
CfnFunctionDefinitionVersion.RunAsProperty |
static class |
CfnFunctionDefinitionVersion.RunAsProperty.Jsii$Proxy
An implementation for
CfnFunctionDefinitionVersion.RunAsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnFunctionDefinitionVersion.RunAsProperty.Builder |
builder() |
default Number |
getGid()
The group ID whose permissions are used to run the Lambda function.
|
default Number |
getUid()
The user ID whose permissions are used to run the Lambda function.
|
@Stability(value=Stable) @Nullable default Number getGid()
You can use the getent group command on your core device to look up the group ID.
@Stability(value=Stable) @Nullable default Number getUid()
You can use the getent passwd command on your core device to look up the user ID.
@Stability(value=Stable) static CfnFunctionDefinitionVersion.RunAsProperty.Builder builder()
Copyright © 2022. All rights reserved.