Class CfnFunctionDefinition.ExecutionProperty.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnFunctionDefinition.ExecutionProperty>
- Enclosing interface:
- CfnFunctionDefinition.ExecutionProperty
CfnFunctionDefinition.ExecutionProperty- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.isolationMode(String isolationMode) Sets the value ofCfnFunctionDefinition.ExecutionProperty.getIsolationMode()runAs(IResolvable runAs) Sets the value ofCfnFunctionDefinition.ExecutionProperty.getRunAs()Sets the value ofCfnFunctionDefinition.ExecutionProperty.getRunAs()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
isolationMode@Stability(Stable) public CfnFunctionDefinition.ExecutionProperty.Builder isolationMode(String isolationMode) Sets the value ofCfnFunctionDefinition.ExecutionProperty.getIsolationMode()- Parameters:
- isolationMode- The containerization that the Lambda function runs in. Valid values are- GreengrassContaineror- NoContainer. Typically, this is- GreengrassContainer. For more information, see Containerization in the Developer Guide .- When set on the DefaultConfigproperty 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 Environmentproperty 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
 
- 
runAsSets the value ofCfnFunctionDefinition.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 DefaultConfigproperty 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 Environmentproperty 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 CfnFunctionDefinition.ExecutionProperty.Builder runAs(CfnFunctionDefinition.RunAsProperty runAs) Sets the value ofCfnFunctionDefinition.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 DefaultConfigproperty 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 Environmentproperty 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
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnFunctionDefinition.ExecutionProperty>
- Returns:
- a new instance of CfnFunctionDefinition.ExecutionProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-