Skip to content
v2.278.0

RecordFormatProperty Struct ​

For a SQL-based Kinesis Data Analytics application, describes the record format and relevant mapping information that should be applied to schematize the records on the stream.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisanalyticsv2 as kinesisanalyticsv2 } from 'aws-cdk-lib';
const recordFormatProperty: kinesisanalyticsv2.CfnApplicationReferenceDataSource.RecordFormatProperty = {
  recordFormatType: 'recordFormatType',

  // the properties below are optional
  mappingParameters: {
    csvMappingParameters: {
      recordColumnDelimiter: 'recordColumnDelimiter',
      recordRowDelimiter: 'recordRowDelimiter',
    },
    jsonMappingParameters: {
      recordRowPath: 'recordRowPath',
    },
  },
};
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_kinesisanalyticsv2 as kinesisanalyticsv2

record_format_property = kinesisanalyticsv2.CfnApplicationReferenceDataSource.RecordFormatProperty(
    record_format_type="recordFormatType",

    # the properties below are optional
    mapping_parameters=kinesisanalyticsv2.CfnApplicationReferenceDataSource.MappingParametersProperty(
        csv_mapping_parameters=kinesisanalyticsv2.CfnApplicationReferenceDataSource.CSVMappingParametersProperty(
            record_column_delimiter="recordColumnDelimiter",
            record_row_delimiter="recordRowDelimiter"
        ),
        json_mapping_parameters=kinesisanalyticsv2.CfnApplicationReferenceDataSource.JSONMappingParametersProperty(
            record_row_path="recordRowPath"
        )
    )
)
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.kinesisanalyticsv2.*;

RecordFormatProperty recordFormatProperty = RecordFormatProperty.builder()
        .recordFormatType("recordFormatType")

        // the properties below are optional
        .mappingParameters(MappingParametersProperty.builder()
                .csvMappingParameters(CSVMappingParametersProperty.builder()
                        .recordColumnDelimiter("recordColumnDelimiter")
                        .recordRowDelimiter("recordRowDelimiter")
                        .build())
                .jsonMappingParameters(JSONMappingParametersProperty.builder()
                        .recordRowPath("recordRowPath")
                        .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.KinesisAnalyticsV2;

var recordFormatProperty = new RecordFormatProperty {
    RecordFormatType = "recordFormatType",

    // the properties below are optional
    MappingParameters = new MappingParametersProperty {
        CsvMappingParameters = new CSVMappingParametersProperty {
            RecordColumnDelimiter = "recordColumnDelimiter",
            RecordRowDelimiter = "recordRowDelimiter"
        },
        JsonMappingParameters = new JSONMappingParametersProperty {
            RecordRowPath = "recordRowPath"
        }
    }
};
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"

recordFormatProperty := &RecordFormatProperty{
	RecordFormatType: jsii.String("recordFormatType"),

	// the properties below are optional
	MappingParameters: &MappingParametersProperty{
		CsvMappingParameters: &CSVMappingParametersProperty{
			RecordColumnDelimiter: jsii.String("recordColumnDelimiter"),
			RecordRowDelimiter: jsii.String("recordRowDelimiter"),
		},
		JsonMappingParameters: &JSONMappingParametersProperty{
			RecordRowPath: jsii.String("recordRowPath"),
		},
	},
}

Properties ​

mappingParametersoptionalIResolvable | CfnApplicationReferenceDataSource.MappingParametersPropertymapping_parametersoptionaltyping.Union[IResolvable, MappingParametersProperty]mappingParametersoptionalIResolvableMappingParametersoptionalIResolvableMappingParametersoptionalinterface{} #
When you configure application input at the time of creating or updating an application, provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source.
recordFormatTypestringrecord_format_typestrrecordFormatTypeStringRecordFormatTypestringRecordFormatType*string required #
The type of record format.