@aws-cdk/aws-kinesisanalytics-flink-alpha 2.72.1-alpha.0 → 2.74.0-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 CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "aws-cdk-lib": "^2.72.1",
11
+ "aws-cdk-lib": "2.74.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -3440,7 +3440,7 @@
3440
3440
  "markdown": "# Kinesis Analytics Flink\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\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_15,\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_15,\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\nFlink applications can optionally be deployed in a VPC:\n\n```ts\ndeclare const bucket: s3.Bucket;\ndeclare const vpc: ec2.Vpc;\nconst flinkApp = new flink.Application(this, 'Application', {\n code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'),\n runtime: flink.Runtime.FLINK_1_15,\n vpc,\n});\n```\n"
3441
3441
  },
3442
3442
  "repository": {
3443
- "directory": "packages/individual-packages/aws-kinesisanalytics-flink",
3443
+ "directory": "packages/@aws-cdk/aws-kinesisanalytics-flink-alpha",
3444
3444
  "type": "git",
3445
3445
  "url": "https://github.com/aws/aws-cdk.git"
3446
3446
  },
@@ -6229,6 +6229,6 @@
6229
6229
  "symbolId": "lib/types:Runtime"
6230
6230
  }
6231
6231
  },
6232
- "version": "2.72.1-alpha.0",
6232
+ "version": "2.74.0-alpha.0",
6233
6233
  "fingerprint": "**********"
6234
6234
  }
@@ -33,7 +33,7 @@ class ApplicationCode {
33
33
  }
34
34
  }
35
35
  _a = JSII_RTTI_SYMBOL_1;
36
- ApplicationCode[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode", version: "2.72.1-alpha.0" };
36
+ ApplicationCode[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode", version: "2.74.0-alpha.0" };
37
37
  exports.ApplicationCode = ApplicationCode;
38
38
  class BucketApplicationCode extends ApplicationCode {
39
39
  constructor(props) {
@@ -542,7 +542,7 @@ class Application extends ApplicationBase {
542
542
  }
543
543
  }
544
544
  _a = JSII_RTTI_SYMBOL_1;
545
- Application[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.Application", version: "2.72.1-alpha.0" };
545
+ Application[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.Application", version: "2.74.0-alpha.0" };
546
546
  exports.Application = Application;
547
547
  function applicationArnComponents(resourceName) {
548
548
  return {
package/lib/types.js CHANGED
@@ -44,7 +44,7 @@ class Runtime {
44
44
  }
45
45
  }
46
46
  _a = JSII_RTTI_SYMBOL_1;
47
- Runtime[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime", version: "2.72.1-alpha.0" };
47
+ Runtime[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime", version: "2.74.0-alpha.0" };
48
48
  /** Flink Version 1.6 */
49
49
  Runtime.FLINK_1_6 = Runtime.of('FLINK-1_6');
50
50
  /** Flink Version 1.8 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/aws-kinesisanalytics-flink-alpha",
3
- "version": "2.72.1-alpha.0",
3
+ "version": "2.74.0-alpha.0",
4
4
  "description": "A CDK Construct Library for Kinesis Analytics Flink applications",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  "repository": {
45
45
  "type": "git",
46
46
  "url": "https://github.com/aws/aws-cdk.git",
47
- "directory": "packages/individual-packages/aws-kinesisanalytics-flink"
47
+ "directory": "packages/@aws-cdk/aws-kinesisanalytics-flink-alpha"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "cdk-build",
@@ -77,19 +77,19 @@
77
77
  },
78
78
  "license": "Apache-2.0",
79
79
  "devDependencies": {
80
- "@aws-cdk/cdk-build-tools": "2.72.1",
81
- "@aws-cdk/integ-runner": "2.72.1",
82
- "@aws-cdk/pkglint": "2.72.1",
80
+ "@aws-cdk/cdk-build-tools": "2.74.0-alpha.0",
81
+ "@aws-cdk/integ-runner": "2.74.0-alpha.0",
82
+ "@aws-cdk/pkglint": "2.74.0-alpha.0",
83
83
  "@types/jest": "^27.5.2",
84
84
  "jest": "^27.5.1",
85
- "aws-cdk-lib": "2.72.1",
85
+ "aws-cdk-lib": "2.74.0",
86
86
  "constructs": "^10.0.0",
87
- "@aws-cdk/integ-tests-alpha": "2.72.1-alpha.0"
87
+ "@aws-cdk/integ-tests-alpha": "2.74.0-alpha.0"
88
88
  },
89
89
  "dependencies": {},
90
90
  "homepage": "https://github.com/aws/aws-cdk",
91
91
  "peerDependencies": {
92
- "aws-cdk-lib": "^2.72.1",
92
+ "aws-cdk-lib": "2.74.0",
93
93
  "constructs": "^10.0.0"
94
94
  },
95
95
  "engines": {
@@ -120,4 +120,4 @@
120
120
  "assert/assert-dependency"
121
121
  ]
122
122
  }
123
- }
123
+ }