aws-cdk-lib.aws_kinesisanalytics.CfnApplicationReferenceDataSourceProps

interface CfnApplicationReferenceDataSourceProps

LanguageType name
.NETAmazon.CDK.AWS.KinesisAnalytics.CfnApplicationReferenceDataSourceProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awskinesisanalytics#CfnApplicationReferenceDataSourceProps
Javasoftware.amazon.awscdk.services.kinesisanalytics.CfnApplicationReferenceDataSourceProps
Pythonaws_cdk.aws_kinesisanalytics.CfnApplicationReferenceDataSourceProps
TypeScript aws-cdk-lib » aws_kinesisanalytics » CfnApplicationReferenceDataSourceProps

Properties for defining a CfnApplicationReferenceDataSource.

Example

// 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',
  },
};

Properties

NameTypeDescription
applicationNamestringName of an existing application.
referenceDataSourceIResolvable | ReferenceDataSourcePropertyThe reference data source can be an object in your Amazon S3 bucket.

applicationName

Type: string

Name of an existing application.


referenceDataSource

Type: IResolvable | ReferenceDataSourceProperty

The reference data source can be an object in your Amazon S3 bucket.

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.