MappingParametersProperty Struct
When configuring 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.
| Source | |
|---|---|
| Type last changed |
Example
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 mappingParametersProperty: kinesisanalytics.CfnApplicationReferenceDataSource.MappingParametersProperty = {
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_kinesisanalytics as kinesisanalytics
mapping_parameters_property = kinesisanalytics.CfnApplicationReferenceDataSource.MappingParametersProperty(
csv_mapping_parameters=kinesisanalytics.CfnApplicationReferenceDataSource.CSVMappingParametersProperty(
record_column_delimiter="recordColumnDelimiter",
record_row_delimiter="recordRowDelimiter"
),
json_mapping_parameters=kinesisanalytics.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.kinesisanalytics.*;
MappingParametersProperty mappingParametersProperty = MappingParametersProperty.builder()
.csvMappingParameters(CSVMappingParametersProperty.builder()
.recordColumnDelimiter("recordColumnDelimiter")
.recordRowDelimiter("recordRowDelimiter")
.build())
.jsonMappingParameters(JSONMappingParametersProperty.builder()
.recordRowPath("recordRowPath")
.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.KinesisAnalytics;
var mappingParametersProperty = 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"
mappingParametersProperty := &MappingParametersProperty{
CsvMappingParameters: &CSVMappingParametersProperty{
RecordColumnDelimiter: jsii.String("recordColumnDelimiter"),
RecordRowDelimiter: jsii.String("recordRowDelimiter"),
},
JsonMappingParameters: &JSONMappingParametersProperty{
RecordRowPath: jsii.String("recordRowPath"),
},
}
Properties
csvMappingParametersoptionalIResolvable | CfnApplicationReferenceDataSource.csv_mapping_parametersoptionaltyping.Union[IResolvable, CSVMappingParametersProperty]csvMappingParametersoptionalIResolvableCsvMappingParametersoptionalIResolvableCsvMappingParametersoptionalinterface{} #Provides additional mapping information when the record format uses delimiters (for example, CSV).
jsonMappingParametersoptionalIResolvable | CfnApplicationReferenceDataSource.json_mapping_parametersoptionaltyping.Union[IResolvable, JSONMappingParametersProperty]jsonMappingParametersoptionalIResolvableJsonMappingParametersoptionalIResolvableJsonMappingParametersoptionalinterface{} #Provides additional mapping information when JSON is the record format on the streaming source.