Skip to content
v2.277.0

FileFormatConfigurationProperty Struct ​

Contains the configuration information of file formats. ITA data stores support JSON and Parquet .

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.

Example ​

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
# 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
// 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();
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"
            } }
        }
    }
};
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 ​

jsonConfigurationoptionalanyjson_configurationoptionalAnyjsonConfigurationoptionalObjectJsonConfigurationoptionalobjectJsonConfigurationoptionalinterface{} #
Contains the configuration information of the JSON format.
parquetConfigurationoptionalIResolvable | CfnDatastore.ParquetConfigurationPropertyparquet_configurationoptionaltyping.Union[IResolvable, ParquetConfigurationProperty]parquetConfigurationoptionalIResolvableParquetConfigurationoptionalIResolvableParquetConfigurationoptionalinterface{} #
Contains the configuration information of the Parquet format.