interface LambdaProperty
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.IoTEvents.CfnDetectorModel.LambdaProperty | 
|  Java | software.amazon.awscdk.services.iotevents.CfnDetectorModel.LambdaProperty | 
|  Python | aws_cdk.aws_iotevents.CfnDetectorModel.LambdaProperty | 
|  TypeScript | @aws-cdk/aws-iotevents»CfnDetectorModel»LambdaProperty | 
Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iotevents from '@aws-cdk/aws-iotevents';
const lambdaProperty: iotevents.CfnDetectorModel.LambdaProperty = {
  functionArn: 'functionArn',
  // the properties below are optional
  payload: {
    contentExpression: 'contentExpression',
    type: 'type',
  },
};
Properties
| Name | Type | Description | 
|---|---|---|
| function | string | The ARN of the Lambda function that is executed. | 
| payload? | IResolvable | Payload | You can configure the action payload when you send a message to a Lambda function. | 
functionArn
Type:
string
The ARN of the Lambda function that is executed.
payload?
Type:
IResolvable | Payload
(optional)
You can configure the action payload when you send a message to a Lambda function.
