aws-cdk-lib.aws_greengrassv2.CfnComponentVersion.LambdaFunctionRecipeSourceProperty

interface LambdaFunctionRecipeSourceProperty

LanguageType name
.NETAmazon.CDK.AWS.GreengrassV2.CfnComponentVersion.LambdaFunctionRecipeSourceProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsgreengrassv2#CfnComponentVersion_LambdaFunctionRecipeSourceProperty
Javasoftware.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaFunctionRecipeSourceProperty
Pythonaws_cdk.aws_greengrassv2.CfnComponentVersion.LambdaFunctionRecipeSourceProperty
TypeScript aws-cdk-lib » aws_greengrassv2 » CfnComponentVersion » LambdaFunctionRecipeSourceProperty

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

Example

// 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

NameTypeDescription
componentDependencies?IResolvable | { [string]: IResolvable | ComponentDependencyRequirementProperty }The component versions on which this Lambda function component depends.
componentLambdaParameters?IResolvable | LambdaExecutionParametersPropertyThe system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
componentName?stringThe name of the component.
componentPlatforms?IResolvable | IResolvable | ComponentPlatformProperty[]The platforms that the component version supports.
componentVersion?stringThe version of the component.
lambdaArn?stringThe ARN of the Lambda function.

componentDependencies?

Type: IResolvable | { [string]: IResolvable | ComponentDependencyRequirementProperty } (optional)

The component versions on which this Lambda function component depends.


componentLambdaParameters?

Type: IResolvable | LambdaExecutionParametersProperty (optional)

The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.


componentName?

Type: string (optional)

The name of the component.

Defaults to the name of the Lambda function.


componentPlatforms?

Type: IResolvable | IResolvable | ComponentPlatformProperty[] (optional)

The platforms that the component version supports.


componentVersion?

Type: string (optional)

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?

Type: string (optional)

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 .