Skip to content
v2.275.0

LambdaFunctionRecipeSourceProperty Struct ​

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

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 ​

componentDependenciesoptionalIResolvable | { [key: string]: IResolvable | CfnComponentVersion.ComponentDependencyRequirementProperty }component_dependenciesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, ComponentDependencyRequirementProperty]]]componentDependenciesoptionalIResolvableComponentDependenciesoptionalIResolvableComponentDependenciesoptionalinterface{}#
The component versions on which this Lambda function component depends.
componentLambdaParametersoptionalIResolvable | CfnComponentVersion.LambdaExecutionParametersPropertycomponent_lambda_parametersoptionaltyping.Union[IResolvable, LambdaExecutionParametersProperty]componentLambdaParametersoptionalIResolvableComponentLambdaParametersoptionalIResolvableComponentLambdaParametersoptionalinterface{}#
The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
componentNameoptionalstringcomponent_nameoptionalstrcomponentNameoptionalStringComponentNameoptionalstringComponentNameoptional*string#
The name of the component.

Defaults to the name of the Lambda function.

componentPlatformsoptionalIResolvable | IResolvable | CfnComponentVersion.ComponentPlatformProperty[]component_platformsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ComponentPlatformProperty]]]componentPlatformsoptionalIResolvableComponentPlatformsoptionalIResolvableComponentPlatformsoptionalinterface{}#
The platforms that the component version supports.
componentVersionoptionalstringcomponent_versionoptionalstrcomponentVersionoptionalStringComponentVersionoptionalstringComponentVersionoptional*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 .

lambdaArnoptionalstringlambda_arnoptionalstrlambdaArnoptionalStringLambdaArnoptionalstringLambdaArnoptional*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 .