Class CfnFunctionDefinitionVersion.ExecutionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionDefinitionVersion.ExecutionProperty>
- Enclosing interface:
CfnFunctionDefinitionVersion.ExecutionProperty
CfnFunctionDefinitionVersion.ExecutionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.isolationMode
(String isolationMode) Sets the value ofCfnFunctionDefinitionVersion.ExecutionProperty.getIsolationMode()
runAs
(IResolvable runAs) Sets the value ofCfnFunctionDefinitionVersion.ExecutionProperty.getRunAs()
Sets the value ofCfnFunctionDefinitionVersion.ExecutionProperty.getRunAs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isolationMode
@Stability(Stable) public CfnFunctionDefinitionVersion.ExecutionProperty.Builder isolationMode(String isolationMode) Sets the value ofCfnFunctionDefinitionVersion.ExecutionProperty.getIsolationMode()
- Parameters:
isolationMode
- The containerization that the Lambda function runs in. Valid values areGreengrassContainer
orNoContainer
. Typically, this isGreengrassContainer
. For more information, see Containerization in the Developer Guide .- When set on the
DefaultConfig
property of a function definition version, this setting is used as the default containerization for all Lambda functions in the function definition version. - When set on the
Environment
property of a function, this setting applies to the individual function and overrides the default. Omit this value to run the function with the default containerization.
We recommend that you run in a Greengrass container unless your business case requires that you run without containerization.
- When set on the
- Returns:
this
-
runAs
@Stability(Stable) public CfnFunctionDefinitionVersion.ExecutionProperty.Builder runAs(IResolvable runAs) Sets the value ofCfnFunctionDefinitionVersion.ExecutionProperty.getRunAs()
- Parameters:
runAs
- The user and group permissions used to run the Lambda function. Typically, this is the ggc_user and ggc_group. For more information, see Run as in the Developer Guide .- When set on the
DefaultConfig
property of a function definition version, this setting is used as the default access identity for all Lambda functions in the function definition version. - When set on the
Environment
property of a function, this setting applies to the individual function and overrides the default. You can override the user, group, or both. Omit this value to run the function with the default permissions.
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 .
- When set on the
- Returns:
this
-
runAs
@Stability(Stable) public CfnFunctionDefinitionVersion.ExecutionProperty.Builder runAs(CfnFunctionDefinitionVersion.RunAsProperty runAs) Sets the value ofCfnFunctionDefinitionVersion.ExecutionProperty.getRunAs()
- Parameters:
runAs
- The user and group permissions used to run the Lambda function. Typically, this is the ggc_user and ggc_group. For more information, see Run as in the Developer Guide .- When set on the
DefaultConfig
property of a function definition version, this setting is used as the default access identity for all Lambda functions in the function definition version. - When set on the
Environment
property of a function, this setting applies to the individual function and overrides the default. You can override the user, group, or both. Omit this value to run the function with the default permissions.
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 .
- When set on the
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunctionDefinitionVersion.ExecutionProperty>
- Returns:
- a new instance of
CfnFunctionDefinitionVersion.ExecutionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-