# LambdaFunctionRecipeSourceProperty

Contains information about an AWS Lambda function to import to create a component.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 lambdaFunctionRecipeSourceProperty: greengrassv2.CfnComponentVersion.LambdaFunctionRecipeSourceProperty = {
  componentDependencies: {
    componentDependenciesKey: {
      dependencyType: 'dependencyType',
      versionRequirement: 'versionRequirement',
    },
  },
  componentLambdaParameters: {
    environmentVariables: {
      environmentVariablesKey: 'environmentVariables',
    },
    eventSources: [{
      topic: 'topic',
      type: 'type',
    }],
    execArgs: ['execArgs'],
    inputPayloadEncodingType: 'inputPayloadEncodingType',
    linuxProcessParams: {
      containerParams: {
        devices: [{
          addGroupOwner: false,
          path: 'path',
          permission: 'permission',
        }],
        memorySizeInKb: 123,
        mountRoSysfs: false,
        volumes: [{
          addGroupOwner: false,
          destinationPath: 'destinationPath',
          permission: 'permission',
          sourcePath: 'sourcePath',
        }],
      },
      isolationMode: 'isolationMode',
    },
    maxIdleTimeInSeconds: 123,
    maxInstancesCount: 123,
    maxQueueSize: 123,
    pinned: false,
    statusTimeoutInSeconds: 123,
    timeoutInSeconds: 123,
  },
  componentName: 'componentName',
  componentPlatforms: [{
    attributes: {
      attributesKey: 'attributes',
    },
    name: 'name',
  }],
  componentVersion: 'componentVersion',
  lambdaArn: 'lambdaArn',
};
```

## Properties

- `componentDependencies`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentVersion.ComponentDependencyRequirementProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_greengrassv2.CfnComponentVersion.ComponentDependencyRequirementProperty.html) } — The component versions on which this Lambda function component depends.

- `componentLambdaParameters`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentVersion.LambdaExecutionParametersProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_greengrassv2.CfnComponentVersion.LambdaExecutionParametersProperty.html) — The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.

- `componentName`: string — The name of the component.

  Defaults to the name of the Lambda function.

- `componentPlatforms`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponentVersion.ComponentPlatformProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_greengrassv2.CfnComponentVersion.ComponentPlatformProperty.html)[] — The platforms that the component version supports.

- `componentVersion`: string — The version of the component.

  Defaults to the version of the Lambda function as a semantic version. For example, if your function version is `3` , the component version becomes `3.0.0` .

- `lambdaArn`: string — The ARN of the Lambda function.

  The ARN must include the version of the function to import. You can't use version aliases like `$LATEST` .
