Class IotSql
(experimental) Defines AWS IoT SQL.
Inheritance
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.AWS.IoT.dll
Syntax (csharp)
public abstract class IotSql : DeputyBase
Syntax (vb)
Public MustInherit Class IotSql
Inherits DeputyBase
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var bucket = new Bucket(this, "MyBucket");
new TopicRule(this, "TopicRule", new TopicRuleProps {
Sql = IotSql.FromStringAsVer20160323("SELECT * FROM 'device/+/data'"),
Actions = new [] {
new S3PutObjectAction(bucket, new S3PutObjectActionProps {
AccessControl = BucketAccessControl.PUBLIC_READ
}) }
});
Synopsis
Constructors
IotSql() | |
IotSql(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
IotSql(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | (experimental) Returns the IoT SQL configuration. |
FromStringAsVer20151008(String) | (experimental) Uses the original SQL version built on 2015-10-08. |
FromStringAsVer20160323(String) | (experimental) Uses the SQL version built on 2016-03-23. |
FromStringAsVerNewestUnstable(String) | (experimental) Uses the most recent beta SQL version. |
Constructors
IotSql()
protected IotSql()
Remarks
Stability: Experimental
IotSql(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected IotSql(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
IotSql(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected IotSql(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct)
(experimental) Returns the IoT SQL configuration.
public abstract IIotSqlConfig Bind(Construct scope)
Parameters
- scope Constructs.Construct
Returns
Remarks
Stability: Experimental
FromStringAsVer20151008(String)
(experimental) Uses the original SQL version built on 2015-10-08.
public static IotSql FromStringAsVer20151008(string sql)
Parameters
- sql System.String
The actual SQL-like syntax query.
Returns
Instance of IotSql
Remarks
Stability: Experimental
FromStringAsVer20160323(String)
(experimental) Uses the SQL version built on 2016-03-23.
public static IotSql FromStringAsVer20160323(string sql)
Parameters
- sql System.String
The actual SQL-like syntax query.
Returns
Instance of IotSql
Remarks
Stability: Experimental
FromStringAsVerNewestUnstable(String)
(experimental) Uses the most recent beta SQL version.
public static IotSql FromStringAsVerNewestUnstable(string sql)
Parameters
- sql System.String
The actual SQL-like syntax query.
Returns
Instance of IotSql
Remarks
If you use this version, it might introduce breaking changes to your rules.
Stability: Experimental