@aws-cdk/aws-kinesisanalytics-flink-alpha 2.26.0-alpha.0 → 2.28.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +24 -11
- package/.jsii.tabl.json +85 -75
- package/lib/application-code.js +3 -4
- package/lib/application.js +6 -7
- package/lib/private/environment-properties.js +2 -2
- package/lib/private/flink-application-configuration.js +3 -4
- package/lib/types.js +1 -1
- package/package.json +8 -8
package/.jsii
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://aws.amazon.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"aws-cdk-lib": "^2.28.1",
|
|
12
12
|
"constructs": "^10.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencyClosure": {
|
|
@@ -1107,6 +1107,19 @@
|
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
},
|
|
1110
|
+
"aws-cdk-lib.aws_emrserverless": {
|
|
1111
|
+
"targets": {
|
|
1112
|
+
"dotnet": {
|
|
1113
|
+
"namespace": "Amazon.CDK.AWS.EMRServerless"
|
|
1114
|
+
},
|
|
1115
|
+
"java": {
|
|
1116
|
+
"package": "software.amazon.awscdk.services.emrserverless"
|
|
1117
|
+
},
|
|
1118
|
+
"python": {
|
|
1119
|
+
"module": "aws_cdk.aws_emrserverless"
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1110
1123
|
"aws-cdk-lib.aws_events": {
|
|
1111
1124
|
"targets": {
|
|
1112
1125
|
"dotnet": {
|
|
@@ -2943,7 +2956,7 @@
|
|
|
2943
2956
|
},
|
|
2944
2957
|
"targets": {
|
|
2945
2958
|
"dotnet": {
|
|
2946
|
-
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/
|
|
2959
|
+
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png",
|
|
2947
2960
|
"namespace": "Amazon.CDK",
|
|
2948
2961
|
"packageId": "Amazon.CDK.Lib"
|
|
2949
2962
|
},
|
|
@@ -2998,7 +3011,7 @@
|
|
|
2998
3011
|
"stability": "experimental"
|
|
2999
3012
|
},
|
|
3000
3013
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
3001
|
-
"jsiiVersion": "1.
|
|
3014
|
+
"jsiiVersion": "1.60.1 (build 2799dc8)",
|
|
3002
3015
|
"keywords": [
|
|
3003
3016
|
"aws",
|
|
3004
3017
|
"cdk",
|
|
@@ -3021,7 +3034,7 @@
|
|
|
3021
3034
|
},
|
|
3022
3035
|
"name": "@aws-cdk/aws-kinesisanalytics-flink-alpha",
|
|
3023
3036
|
"readme": {
|
|
3024
|
-
"markdown": "# Kinesis Analytics Flink\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis package provides constructs for creating Kinesis Analytics Flink\napplications. To learn more about using using managed Flink applications, see\nthe [AWS developer\nguide](https://docs.aws.amazon.com/kinesisanalytics/latest/java/).\n\n## Creating Flink Applications\n\nTo create a new Flink application, use the `Application` construct:\n\n```ts lit=test/integ.application.lit.ts\n///! show\nimport * as path from 'path';\nimport * as
|
|
3037
|
+
"markdown": "# Kinesis Analytics Flink\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis package provides constructs for creating Kinesis Analytics Flink\napplications. To learn more about using using managed Flink applications, see\nthe [AWS developer\nguide](https://docs.aws.amazon.com/kinesisanalytics/latest/java/).\n\n## Creating Flink Applications\n\nTo create a new Flink application, use the `Application` construct:\n\n```ts lit=test/integ.application.lit.ts\n///! show\nimport * as path from 'path';\nimport * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';\nimport * as core from 'aws-cdk-lib';\nimport * as flink from '../lib';\n\nconst app = new core.App();\nconst stack = new core.Stack(app, 'FlinkAppTest');\n\nconst flinkApp = new flink.Application(stack, 'App', {\n code: flink.ApplicationCode.fromAsset(path.join(__dirname, 'code-asset')),\n runtime: flink.Runtime.FLINK_1_11,\n});\n\nnew cloudwatch.Alarm(stack, 'Alarm', {\n metric: flinkApp.metricFullRestarts(),\n evaluationPeriods: 1,\n threshold: 3,\n});\n///! hide\n\napp.synth();\n\n```\n\nThe `code` property can use `fromAsset` as shown above to reference a local jar\nfile in s3 or `fromBucket` to reference a file in s3.\n\n```ts lit=test/integ.application-code-from-bucket.lit.ts\nimport * as path from 'path';\nimport * as assets from 'aws-cdk-lib/aws-s3-assets';\nimport * as core from 'aws-cdk-lib';\nimport * as flink from '../lib';\n\nconst app = new core.App();\nconst stack = new core.Stack(app, 'FlinkAppCodeFromBucketTest');\n\nconst asset = new assets.Asset(stack, 'CodeAsset', {\n path: path.join(__dirname, 'code-asset'),\n});\nconst bucket = asset.bucket;\nconst fileKey = asset.s3ObjectKey;\n\n///! show\nnew flink.Application(stack, 'App', {\n code: flink.ApplicationCode.fromBucket(bucket, fileKey),\n runtime: flink.Runtime.FLINK_1_11,\n});\n///! hide\n\napp.synth();\n\n```\n\nThe `propertyGroups` property provides a way of passing arbitrary runtime\nproperties to your Flink application. You can use the\naws-kinesisanalytics-runtime library to [retrieve these\nproperties](https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-properties.html#how-properties-access).\n\n```ts\ndeclare const bucket: s3.Bucket;\nconst flinkApp = new flink.Application(this, 'Application', {\n propertyGroups: {\n FlinkApplicationProperties: {\n inputStreamName: 'my-input-kinesis-stream',\n outputStreamName: 'my-output-kinesis-stream',\n },\n },\n // ...\n runtime: flink.Runtime.FLINK_1_13,\n code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'),\n});\n```\n\nFlink applications also have specific configuration for passing parameters\nwhen the Flink job starts. These include parameters for checkpointing,\nsnapshotting, monitoring, and parallelism.\n\n```ts\ndeclare const bucket: s3.Bucket;\nconst flinkApp = new flink.Application(this, 'Application', {\n code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'),\n runtime: flink.Runtime.FLINK_1_13,\n checkpointingEnabled: true, // default is true\n checkpointInterval: Duration.seconds(30), // default is 1 minute\n minPauseBetweenCheckpoints: Duration.seconds(10), // default is 5 seconds\n logLevel: flink.LogLevel.ERROR, // default is INFO\n metricsLevel: flink.MetricsLevel.PARALLELISM, // default is APPLICATION\n autoScalingEnabled: false, // default is true\n parallelism: 32, // default is 1\n parallelismPerKpu: 2, // default is 1\n snapshotsEnabled: false, // default is true\n logGroup: new logs.LogGroup(this, 'LogGroup'), // by default, a new LogGroup will be created\n});\n```\n"
|
|
3025
3038
|
},
|
|
3026
3039
|
"repository": {
|
|
3027
3040
|
"directory": "packages/individual-packages/aws-kinesisanalytics-flink",
|
|
@@ -3031,7 +3044,7 @@
|
|
|
3031
3044
|
"schema": "jsii/0.10.0",
|
|
3032
3045
|
"targets": {
|
|
3033
3046
|
"dotnet": {
|
|
3034
|
-
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/
|
|
3047
|
+
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png",
|
|
3035
3048
|
"namespace": "Amazon.CDK.AWS.Kinesisanalytics.Flink.Alpha",
|
|
3036
3049
|
"packageId": "Amazon.CDK.AWS.KinesisAnalyticsFlink.Alpha"
|
|
3037
3050
|
},
|
|
@@ -3067,7 +3080,7 @@
|
|
|
3067
3080
|
"exampleMetadata": "lit=test/integ.application.lit.ts ! show infused",
|
|
3068
3081
|
"resource": "AWS::KinesisAnalyticsV2::Application"
|
|
3069
3082
|
},
|
|
3070
|
-
"example": "import * as path from 'path';\nimport * as
|
|
3083
|
+
"example": "import * as path from 'path';\nimport * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';\nimport * as core from 'aws-cdk-lib';\nimport * as flink from '../lib';\n\nconst app = new core.App();\nconst stack = new core.Stack(app, 'FlinkAppTest');\n\nconst flinkApp = new flink.Application(stack, 'App', {\n code: flink.ApplicationCode.fromAsset(path.join(__dirname, 'code-asset')),\n runtime: flink.Runtime.FLINK_1_11,\n});\n\nnew cloudwatch.Alarm(stack, 'Alarm', {\n metric: flinkApp.metricFullRestarts(),\n evaluationPeriods: 1,\n threshold: 3,\n});\n///! hide\n\napp.synth();",
|
|
3071
3084
|
"stability": "experimental",
|
|
3072
3085
|
"summary": "The L2 construct for Flink Kinesis Data Applications."
|
|
3073
3086
|
},
|
|
@@ -4025,7 +4038,7 @@
|
|
|
4025
4038
|
"custom": {
|
|
4026
4039
|
"exampleMetadata": "lit=test/integ.application.lit.ts ! show infused"
|
|
4027
4040
|
},
|
|
4028
|
-
"example": "import * as path from 'path';\nimport * as
|
|
4041
|
+
"example": "import * as path from 'path';\nimport * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';\nimport * as core from 'aws-cdk-lib';\nimport * as flink from '../lib';\n\nconst app = new core.App();\nconst stack = new core.Stack(app, 'FlinkAppTest');\n\nconst flinkApp = new flink.Application(stack, 'App', {\n code: flink.ApplicationCode.fromAsset(path.join(__dirname, 'code-asset')),\n runtime: flink.Runtime.FLINK_1_11,\n});\n\nnew cloudwatch.Alarm(stack, 'Alarm', {\n metric: flinkApp.metricFullRestarts(),\n evaluationPeriods: 1,\n threshold: 3,\n});\n///! hide\n\napp.synth();",
|
|
4029
4042
|
"stability": "experimental",
|
|
4030
4043
|
"summary": "Code configuration providing the location to a Flink application JAR file."
|
|
4031
4044
|
},
|
|
@@ -4161,7 +4174,7 @@
|
|
|
4161
4174
|
"docs": {
|
|
4162
4175
|
"stability": "experimental",
|
|
4163
4176
|
"summary": "The return type of {@link ApplicationCode.bind}. This represents CloudFormation configuration and an s3 bucket holding the Flink application JAR file.",
|
|
4164
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as kinesisanalytics_flink_alpha from '@aws-cdk/aws-kinesisanalytics-flink-alpha';\nimport { aws_s3 as s3 } from 'aws-cdk-lib';\n\ndeclare const bucket: s3.Bucket;\
|
|
4177
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as kinesisanalytics_flink_alpha from '@aws-cdk/aws-kinesisanalytics-flink-alpha';\nimport { aws_s3 as s3 } from 'aws-cdk-lib';\n\ndeclare const bucket: s3.Bucket;\nconst applicationCodeConfig: kinesisanalytics_flink_alpha.ApplicationCodeConfig = {\n applicationCodeConfigurationProperty: {\n applicationCodeConfiguration: {\n codeContent: {\n s3ContentLocation: {\n bucketArn: 'bucketArn',\n fileKey: 'fileKey',\n\n // the properties below are optional\n objectVersion: 'objectVersion',\n },\n textContent: 'textContent',\n zipFileContent: 'zipFileContent',\n },\n codeContentType: 'codeContentType',\n },\n applicationSnapshotConfiguration: {\n snapshotsEnabled: false,\n },\n environmentProperties: {\n propertyGroups: [{\n propertyGroupId: 'propertyGroupId',\n propertyMap: {\n propertyMapKey: 'propertyMap',\n },\n }],\n },\n flinkApplicationConfiguration: {\n checkpointConfiguration: {\n configurationType: 'configurationType',\n\n // the properties below are optional\n checkpointingEnabled: false,\n checkpointInterval: 123,\n minPauseBetweenCheckpoints: 123,\n },\n monitoringConfiguration: {\n configurationType: 'configurationType',\n\n // the properties below are optional\n logLevel: 'logLevel',\n metricsLevel: 'metricsLevel',\n },\n parallelismConfiguration: {\n configurationType: 'configurationType',\n\n // the properties below are optional\n autoScalingEnabled: false,\n parallelism: 123,\n parallelismPerKpu: 123,\n },\n },\n sqlApplicationConfiguration: {\n inputs: [{\n inputSchema: {\n recordColumns: [{\n name: 'name',\n sqlType: 'sqlType',\n\n // the properties below are optional\n mapping: 'mapping',\n }],\n recordFormat: {\n recordFormatType: 'recordFormatType',\n\n // the properties below are optional\n mappingParameters: {\n csvMappingParameters: {\n recordColumnDelimiter: 'recordColumnDelimiter',\n recordRowDelimiter: 'recordRowDelimiter',\n },\n jsonMappingParameters: {\n recordRowPath: 'recordRowPath',\n },\n },\n },\n\n // the properties below are optional\n recordEncoding: 'recordEncoding',\n },\n namePrefix: 'namePrefix',\n\n // the properties below are optional\n inputParallelism: {\n count: 123,\n },\n inputProcessingConfiguration: {\n inputLambdaProcessor: {\n resourceArn: 'resourceArn',\n },\n },\n kinesisFirehoseInput: {\n resourceArn: 'resourceArn',\n },\n kinesisStreamsInput: {\n resourceArn: 'resourceArn',\n },\n }],\n },\n zeppelinApplicationConfiguration: {\n catalogConfiguration: {\n glueDataCatalogConfiguration: {\n databaseArn: 'databaseArn',\n },\n },\n customArtifactsConfiguration: [{\n artifactType: 'artifactType',\n\n // the properties below are optional\n mavenReference: {\n artifactId: 'artifactId',\n groupId: 'groupId',\n version: 'version',\n },\n s3ContentLocation: {\n bucketArn: 'bucketArn',\n fileKey: 'fileKey',\n\n // the properties below are optional\n objectVersion: 'objectVersion',\n },\n }],\n deployAsApplicationConfiguration: {\n s3ContentLocation: {\n bucketArn: 'bucketArn',\n\n // the properties below are optional\n basePath: 'basePath',\n },\n },\n monitoringConfiguration: {\n logLevel: 'logLevel',\n },\n },\n },\n bucket: bucket,\n};",
|
|
4165
4178
|
"custom": {
|
|
4166
4179
|
"exampleMetadata": "fixture=_generated"
|
|
4167
4180
|
}
|
|
@@ -4216,7 +4229,7 @@
|
|
|
4216
4229
|
"custom": {
|
|
4217
4230
|
"exampleMetadata": "lit=test/integ.application.lit.ts ! show infused"
|
|
4218
4231
|
},
|
|
4219
|
-
"example": "import * as path from 'path';\nimport * as
|
|
4232
|
+
"example": "import * as path from 'path';\nimport * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';\nimport * as core from 'aws-cdk-lib';\nimport * as flink from '../lib';\n\nconst app = new core.App();\nconst stack = new core.Stack(app, 'FlinkAppTest');\n\nconst flinkApp = new flink.Application(stack, 'App', {\n code: flink.ApplicationCode.fromAsset(path.join(__dirname, 'code-asset')),\n runtime: flink.Runtime.FLINK_1_11,\n});\n\nnew cloudwatch.Alarm(stack, 'Alarm', {\n metric: flinkApp.metricFullRestarts(),\n evaluationPeriods: 1,\n threshold: 3,\n});\n///! hide\n\napp.synth();",
|
|
4220
4233
|
"stability": "experimental",
|
|
4221
4234
|
"summary": "Props for creating an Application construct."
|
|
4222
4235
|
},
|
|
@@ -5484,7 +5497,7 @@
|
|
|
5484
5497
|
"custom": {
|
|
5485
5498
|
"exampleMetadata": "lit=test/integ.application.lit.ts ! show infused"
|
|
5486
5499
|
},
|
|
5487
|
-
"example": "import * as path from 'path';\nimport * as
|
|
5500
|
+
"example": "import * as path from 'path';\nimport * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';\nimport * as core from 'aws-cdk-lib';\nimport * as flink from '../lib';\n\nconst app = new core.App();\nconst stack = new core.Stack(app, 'FlinkAppTest');\n\nconst flinkApp = new flink.Application(stack, 'App', {\n code: flink.ApplicationCode.fromAsset(path.join(__dirname, 'code-asset')),\n runtime: flink.Runtime.FLINK_1_11,\n});\n\nnew cloudwatch.Alarm(stack, 'Alarm', {\n metric: flinkApp.metricFullRestarts(),\n evaluationPeriods: 1,\n threshold: 3,\n});\n///! hide\n\napp.synth();",
|
|
5488
5501
|
"stability": "experimental",
|
|
5489
5502
|
"summary": "Available Flink runtimes for Kinesis Analytics."
|
|
5490
5503
|
},
|
|
@@ -5610,6 +5623,6 @@
|
|
|
5610
5623
|
"symbolId": "lib/types:Runtime"
|
|
5611
5624
|
}
|
|
5612
5625
|
},
|
|
5613
|
-
"version": "2.
|
|
5626
|
+
"version": "2.28.1-alpha.0",
|
|
5614
5627
|
"fingerprint": "**********"
|
|
5615
5628
|
}
|