@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:37.405Z") public class CfnApplicationReferenceDataSource extends CfnResource implements IInspectable
Adds a reference data source to an existing SQL-based Kinesis Data Analytics application.
Kinesis Data Analytics reads reference data (that is, an Amazon S3 object) and creates an in-application table within your application. In the request, you provide the source (S3 bucket name and object key name), name of the in-application table to create, and the necessary mapping information that describes how data in an Amazon S3 object maps to columns in the resulting in-application table.
Example:
// 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.*; CfnApplicationReferenceDataSource cfnApplicationReferenceDataSource = CfnApplicationReferenceDataSource.Builder.create(this, "MyCfnApplicationReferenceDataSource") .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") .build()) .tableName("tableName") .build()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnApplicationReferenceDataSource.Builder
A fluent builder for
CfnApplicationReferenceDataSource . |
static interface |
CfnApplicationReferenceDataSource.CSVMappingParametersProperty
For a SQL-based Kinesis Data Analytics application, provides additional mapping information when the record format uses delimiters, such as CSV.
|
static interface |
CfnApplicationReferenceDataSource.JSONMappingParametersProperty
For a SQL-based Kinesis Data Analytics application, provides additional mapping information when JSON is the record format on the streaming source.
|
static interface |
CfnApplicationReferenceDataSource.MappingParametersProperty
When you configure a SQL-based Kinesis Data Analytics application's 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.
|
static interface |
CfnApplicationReferenceDataSource.RecordColumnProperty
For a SQL-based Kinesis Data Analytics application, describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.
|
static interface |
CfnApplicationReferenceDataSource.RecordFormatProperty
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.
|
static interface |
CfnApplicationReferenceDataSource.ReferenceDataSourceProperty
For a SQL-based Kinesis Data Analytics application, describes the reference data source by providing the source information (Amazon S3 bucket name and object key name), the resulting in-application table name that is created, and the necessary schema to map the data elements in the Amazon S3 object to the in-application table.
|
static interface |
CfnApplicationReferenceDataSource.ReferenceSchemaProperty
For a SQL-based Kinesis Data Analytics application, describes the format of the data in the streaming source, and how each data element maps to corresponding columns created in the in-application stream.
|
static interface |
CfnApplicationReferenceDataSource.S3ReferenceDataSourceProperty
For an SQL-based Amazon Kinesis Data Analytics application, identifies the Amazon S3 bucket and object that contains the reference data.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnApplicationReferenceDataSource(Construct scope,
java.lang.String id,
CfnApplicationReferenceDataSourceProps props)
Create a new `AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource`.
|
protected |
CfnApplicationReferenceDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnApplicationReferenceDataSource(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplicationName()
The name of the application.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getReferenceDataSource()
For a SQL-based Kinesis Data Analytics application, describes the reference data source by providing the source information (Amazon S3 bucket name and object key name), the resulting in-application table name that is created, and the necessary schema to map the data elements in the Amazon S3 object to the in-application table.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setApplicationName(java.lang.String value)
The name of the application.
|
void |
setReferenceDataSource(CfnApplicationReferenceDataSource.ReferenceDataSourceProperty value)
For a SQL-based Kinesis Data Analytics application, describes the reference data source by providing the source information (Amazon S3 bucket name and object key name), the resulting in-application table name that is created, and the necessary schema to map the data elements in the Amazon S3 object to the in-application table.
|
void |
setReferenceDataSource(IResolvable value)
For a SQL-based Kinesis Data Analytics application, describes the reference data source by providing the source information (Amazon S3 bucket name and object key name), the resulting in-application table name that is created, and the necessary schema to map the data elements in the Amazon S3 object to the in-application table.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnApplicationReferenceDataSource(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnApplicationReferenceDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnApplicationReferenceDataSource(Construct scope, java.lang.String id, CfnApplicationReferenceDataSourceProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getApplicationName()
public void setApplicationName(java.lang.String value)
public java.lang.Object getReferenceDataSource()
public void setReferenceDataSource(IResolvable value)
public void setReferenceDataSource(CfnApplicationReferenceDataSource.ReferenceDataSourceProperty value)