Skip to content
v2.278.0

LambdaLinuxProcessParamsProperty Struct ​

Contains parameters for a Linux process that contains an AWS Lambda function.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrassv2 as greengrassv2 } from 'aws-cdk-lib';
const lambdaLinuxProcessParamsProperty: greengrassv2.CfnComponentVersion.LambdaLinuxProcessParamsProperty = {
  containerParams: {
    devices: [{
      addGroupOwner: false,
      path: 'path',
      permission: 'permission',
    }],
    memorySizeInKb: 123,
    mountRoSysfs: false,
    volumes: [{
      addGroupOwner: false,
      destinationPath: 'destinationPath',
      permission: 'permission',
      sourcePath: 'sourcePath',
    }],
  },
  isolationMode: 'isolationMode',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_greengrassv2 as greengrassv2

lambda_linux_process_params_property = greengrassv2.CfnComponentVersion.LambdaLinuxProcessParamsProperty(
    container_params=greengrassv2.CfnComponentVersion.LambdaContainerParamsProperty(
        devices=[greengrassv2.CfnComponentVersion.LambdaDeviceMountProperty(
            add_group_owner=False,
            path="path",
            permission="permission"
        )],
        memory_size_in_kb=123,
        mount_ro_sysfs=False,
        volumes=[greengrassv2.CfnComponentVersion.LambdaVolumeMountProperty(
            add_group_owner=False,
            destination_path="destinationPath",
            permission="permission",
            source_path="sourcePath"
        )]
    ),
    isolation_mode="isolationMode"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrassv2.*;

LambdaLinuxProcessParamsProperty lambdaLinuxProcessParamsProperty = LambdaLinuxProcessParamsProperty.builder()
        .containerParams(LambdaContainerParamsProperty.builder()
                .devices(List.of(LambdaDeviceMountProperty.builder()
                        .addGroupOwner(false)
                        .path("path")
                        .permission("permission")
                        .build()))
                .memorySizeInKb(123)
                .mountRoSysfs(false)
                .volumes(List.of(LambdaVolumeMountProperty.builder()
                        .addGroupOwner(false)
                        .destinationPath("destinationPath")
                        .permission("permission")
                        .sourcePath("sourcePath")
                        .build()))
                .build())
        .isolationMode("isolationMode")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GreengrassV2;

var lambdaLinuxProcessParamsProperty = new LambdaLinuxProcessParamsProperty {
    ContainerParams = new LambdaContainerParamsProperty {
        Devices = new [] { new LambdaDeviceMountProperty {
            AddGroupOwner = false,
            Path = "path",
            Permission = "permission"
        } },
        MemorySizeInKb = 123,
        MountRoSysfs = false,
        Volumes = new [] { new LambdaVolumeMountProperty {
            AddGroupOwner = false,
            DestinationPath = "destinationPath",
            Permission = "permission",
            SourcePath = "sourcePath"
        } }
    },
    IsolationMode = "isolationMode"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

lambdaLinuxProcessParamsProperty := &LambdaLinuxProcessParamsProperty{
	ContainerParams: &LambdaContainerParamsProperty{
		Devices: []interface{}{
			&LambdaDeviceMountProperty{
				AddGroupOwner: jsii.Boolean(false),
				Path: jsii.String("path"),
				Permission: jsii.String("permission"),
			},
		},
		MemorySizeInKb: jsii.Number(123),
		MountRoSysfs: jsii.Boolean(false),
		Volumes: []interface{}{
			&LambdaVolumeMountProperty{
				AddGroupOwner: jsii.Boolean(false),
				DestinationPath: jsii.String("destinationPath"),
				Permission: jsii.String("permission"),
				SourcePath: jsii.String("sourcePath"),
			},
		},
	},
	IsolationMode: jsii.String("isolationMode"),
}

Properties ​

containerParamsoptionalIResolvable | CfnComponentVersion.LambdaContainerParamsPropertycontainer_paramsoptionaltyping.Union[IResolvable, LambdaContainerParamsProperty]containerParamsoptionalIResolvableContainerParamsoptionalIResolvableContainerParamsoptionalinterface{} #
The parameters for the container in which the Lambda function runs.
isolationModeoptionalstringisolation_modeoptionalstrisolationModeoptionalStringIsolationModeoptionalstringIsolationModeoptional*string #
The isolation mode for the process that contains the Lambda function.

The process can run in an isolated runtime environment inside the AWS IoT Greengrass container, or as a regular process outside any container.

Default: GreengrassContainer