aws-cdk-lib.aws_iotevents.CfnAlarmModel.LambdaProperty

interface LambdaProperty

LanguageType name
.NETAmazon.CDK.AWS.IoTEvents.CfnAlarmModel.LambdaProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnAlarmModel_LambdaProperty
Javasoftware.amazon.awscdk.services.iotevents.CfnAlarmModel.LambdaProperty
Pythonaws_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

NameTypeDescription
functionArnstringThe ARN of the Lambda function that is executed.
payload?IResolvable | PayloadPropertyYou 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 | PayloadProperty (optional)

You can configure the action payload when you send a message to a Lambda function.