Skip to content
v2.278.0

LambdaActionProperty ​

Struct External

Describes an action to invoke a Lambda function.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const lambdaActionProperty: iot.CfnTopicRule.LambdaActionProperty = {
  functionArn: 'functionArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot

lambda_action_property = iot.CfnTopicRule.LambdaActionProperty(
    function_arn="functionArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;

LambdaActionProperty lambdaActionProperty = LambdaActionProperty.builder()
        .functionArn("functionArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;

var lambdaActionProperty = new LambdaActionProperty {
    FunctionArn = "functionArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

lambdaActionProperty := &LambdaActionProperty{
	FunctionArn: jsii.String("functionArn"),
}

Properties ​

functionArnoptionalstringfunction_arnoptionalstrfunctionArnoptionalStringFunctionArnoptionalstringFunctionArnoptional*string #
The ARN of the Lambda function.