@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:47.185Z")
public abstract class IotSql
extends software.amazon.jsii.JsiiObject
Example:
Bucket bucket = new Bucket(this, "MyBucket"); TopicRule.Builder.create(this, "TopicRule") .sql(IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'")) .actions(List.of( S3PutObjectAction.Builder.create(bucket) .accessControl(BucketAccessControl.PUBLIC_READ) .build())) .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(java.lang.String sql)
(experimental) Uses the original SQL version built on 2015-10-08.
|
static IotSql |
fromStringAsVer20160323(java.lang.String sql)
(experimental) Uses the SQL version built on 2016-03-23.
|
static IotSql |
fromStringAsVerNewestUnstable(java.lang.String sql)
(experimental) Uses the most recent beta SQL version.
|
protected IotSql(software.amazon.jsii.JsiiObjectRef objRef)
protected IotSql(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected IotSql()
public static IotSql fromStringAsVer20151008(java.lang.String sql)
sql
- The actual SQL-like syntax query. This parameter is required.public static IotSql fromStringAsVer20160323(java.lang.String sql)
sql
- The actual SQL-like syntax query. This parameter is required.public static IotSql fromStringAsVerNewestUnstable(java.lang.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.public abstract IotSqlConfig bind(software.constructs.Construct scope)
scope
- This parameter is required.