@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:10.307Z") @Stability(value=Experimental) public abstract class IotSql extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
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();
| Modifier | Constructor and Description |
|---|---|
protected |
IotSql() |
protected |
IotSql(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IotSql(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract IotSqlConfig |
bind(software.constructs.Construct scope)
(experimental) Returns the IoT SQL configuration.
|
static IotSql |
fromStringAsVer20151008(String sql)
(experimental) Uses the original SQL version built on 2015-10-08.
|
static IotSql |
fromStringAsVer20160323(String sql)
(experimental) Uses the SQL version built on 2016-03-23.
|
static IotSql |
fromStringAsVerNewestUnstable(String sql)
(experimental) Uses the most recent beta SQL version.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected IotSql(software.amazon.jsii.JsiiObjectRef objRef)
protected IotSql(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected IotSql()
@Stability(value=Experimental) @NotNull public static IotSql fromStringAsVer20151008(@NotNull String sql)
sql - The actual SQL-like syntax query. This parameter is required.@Stability(value=Experimental) @NotNull public static IotSql fromStringAsVer20160323(@NotNull String sql)
sql - The actual SQL-like syntax query. This parameter is required.@Stability(value=Experimental) @NotNull public static IotSql fromStringAsVerNewestUnstable(@NotNull String sql)
If you use this version, it might introduce breaking changes to your rules.
sql - The actual SQL-like syntax query. This parameter is required.@Stability(value=Experimental) @NotNull public abstract IotSqlConfig bind(@NotNull software.constructs.Construct scope)
scope - This parameter is required.Copyright © 2022. All rights reserved.