interface LambdaProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.IoTEvents.CfnDetectorModel.LambdaProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnDetectorModel_LambdaProperty |
![]() | software.amazon.awscdk.services.iotevents.CfnDetectorModel.LambdaProperty |
![]() | aws_cdk.aws_iotevents.CfnDetectorModel.LambdaProperty |
![]() | aws-cdk-lib » 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 { aws_iotevents as iotevents } from 'aws-cdk-lib';
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.