> **Experimental**
>
> `@aws-cdk/aws-iot-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# IotSqlConfig

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

Returned by: [IotSql.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-iot-alpha.IotSql.html#bind)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/iot-sql.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-iot-alpha/lib/iot-sql.ts#L6)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `awsIotSqlVersion`: string (required) — The version of the SQL rules engine to use when evaluating the rule.

- `sql`: string (required) — The SQL statement used to query the topic.
