Experimental
@aws-cdk/aws-kinesisanalytics-flink-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
Runtime Class
Available Flink runtimes for Kinesis Analytics.
| Stability | Experimental |
|---|---|
| Source | lib/types.ts |
| Type last changed |
Example
ts
declare const bucket: s3.Bucket;
const flinkApp = new flink.Application(this, 'Application', {
propertyGroups: {
FlinkApplicationProperties: {
inputStreamName: 'my-input-kinesis-stream',
outputStreamName: 'my-output-kinesis-stream',
},
},
// ...
runtime: flink.Runtime.FLINK_2_2,
code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'),
});
python
# bucket: s3.Bucket
flink_app = flink.Application(self, "Application",
property_groups={
"FlinkApplicationProperties": {
"input_stream_name": "my-input-kinesis-stream",
"output_stream_name": "my-output-kinesis-stream"
}
},
# ...
runtime=flink.Runtime.FLINK_2_2,
code=flink.ApplicationCode.from_bucket(bucket, "my-app.jar")
)
java
Bucket bucket;
Application flinkApp = Application.Builder.create(this, "Application")
.propertyGroups(Map.of(
"FlinkApplicationProperties", Map.of(
"inputStreamName", "my-input-kinesis-stream",
"outputStreamName", "my-output-kinesis-stream")))
// ...
.runtime(Runtime.FLINK_2_2)
.code(ApplicationCode.fromBucket(bucket, "my-app.jar"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.KinesisAnalyticsFlink.Alpha
Bucket bucket;
var flinkApp = new Application(this, "Application", new ApplicationProps {
PropertyGroups = new Dictionary<string, IDictionary<string, string>> {
{ "FlinkApplicationProperties", new Dictionary<string, string> {
{ "inputStreamName", "my-input-kinesis-stream" },
{ "outputStreamName", "my-output-kinesis-stream" }
} }
},
// ...
Runtime = Runtime.FLINK_2_2,
Code = ApplicationCode.FromBucket(bucket, "my-app.jar")
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkkinesisanalyticsflinkalpha/v2
var bucket Bucket
flinkApp := flink.NewApplication(this, jsii.String("Application"), &ApplicationProps{
PropertyGroups: map[string]map[string]*string{
"FlinkApplicationProperties": map[string]*string{
"inputStreamName": jsii.String("my-input-kinesis-stream"),
"outputStreamName": jsii.String("my-output-kinesis-stream"),
},
},
// ...
Runtime: flink.Runtime_FLINK_2_2(),
Code: flink.ApplicationCode_FromBucket(bucket, jsii.String("my-app.jar")),
})
Properties
FLINK_1_11RuntimeFLINK_1_11RuntimeFLINK_1_11RuntimeFLINK_1_11RuntimeFLINK_1_11Runtime static deprecated #Apache Flink 1.11 is deprecated by Amazon Managed Service for Apache Flink. Use {@link FLINK_1_20 } or later.
FLINK_1_13RuntimeFLINK_1_13RuntimeFLINK_1_13RuntimeFLINK_1_13RuntimeFLINK_1_13Runtime static deprecated #Apache Flink 1.13 is deprecated by Amazon Managed Service for Apache Flink. Use {@link FLINK_1_20 } or later.
Flink Version 1.15.
Flink Version 1.18.
Flink Version 1.19.
Flink Version 1.20.
FLINK_1_6RuntimeFLINK_1_6RuntimeFLINK_1_6RuntimeFLINK_1_6RuntimeFLINK_1_6Runtime static deprecated #Apache Flink 1.6 is deprecated by Amazon Managed Service for Apache Flink. Use {@link FLINK_1_20 } or later.
FLINK_1_8RuntimeFLINK_1_8RuntimeFLINK_1_8RuntimeFLINK_1_8RuntimeFLINK_1_8Runtime static deprecated #Apache Flink 1.8 is deprecated by Amazon Managed Service for Apache Flink. Use {@link FLINK_1_20 } or later.
Flink Version 2.2.
The Cfn string that represents a version of Flink.
ZEPPELIN_FLINK_1_0RuntimeZEPPELIN_FLINK_1_0RuntimeZEPPELIN_FLINK_1_0RuntimeZEPPELIN_FLINK_1_0RuntimeZEPPELIN_FLINK_1_0Runtime static #Zeppelin Flink Version 1.0.