OutputProperty Struct
Describes a SQL-based Kinesis Data Analytics application's output configuration, in which you identify an in-application stream and a destination where you want the in-application stream data to be written.
The destination can be a Kinesis data stream or a Kinesis Data Firehose delivery stream.
| 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 outputProperty: kinesisanalytics.CfnApplicationOutputV2.OutputProperty = {
destinationSchema: {
recordFormatType: 'recordFormatType',
},
// the properties below are optional
kinesisFirehoseOutput: {
resourceArn: 'resourceArn',
},
kinesisStreamsOutput: {
resourceArn: 'resourceArn',
},
lambdaOutput: {
resourceArn: 'resourceArn',
},
name: 'name',
};
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
output_property = kinesisanalytics.CfnApplicationOutputV2.OutputProperty(
destination_schema=kinesisanalytics.CfnApplicationOutputV2.DestinationSchemaProperty(
record_format_type="recordFormatType"
),
# the properties below are optional
kinesis_firehose_output=kinesisanalytics.CfnApplicationOutputV2.KinesisFirehoseOutputProperty(
resource_arn="resourceArn"
),
kinesis_streams_output=kinesisanalytics.CfnApplicationOutputV2.KinesisStreamsOutputProperty(
resource_arn="resourceArn"
),
lambda_output=kinesisanalytics.CfnApplicationOutputV2.LambdaOutputProperty(
resource_arn="resourceArn"
),
name="name"
)
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.*;
OutputProperty outputProperty = OutputProperty.builder()
.destinationSchema(DestinationSchemaProperty.builder()
.recordFormatType("recordFormatType")
.build())
// the properties below are optional
.kinesisFirehoseOutput(KinesisFirehoseOutputProperty.builder()
.resourceArn("resourceArn")
.build())
.kinesisStreamsOutput(KinesisStreamsOutputProperty.builder()
.resourceArn("resourceArn")
.build())
.lambdaOutput(LambdaOutputProperty.builder()
.resourceArn("resourceArn")
.build())
.name("name")
.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 outputProperty = new OutputProperty {
DestinationSchema = new DestinationSchemaProperty {
RecordFormatType = "recordFormatType"
},
// the properties below are optional
KinesisFirehoseOutput = new KinesisFirehoseOutputProperty {
ResourceArn = "resourceArn"
},
KinesisStreamsOutput = new KinesisStreamsOutputProperty {
ResourceArn = "resourceArn"
},
LambdaOutput = new LambdaOutputProperty {
ResourceArn = "resourceArn"
},
Name = "name"
};
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"
outputProperty := &OutputProperty{
DestinationSchema: &DestinationSchemaProperty{
RecordFormatType: jsii.String("recordFormatType"),
},
// the properties below are optional
KinesisFirehoseOutput: &KinesisFirehoseOutputProperty{
ResourceArn: jsii.String("resourceArn"),
},
KinesisStreamsOutput: &KinesisStreamsOutputProperty{
ResourceArn: jsii.String("resourceArn"),
},
LambdaOutput: &LambdaOutputProperty{
ResourceArn: jsii.String("resourceArn"),
},
Name: jsii.String("name"),
}
Properties
destinationSchemaIResolvable | CfnApplicationOutputV2.destination_schematyping.Union[IResolvable, DestinationSchemaProperty]destinationSchemaIResolvableDestinationSchemaIResolvableDestinationSchemainterface{} required #Describes the data format when records are written to the destination.
kinesisFirehoseOutputoptionalIResolvable | CfnApplicationOutputV2.kinesis_firehose_outputoptionaltyping.Union[IResolvable, KinesisFirehoseOutputProperty]kinesisFirehoseOutputoptionalIResolvableKinesisFirehoseOutputoptionalIResolvableKinesisFirehoseOutputoptionalinterface{} #Identifies a Kinesis Data Firehose delivery stream as the destination.
kinesisStreamsOutputoptionalIResolvable | CfnApplicationOutputV2.kinesis_streams_outputoptionaltyping.Union[IResolvable, KinesisStreamsOutputProperty]kinesisStreamsOutputoptionalIResolvableKinesisStreamsOutputoptionalIResolvableKinesisStreamsOutputoptionalinterface{} #Identifies a Kinesis data stream as the destination.
lambdaOutputoptionalIResolvable | CfnApplicationOutputV2.lambda_outputoptionaltyping.Union[IResolvable, LambdaOutputProperty]lambdaOutputoptionalIResolvableLambdaOutputoptionalIResolvableLambdaOutputoptionalinterface{} #Identifies an Amazon Lambda function as the destination.
The name of the in-application stream.