# FileFormatConfigurationProperty

Contains the configuration information of file formats. ITA data stores support JSON and [Parquet](https://docs.aws.amazon.com/https://parquet.apache.org/) .

The default file format is JSON. You can specify only one format.

You can't change the file format after you create the data store.

- 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_iotanalytics as iotanalytics } from 'aws-cdk-lib';

declare const jsonConfiguration: any;
const fileFormatConfigurationProperty: iotanalytics.CfnDatastore.FileFormatConfigurationProperty = {
  jsonConfiguration: jsonConfiguration,
  parquetConfiguration: {
    schemaDefinition: {
      columns: [{
        name: 'name',
        type: 'type',
      }],
    },
  },
};
```

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_iotanalytics as iotanalytics

# json_configuration: Any

file_format_configuration_property = iotanalytics.CfnDatastore.FileFormatConfigurationProperty(
    json_configuration=json_configuration,
    parquet_configuration=iotanalytics.CfnDatastore.ParquetConfigurationProperty(
        schema_definition=iotanalytics.CfnDatastore.SchemaDefinitionProperty(
            columns=[iotanalytics.CfnDatastore.ColumnProperty(
                name="name",
                type="type"
            )]
        )
    )
)
```

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

Object jsonConfiguration;

FileFormatConfigurationProperty fileFormatConfigurationProperty = FileFormatConfigurationProperty.builder()
        .jsonConfiguration(jsonConfiguration)
        .parquetConfiguration(ParquetConfigurationProperty.builder()
                .schemaDefinition(SchemaDefinitionProperty.builder()
                        .columns(List.of(ColumnProperty.builder()
                                .name("name")
                                .type("type")
                                .build()))
                        .build())
                .build())
        .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.IoTAnalytics;

var jsonConfiguration;

var fileFormatConfigurationProperty = new FileFormatConfigurationProperty {
    JsonConfiguration = jsonConfiguration,
    ParquetConfiguration = new ParquetConfigurationProperty {
        SchemaDefinition = new SchemaDefinitionProperty {
            Columns = new [] { new ColumnProperty {
                Name = "name",
                Type = "type"
            } }
        }
    }
};
```

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"

var jsonConfiguration interface{}

fileFormatConfigurationProperty := &FileFormatConfigurationProperty{
	JsonConfiguration: jsonConfiguration,
	ParquetConfiguration: &ParquetConfigurationProperty{
		SchemaDefinition: &SchemaDefinitionProperty{
			Columns: []interface{}{
				&ColumnProperty{
					Name: jsii.String("name"),
					Type: jsii.String("type"),
				},
			},
		},
	},
}
```

## Properties

- `jsonConfiguration`: any — Contains the configuration information of the JSON format.

- `parquetConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDatastore.ParquetConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotanalytics.CfnDatastore.ParquetConfigurationProperty.html) — Contains the configuration information of the Parquet format.
