interface LambdaProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoTEvents.CfnAlarmModel.LambdaProperty |
Java | software.amazon.awscdk.services.iotevents.CfnAlarmModel.LambdaProperty |
Python | aws_cdk.aws_iotevents.CfnAlarmModel.LambdaProperty |
TypeScript | @aws-cdk/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 * as iotevents from '@aws-cdk/aws-iotevents';
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.