Skip to content
v2.278.0

InputFormatConfigurationProperty Struct ​

Specifies the deserializer you want to use to convert the format of the input data.

This parameter is required if Enabled is set to true.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisfirehose as kinesisfirehose } from 'aws-cdk-lib';
const inputFormatConfigurationProperty: kinesisfirehose.CfnDeliveryStream.InputFormatConfigurationProperty = {
  deserializer: {
    hiveJsonSerDe: {
      timestampFormats: ['timestampFormats'],
    },
    openXJsonSerDe: {
      caseInsensitive: false,
      columnToJsonKeyMappings: {
        columnToJsonKeyMappingsKey: 'columnToJsonKeyMappings',
      },
      convertDotsInJsonKeysToUnderscores: false,
    },
  },
};
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_kinesisfirehose as kinesisfirehose

input_format_configuration_property = kinesisfirehose.CfnDeliveryStream.InputFormatConfigurationProperty(
    deserializer=kinesisfirehose.CfnDeliveryStream.DeserializerProperty(
        hive_json_ser_de=kinesisfirehose.CfnDeliveryStream.HiveJsonSerDeProperty(
            timestamp_formats=["timestampFormats"]
        ),
        open_x_json_ser_de=kinesisfirehose.CfnDeliveryStream.OpenXJsonSerDeProperty(
            case_insensitive=False,
            column_to_json_key_mappings={
                "column_to_json_key_mappings_key": "columnToJsonKeyMappings"
            },
            convert_dots_in_json_keys_to_underscores=False
        )
    )
)
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.kinesisfirehose.*;

InputFormatConfigurationProperty inputFormatConfigurationProperty = InputFormatConfigurationProperty.builder()
        .deserializer(DeserializerProperty.builder()
                .hiveJsonSerDe(HiveJsonSerDeProperty.builder()
                        .timestampFormats(List.of("timestampFormats"))
                        .build())
                .openXJsonSerDe(OpenXJsonSerDeProperty.builder()
                        .caseInsensitive(false)
                        .columnToJsonKeyMappings(Map.of(
                                "columnToJsonKeyMappingsKey", "columnToJsonKeyMappings"))
                        .convertDotsInJsonKeysToUnderscores(false)
                        .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.KinesisFirehose;

var inputFormatConfigurationProperty = new InputFormatConfigurationProperty {
    Deserializer = new DeserializerProperty {
        HiveJsonSerDe = new HiveJsonSerDeProperty {
            TimestampFormats = new [] { "timestampFormats" }
        },
        OpenXJsonSerDe = new OpenXJsonSerDeProperty {
            CaseInsensitive = false,
            ColumnToJsonKeyMappings = new Dictionary<string, string> {
                { "columnToJsonKeyMappingsKey", "columnToJsonKeyMappings" }
            },
            ConvertDotsInJsonKeysToUnderscores = false
        }
    }
};
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"

inputFormatConfigurationProperty := &InputFormatConfigurationProperty{
	Deserializer: &DeserializerProperty{
		HiveJsonSerDe: &HiveJsonSerDeProperty{
			TimestampFormats: []*string{
				jsii.String("timestampFormats"),
			},
		},
		OpenXJsonSerDe: &OpenXJsonSerDeProperty{
			CaseInsensitive: jsii.Boolean(false),
			ColumnToJsonKeyMappings: map[string]*string{
				"columnToJsonKeyMappingsKey": jsii.String("columnToJsonKeyMappings"),
			},
			ConvertDotsInJsonKeysToUnderscores: jsii.Boolean(false),
		},
	},
}

Properties ​

deserializeroptionalIResolvable | CfnDeliveryStream.DeserializerPropertydeserializeroptionaltyping.Union[IResolvable, DeserializerProperty]deserializeroptionalIResolvableDeserializeroptionalIResolvableDeserializeroptionalinterface{} #
Specifies which deserializer to use.

You can choose either the Apache Hive JSON SerDe or the OpenX JSON SerDe. If both are non-null, the server rejects the request.