Skip to content
v2.277.0

Experimental

@aws-cdk/aws-iot-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

IotSqlConfig Struct ​

The type returned from the bind() method in IotSql.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iot_alpha from '@aws-cdk/aws-iot-alpha';
const iotSqlConfig: iot_alpha.IotSqlConfig = {
  awsIotSqlVersion: 'awsIotSqlVersion',
  sql: 'sql',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_iot_alpha as iot_alpha

iot_sql_config = iot_alpha.IotSqlConfig(
    aws_iot_sql_version="awsIotSqlVersion",
    sql="sql"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.alpha.*;

IotSqlConfig iotSqlConfig = IotSqlConfig.builder()
        .awsIotSqlVersion("awsIotSqlVersion")
        .sql("sql")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.IoT.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT.Alpha;

var iotSqlConfig = new IotSqlConfig {
    AwsIotSqlVersion = "awsIotSqlVersion",
    Sql = "sql"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkiotalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import iot_alpha "github.com/aws/aws-cdk-go/awscdkiotalpha"

iotSqlConfig := &IotSqlConfig{
	AwsIotSqlVersion: jsii.String("awsIotSqlVersion"),
	Sql: jsii.String("sql"),
}

Properties ​

awsIotSqlVersionstringaws_iot_sql_versionstrawsIotSqlVersionStringAwsIotSqlVersionstringAwsIotSqlVersion*stringrequired#
The version of the SQL rules engine to use when evaluating the rule.
sqlstringsqlstrsqlStringSqlstringSql*stringrequired#
The SQL statement used to query the topic.