# RecordColumnProperty

Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.

Also used to describe the format of the reference data source.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisanalytics as kinesisanalytics } from 'aws-cdk-lib';
const recordColumnProperty: kinesisanalytics.CfnApplication.RecordColumnProperty = {
  name: 'name',
  sqlType: 'sqlType',

  // the properties below are optional
  mapping: 'mapping',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kinesisanalytics as kinesisanalytics

record_column_property = kinesisanalytics.CfnApplication.RecordColumnProperty(
    name="name",
    sql_type="sqlType",

    # the properties below are optional
    mapping="mapping"
)
```

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.kinesisanalytics.*;

RecordColumnProperty recordColumnProperty = RecordColumnProperty.builder()
        .name("name")
        .sqlType("sqlType")

        // the properties below are optional
        .mapping("mapping")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.KinesisAnalytics;

var recordColumnProperty = new RecordColumnProperty {
    Name = "name",
    SqlType = "sqlType",

    // the properties below are optional
    Mapping = "mapping"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

recordColumnProperty := &RecordColumnProperty{
	Name: jsii.String("name"),
	SqlType: jsii.String("sqlType"),

	// the properties below are optional
	Mapping: jsii.String("mapping"),
}
```

## Properties

- `mapping`: string — Reference to the data element in the streaming input or the reference data source.

  This element is required if the [RecordFormatType](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_RecordFormat.html#analytics-Type-RecordFormat-RecordFormatTypel) is `JSON` .

- `name`: string (required) — Name of the column created in the in-application input stream or reference table.

- `sqlType`: string (required) — Type of column created in the in-application input stream or reference table.
