Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS::KinesisAnalytics::ApplicationReferenceDataSource

Use the AWS CloudFormation AWS::KinesisAnalytics::ApplicationReferenceDataSource resource to add a reference data source to an existing Amazon Kinesis Data Analytics application. For more information, see AddApplicationReferenceDataSource in the Amazon Kinesis Data Analytics Developer Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::KinesisAnalytics::ApplicationReferenceDataSource", "Properties" : { "ApplicationName" : String, "ReferenceDataSource" : ReferenceDataSource, } }

YAML

Type: "AWS::KinesisAnalytics::ApplicationReferenceDataSource" Properties: ApplicationName: String ReferenceDataSource: ReferenceDataSource

Properties

ApplicationName

The name of an existing application.

Required: Yes

Type: String

Update requires: Replacement

ReferenceDataSource

The reference data source, which is an object in your Amazon Simple Storage Service (Amazon S3) bucket.

Required: Yes

Type: Kinesis Data Analytics ApplicationReferenceDataSource ReferenceDataSource

Update requires: No interruption

Examples

Creating an ApplicationReferenceDataSource Resource

The following example creates an ApplicationReferenceDataSource resource:

YAML

ApplicationReferenceDataSource: Type: "AWS::KinesisAnalytics::ApplicationReferenceDataSource" Properties: ApplicationName: !Ref BasicApplication ReferenceDataSource: TableName: "exampleTable" ReferenceSchema: RecordColumns: - Name: "example" SqlType: "VARCHAR(16)" Mapping: "$.example" RecordFormat: RecordFormatType: "JSON" MappingParameters: JSONMappingParameters: RecordRowPath: "$" S3ReferenceDataSource: BucketARN: !GetAtt S3Bucket.Arn FileKey: 'fakeKey' ReferenceRoleARN: !GetAtt KinesisAnalyticsRole.Arn

On this page: