@Generated(value="jsii-pacmak/1.78.1 (build 878761e)", date="2023-04-17T22:38:13.262Z") @Stability(value=Experimental) public class LambdaFunctionAction extends software.amazon.jsii.JsiiObject implements IAction
Example:
Function func = Function.Builder.create(this, "MyFunction")
.runtime(Runtime.NODEJS_14_X)
.handler("index.handler")
.code(Code.fromInline("\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };"))
.build();
TopicRule.Builder.create(this, "TopicRule")
.sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'"))
.actions(List.of(new LambdaFunctionAction(func)))
.build();
software.amazon.jsii.JsiiObject.InitializationModeIAction.Jsii$Default, IAction.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
LambdaFunctionAction(IFunction func) |
protected |
LambdaFunctionAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LambdaFunctionAction(software.amazon.jsii.JsiiObjectRef objRef) |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected LambdaFunctionAction(software.amazon.jsii.JsiiObjectRef objRef)
protected LambdaFunctionAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public LambdaFunctionAction(@NotNull
IFunction func)
func - The lambda function to be invoked by this action. This parameter is required.Copyright © 2023. All rights reserved.