interface LambdaProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoTEvents.CfnAlarmModel.LambdaProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnAlarmModel_LambdaProperty |
Java | software.amazon.awscdk.services.iotevents.CfnAlarmModel.LambdaProperty |
Python | aws_cdk.aws_iotevents.CfnAlarmModel.LambdaProperty |
TypeScript | aws-cdk-lib » aws_iotevents » CfnAlarmModel » 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.CfnAlarmModel.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.