CfnApplicationReferenceDataSourceProps Struct
Properties for defining a CfnApplicationReferenceDataSource.
| Source |
|---|
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 cfnApplicationReferenceDataSourceProps: kinesisanalytics.CfnApplicationReferenceDataSourceProps = {
applicationName: 'applicationName',
referenceDataSource: {
referenceSchema: {
recordColumns: [{
name: 'name',
sqlType: 'sqlType',
// the properties below are optional
mapping: 'mapping',
}],
recordFormat: {
recordFormatType: 'recordFormatType',
// the properties below are optional
mappingParameters: {
csvMappingParameters: {
recordColumnDelimiter: 'recordColumnDelimiter',
recordRowDelimiter: 'recordRowDelimiter',
},
jsonMappingParameters: {
recordRowPath: 'recordRowPath',
},
},
},
// the properties below are optional
recordEncoding: 'recordEncoding',
},
// the properties below are optional
s3ReferenceDataSource: {
bucketArn: 'bucketArn',
fileKey: 'fileKey',
referenceRoleArn: 'referenceRoleArn',
},
tableName: 'tableName',
},
};
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
cfn_application_reference_data_source_props = kinesisanalytics.CfnApplicationReferenceDataSourceProps(
application_name="applicationName",
reference_data_source=kinesisanalytics.CfnApplicationReferenceDataSource.ReferenceDataSourceProperty(
reference_schema=kinesisanalytics.CfnApplicationReferenceDataSource.ReferenceSchemaProperty(
record_columns=[kinesisanalytics.CfnApplicationReferenceDataSource.RecordColumnProperty(
name="name",
sql_type="sqlType",
# the properties below are optional
mapping="mapping"
)],
record_format=kinesisanalytics.CfnApplicationReferenceDataSource.RecordFormatProperty(
record_format_type="recordFormatType",
# the properties below are optional
mapping_parameters=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"
)
)
),
# the properties below are optional
record_encoding="recordEncoding"
),
# the properties below are optional
s3_reference_data_source=kinesisanalytics.CfnApplicationReferenceDataSource.S3ReferenceDataSourceProperty(
bucket_arn="bucketArn",
file_key="fileKey",
reference_role_arn="referenceRoleArn"
),
table_name="tableName"
)
)
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.*;
CfnApplicationReferenceDataSourceProps cfnApplicationReferenceDataSourceProps = CfnApplicationReferenceDataSourceProps.builder()
.applicationName("applicationName")
.referenceDataSource(ReferenceDataSourceProperty.builder()
.referenceSchema(ReferenceSchemaProperty.builder()
.recordColumns(List.of(RecordColumnProperty.builder()
.name("name")
.sqlType("sqlType")
// the properties below are optional
.mapping("mapping")
.build()))
.recordFormat(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())
// the properties below are optional
.recordEncoding("recordEncoding")
.build())
// the properties below are optional
.s3ReferenceDataSource(S3ReferenceDataSourceProperty.builder()
.bucketArn("bucketArn")
.fileKey("fileKey")
.referenceRoleArn("referenceRoleArn")
.build())
.tableName("tableName")
.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 cfnApplicationReferenceDataSourceProps = new CfnApplicationReferenceDataSourceProps {
ApplicationName = "applicationName",
ReferenceDataSource = new ReferenceDataSourceProperty {
ReferenceSchema = new ReferenceSchemaProperty {
RecordColumns = new [] { new RecordColumnProperty {
Name = "name",
SqlType = "sqlType",
// the properties below are optional
Mapping = "mapping"
} },
RecordFormat = new RecordFormatProperty {
RecordFormatType = "recordFormatType",
// the properties below are optional
MappingParameters = new MappingParametersProperty {
CsvMappingParameters = new CSVMappingParametersProperty {
RecordColumnDelimiter = "recordColumnDelimiter",
RecordRowDelimiter = "recordRowDelimiter"
},
JsonMappingParameters = new JSONMappingParametersProperty {
RecordRowPath = "recordRowPath"
}
}
},
// the properties below are optional
RecordEncoding = "recordEncoding"
},
// the properties below are optional
S3ReferenceDataSource = new S3ReferenceDataSourceProperty {
BucketArn = "bucketArn",
FileKey = "fileKey",
ReferenceRoleArn = "referenceRoleArn"
},
TableName = "tableName"
}
};
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"
cfnApplicationReferenceDataSourceProps := &CfnApplicationReferenceDataSourceProps{
ApplicationName: jsii.String("applicationName"),
ReferenceDataSource: &ReferenceDataSourceProperty{
ReferenceSchema: &ReferenceSchemaProperty{
RecordColumns: []interface{}{
&RecordColumnProperty{
Name: jsii.String("name"),
SqlType: jsii.String("sqlType"),
// the properties below are optional
Mapping: jsii.String("mapping"),
},
},
RecordFormat: &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"),
},
},
},
// the properties below are optional
RecordEncoding: jsii.String("recordEncoding"),
},
// the properties below are optional
S3ReferenceDataSource: &S3ReferenceDataSourceProperty{
BucketArn: jsii.String("bucketArn"),
FileKey: jsii.String("fileKey"),
ReferenceRoleArn: jsii.String("referenceRoleArn"),
},
TableName: jsii.String("tableName"),
},
}
Properties
applicationNamestringapplication_namestrapplicationNameStringApplicationNamestringApplicationName*string required #Name of an existing application.
referenceDataSourceIResolvable | CfnApplicationReferenceDataSource.reference_data_sourcetyping.Union[IResolvable, ReferenceDataSourceProperty]referenceDataSourceIResolvableReferenceDataSourceIResolvableReferenceDataSourceinterface{} required #The reference data source can be an object in your Amazon S3 bucket.
notes
Amazon Kinesis Analytics reads the object and copies the data into the in-application table that is created. You provide an S3 bucket, object key name, and the resulting in-application table that is created. You must also provide an IAM role with the necessary permissions that Amazon Kinesis Analytics can assume to read the object from your S3 bucket on your behalf.