java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iot.alpha.IotSql
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:15.804Z") @Stability(Experimental) public abstract class IotSql extends software.amazon.jsii.JsiiObject
(experimental) Defines AWS IoT SQL.

Example:

 import software.amazon.awscdk.services.sns.*;
 Topic topic = new Topic(this, "MyTopic");
 TopicRule topicRule = TopicRule.Builder.create(this, "TopicRule")
         .sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, year, month, day FROM 'device/+/data'"))
         .actions(List.of(
             SnsTopicAction.Builder.create(topic)
                     .messageFormat(SnsActionMessageFormat.JSON)
                     .build()))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    IotSql(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    IotSql(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract IotSqlConfig
    bind(software.constructs.Construct scope)
    (experimental) Returns the IoT SQL configuration.
    static IotSql
    (experimental) Uses the original SQL version built on 2015-10-08.
    static IotSql
    (experimental) Uses the SQL version built on 2016-03-23.
    static IotSql
    (experimental) Uses the most recent beta SQL version.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • IotSql

      protected IotSql(software.amazon.jsii.JsiiObjectRef objRef)
    • IotSql

      protected IotSql(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • IotSql

      @Stability(Experimental) protected IotSql()
  • Method Details

    • fromStringAsVer20151008

      @Stability(Experimental) @NotNull public static IotSql fromStringAsVer20151008(@NotNull String sql)
      (experimental) Uses the original SQL version built on 2015-10-08.

      Parameters:
      sql - The actual SQL-like syntax query. This parameter is required.
      Returns:
      Instance of IotSql
    • fromStringAsVer20160323

      @Stability(Experimental) @NotNull public static IotSql fromStringAsVer20160323(@NotNull String sql)
      (experimental) Uses the SQL version built on 2016-03-23.

      Parameters:
      sql - The actual SQL-like syntax query. This parameter is required.
      Returns:
      Instance of IotSql
    • fromStringAsVerNewestUnstable

      @Stability(Experimental) @NotNull public static IotSql fromStringAsVerNewestUnstable(@NotNull String sql)
      (experimental) Uses the most recent beta SQL version.

      If you use this version, it might introduce breaking changes to your rules.

      Parameters:
      sql - The actual SQL-like syntax query. This parameter is required.
      Returns:
      Instance of IotSql
    • bind

      @Stability(Experimental) @NotNull public abstract IotSqlConfig bind(@NotNull software.constructs.Construct scope)
      (experimental) Returns the IoT SQL configuration.

      Parameters:
      scope - This parameter is required.