Class CfnFunctionDefinition.ExecutionProperty.Builder

java.lang.Object
software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.ExecutionProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionDefinition.ExecutionProperty>
Enclosing interface:
CfnFunctionDefinition.ExecutionProperty

@Stability(Stable) public static final class CfnFunctionDefinition.ExecutionProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnFunctionDefinition.ExecutionProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • isolationMode

      @Stability(Stable) public CfnFunctionDefinition.ExecutionProperty.Builder isolationMode(String isolationMode)
      Parameters:
      isolationMode - The containerization that the Lambda function runs in. Valid values are GreengrassContainer or NoContainer . Typically, this is GreengrassContainer . 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.

      Returns:
      this
    • runAs

      @Stability(Stable) public CfnFunctionDefinition.ExecutionProperty.Builder runAs(IResolvable runAs)
      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 .

      Returns:
      this
    • runAs

      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 .

      Returns:
      this
    • build

      @Stability(Stable) public CfnFunctionDefinition.ExecutionProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnFunctionDefinition.ExecutionProperty>
      Returns:
      a new instance of CfnFunctionDefinition.ExecutionProperty
      Throws:
      NullPointerException - if any required attribute was not provided