# OutputProperty

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: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `destinationSchema`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplicationOutputV2.DestinationSchemaProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisanalytics.CfnApplicationOutputV2.DestinationSchemaProperty.html) (required) — Describes the data format when records are written to the destination.

- `kinesisFirehoseOutput`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplicationOutputV2.KinesisFirehoseOutputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisanalytics.CfnApplicationOutputV2.KinesisFirehoseOutputProperty.html) — Identifies a Kinesis Data Firehose delivery stream as the destination.

- `kinesisStreamsOutput`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplicationOutputV2.KinesisStreamsOutputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisanalytics.CfnApplicationOutputV2.KinesisStreamsOutputProperty.html) — Identifies a Kinesis data stream as the destination.

- `lambdaOutput`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplicationOutputV2.LambdaOutputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisanalytics.CfnApplicationOutputV2.LambdaOutputProperty.html) — Identifies an Amazon Lambda function as the destination.

- `name`: string — The name of the in-application stream.
