@aws-cdk/aws-kinesisanalytics-flink-alpha 2.40.0-alpha.0 → 2.42.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 +42 -3
- package/.jsii.tabl.json.gz +0 -0
- package/lib/application-code.js +1 -1
- package/lib/application.js +1 -1
- package/lib/types.js +1 -1
- package/package.json +6 -6
- package/.jsii.tabl.json +0 -837
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.42.0",
|
|
12
12
|
"constructs": "^10.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencyClosure": {
|
|
@@ -730,6 +730,19 @@
|
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
},
|
|
733
|
+
"aws-cdk-lib.aws_controltower": {
|
|
734
|
+
"targets": {
|
|
735
|
+
"dotnet": {
|
|
736
|
+
"namespace": "Amazon.CDK.AWS.ControlTower"
|
|
737
|
+
},
|
|
738
|
+
"java": {
|
|
739
|
+
"package": "software.amazon.awscdk.services.controltower"
|
|
740
|
+
},
|
|
741
|
+
"python": {
|
|
742
|
+
"module": "aws_cdk.aws_controltower"
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
},
|
|
733
746
|
"aws-cdk-lib.aws_cur": {
|
|
734
747
|
"targets": {
|
|
735
748
|
"dotnet": {
|
|
@@ -1848,6 +1861,19 @@
|
|
|
1848
1861
|
}
|
|
1849
1862
|
}
|
|
1850
1863
|
},
|
|
1864
|
+
"aws-cdk-lib.aws_m2": {
|
|
1865
|
+
"targets": {
|
|
1866
|
+
"dotnet": {
|
|
1867
|
+
"namespace": "Amazon.CDK.AWS.M2"
|
|
1868
|
+
},
|
|
1869
|
+
"java": {
|
|
1870
|
+
"package": "software.amazon.awscdk.services.m2"
|
|
1871
|
+
},
|
|
1872
|
+
"python": {
|
|
1873
|
+
"module": "aws_cdk.aws_m2"
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
},
|
|
1851
1877
|
"aws-cdk-lib.aws_macie": {
|
|
1852
1878
|
"targets": {
|
|
1853
1879
|
"dotnet": {
|
|
@@ -2706,6 +2732,19 @@
|
|
|
2706
2732
|
}
|
|
2707
2733
|
}
|
|
2708
2734
|
},
|
|
2735
|
+
"aws-cdk-lib.aws_supportapp": {
|
|
2736
|
+
"targets": {
|
|
2737
|
+
"dotnet": {
|
|
2738
|
+
"namespace": "Amazon.CDK.AWS.SupportApp"
|
|
2739
|
+
},
|
|
2740
|
+
"java": {
|
|
2741
|
+
"package": "software.amazon.awscdk.services.supportapp"
|
|
2742
|
+
},
|
|
2743
|
+
"python": {
|
|
2744
|
+
"module": "aws_cdk.aws_supportapp"
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
},
|
|
2709
2748
|
"aws-cdk-lib.aws_synthetics": {
|
|
2710
2749
|
"targets": {
|
|
2711
2750
|
"dotnet": {
|
|
@@ -3024,7 +3063,7 @@
|
|
|
3024
3063
|
"stability": "experimental"
|
|
3025
3064
|
},
|
|
3026
3065
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
3027
|
-
"jsiiVersion": "1.
|
|
3066
|
+
"jsiiVersion": "1.67.0 (build 2c027f5)",
|
|
3028
3067
|
"keywords": [
|
|
3029
3068
|
"aws",
|
|
3030
3069
|
"cdk",
|
|
@@ -5636,6 +5675,6 @@
|
|
|
5636
5675
|
"symbolId": "lib/types:Runtime"
|
|
5637
5676
|
}
|
|
5638
5677
|
},
|
|
5639
|
-
"version": "2.
|
|
5678
|
+
"version": "2.42.0-alpha.0",
|
|
5640
5679
|
"fingerprint": "**********"
|
|
5641
5680
|
}
|
|
Binary file
|
package/lib/application-code.js
CHANGED
|
@@ -34,7 +34,7 @@ class ApplicationCode {
|
|
|
34
34
|
}
|
|
35
35
|
exports.ApplicationCode = ApplicationCode;
|
|
36
36
|
_a = JSII_RTTI_SYMBOL_1;
|
|
37
|
-
ApplicationCode[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode", version: "2.
|
|
37
|
+
ApplicationCode[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode", version: "2.42.0-alpha.0" };
|
|
38
38
|
class BucketApplicationCode extends ApplicationCode {
|
|
39
39
|
constructor(props) {
|
|
40
40
|
super();
|
package/lib/application.js
CHANGED
|
@@ -480,7 +480,7 @@ class Application extends ApplicationBase {
|
|
|
480
480
|
}
|
|
481
481
|
exports.Application = Application;
|
|
482
482
|
_a = JSII_RTTI_SYMBOL_1;
|
|
483
|
-
Application[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.Application", version: "2.
|
|
483
|
+
Application[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.Application", version: "2.42.0-alpha.0" };
|
|
484
484
|
function applicationArnComponents(resourceName) {
|
|
485
485
|
return {
|
|
486
486
|
service: 'kinesisanalytics',
|
package/lib/types.js
CHANGED
|
@@ -45,7 +45,7 @@ class Runtime {
|
|
|
45
45
|
}
|
|
46
46
|
exports.Runtime = Runtime;
|
|
47
47
|
_a = JSII_RTTI_SYMBOL_1;
|
|
48
|
-
Runtime[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime", version: "2.
|
|
48
|
+
Runtime[_a] = { fqn: "@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime", version: "2.42.0-alpha.0" };
|
|
49
49
|
/** Flink Version 1.6 */
|
|
50
50
|
Runtime.FLINK_1_6 = Runtime.of('FLINK-1_6');
|
|
51
51
|
/** 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.
|
|
3
|
+
"version": "2.42.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",
|
|
@@ -77,18 +77,18 @@
|
|
|
77
77
|
},
|
|
78
78
|
"license": "Apache-2.0",
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@aws-cdk/cdk-build-tools": "2.
|
|
81
|
-
"@aws-cdk/integ-runner": "2.
|
|
82
|
-
"@aws-cdk/pkglint": "2.
|
|
80
|
+
"@aws-cdk/cdk-build-tools": "2.42.0",
|
|
81
|
+
"@aws-cdk/integ-runner": "2.42.0",
|
|
82
|
+
"@aws-cdk/pkglint": "2.42.0",
|
|
83
83
|
"@types/jest": "^27.5.2",
|
|
84
84
|
"jest": "^27.5.1",
|
|
85
|
-
"aws-cdk-lib": "2.
|
|
85
|
+
"aws-cdk-lib": "2.42.0",
|
|
86
86
|
"constructs": "^10.0.0"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {},
|
|
89
89
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"aws-cdk-lib": "^2.
|
|
91
|
+
"aws-cdk-lib": "^2.42.0",
|
|
92
92
|
"constructs": "^10.0.0"
|
|
93
93
|
},
|
|
94
94
|
"engines": {
|
package/.jsii.tabl.json
DELETED
|
@@ -1,837 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2",
|
|
3
|
-
"toolVersion": "1.66.0",
|
|
4
|
-
"snippets": {
|
|
5
|
-
"e34de55e9b475aa63dfdac01d52fc44a7aa6a1b57af865c3b3b0d9f7f00524bd": {
|
|
6
|
-
"translations": {
|
|
7
|
-
"python": {
|
|
8
|
-
"source": "import path as path\nimport aws_cdk.aws_cloudwatch as cloudwatch\nimport aws_cdk as core\nimport aws_cdk.aws_kinesisanalytics_flink_alpha as flink\n\napp = core.App()\nstack = core.Stack(app, \"FlinkAppTest\")\n\nflink_app = flink.Application(stack, \"App\",\n code=flink.ApplicationCode.from_asset(path.join(__dirname, \"code-asset\")),\n runtime=flink.Runtime.FLINK_1_11\n)\n\ncloudwatch.Alarm(stack, \"Alarm\",\n metric=flink_app.metric_full_restarts(),\n evaluation_periods=1,\n threshold=3\n)\n\napp.synth()",
|
|
9
|
-
"version": "2"
|
|
10
|
-
},
|
|
11
|
-
"csharp": {
|
|
12
|
-
"source": "using Path;\nusing Amazon.CDK.AWS.CloudWatch;\nusing Amazon.CDK;\nusing Amazon.CDK.AWS.Kinesisanalytics.Flink.Alpha;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppTest\");\n\nApplication flinkApp = new Application(stack, \"App\", new ApplicationProps {\n Code = ApplicationCode.FromAsset(Join(__dirname, \"code-asset\")),\n Runtime = Runtime.FLINK_1_11\n});\n\nnew Alarm(stack, \"Alarm\", new AlarmProps {\n Metric = flinkApp.MetricFullRestarts(),\n EvaluationPeriods = 1,\n Threshold = 3\n});\n\napp.Synth();",
|
|
13
|
-
"version": "1"
|
|
14
|
-
},
|
|
15
|
-
"java": {
|
|
16
|
-
"source": "import path.*;\nimport software.amazon.awscdk.services.cloudwatch.*;\nimport software.amazon.awscdk.*;\nimport software.amazon.awscdk.services.kinesisanalytics.flink.alpha.*;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppTest\");\n\nApplication flinkApp = Application.Builder.create(stack, \"App\")\n .code(ApplicationCode.fromAsset(join(__dirname, \"code-asset\")))\n .runtime(Runtime.FLINK_1_11)\n .build();\n\nAlarm.Builder.create(stack, \"Alarm\")\n .metric(flinkApp.metricFullRestarts())\n .evaluationPeriods(1)\n .threshold(3)\n .build();\n\napp.synth();",
|
|
17
|
-
"version": "1"
|
|
18
|
-
},
|
|
19
|
-
"go": {
|
|
20
|
-
"source": "import path \"github.com/aws-samples/dummy/path\"\nimport cloudwatch \"github.com/aws/aws-cdk-go/awscdk\"\nimport core \"github.com/aws/aws-cdk-go/awscdk\"\nimport flink \"github.com/aws/aws-cdk-go/awscdkkinesisanalyticsflinkalpha\"\n\napp := core.NewApp()\nstack := core.NewStack(app, jsii.String(\"FlinkAppTest\"))\n\nflinkApp := flink.NewApplication(stack, jsii.String(\"App\"), &applicationProps{\n\tcode: flink.applicationCode.fromAsset(path.join(__dirname, jsii.String(\"code-asset\"))),\n\truntime: flink.runtime_FLINK_1_11(),\n})\n\ncloudwatch.NewAlarm(stack, jsii.String(\"Alarm\"), &alarmProps{\n\tmetric: flinkApp.metricFullRestarts(),\n\tevaluationPeriods: jsii.Number(1),\n\tthreshold: jsii.Number(3),\n})\n\napp.synth()",
|
|
21
|
-
"version": "1"
|
|
22
|
-
},
|
|
23
|
-
"$": {
|
|
24
|
-
"source": "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();",
|
|
25
|
-
"version": "0"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"location": {
|
|
29
|
-
"api": {
|
|
30
|
-
"api": "moduleReadme",
|
|
31
|
-
"moduleFqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha"
|
|
32
|
-
},
|
|
33
|
-
"field": {
|
|
34
|
-
"field": "markdown",
|
|
35
|
-
"line": 27
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"didCompile": true,
|
|
39
|
-
"fqnsReferenced": [
|
|
40
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
41
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
42
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromAsset",
|
|
43
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
44
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
45
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_11",
|
|
46
|
-
"aws-cdk-lib.App",
|
|
47
|
-
"aws-cdk-lib.Stack",
|
|
48
|
-
"aws-cdk-lib.Stage#synth",
|
|
49
|
-
"aws-cdk-lib.aws_cloudwatch.Alarm",
|
|
50
|
-
"aws-cdk-lib.aws_cloudwatch.AlarmProps",
|
|
51
|
-
"aws-cdk-lib.aws_cloudwatch.IMetric",
|
|
52
|
-
"constructs.Construct"
|
|
53
|
-
],
|
|
54
|
-
"fullSource": "///! 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",
|
|
55
|
-
"syntaxKindCounter": {
|
|
56
|
-
"8": 2,
|
|
57
|
-
"10": 8,
|
|
58
|
-
"75": 36,
|
|
59
|
-
"193": 2,
|
|
60
|
-
"194": 11,
|
|
61
|
-
"196": 4,
|
|
62
|
-
"197": 4,
|
|
63
|
-
"225": 3,
|
|
64
|
-
"226": 2,
|
|
65
|
-
"242": 3,
|
|
66
|
-
"243": 3,
|
|
67
|
-
"254": 4,
|
|
68
|
-
"255": 4,
|
|
69
|
-
"256": 4,
|
|
70
|
-
"281": 5,
|
|
71
|
-
"290": 1
|
|
72
|
-
},
|
|
73
|
-
"fqnsFingerprint": "a04acfc76e07702196ab119dc283c6249fc8e975d85bdbb386decb85a45620b2"
|
|
74
|
-
},
|
|
75
|
-
"5f07703f347c0152a5b08697fae3d12084359084156d88a0ad7c5ea5248beae6": {
|
|
76
|
-
"translations": {
|
|
77
|
-
"python": {
|
|
78
|
-
"source": "import path as path\nimport aws_cdk.aws_s3_assets as assets\nimport aws_cdk as core\nimport aws_cdk.aws_kinesisanalytics_flink_alpha as flink\n\napp = core.App()\nstack = core.Stack(app, \"FlinkAppCodeFromBucketTest\")\n\nasset = assets.Asset(stack, \"CodeAsset\",\n path=path.join(__dirname, \"code-asset\")\n)\nbucket = asset.bucket\nfile_key = asset.s3_object_key\n\nflink.Application(stack, \"App\",\n code=flink.ApplicationCode.from_bucket(bucket, file_key),\n runtime=flink.Runtime.FLINK_1_11\n)\n\napp.synth()",
|
|
79
|
-
"version": "2"
|
|
80
|
-
},
|
|
81
|
-
"csharp": {
|
|
82
|
-
"source": "using Path;\nusing Amazon.CDK.AWS.S3.Assets;\nusing Amazon.CDK;\nusing Amazon.CDK.AWS.Kinesisanalytics.Flink.Alpha;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppCodeFromBucketTest\");\n\nAsset asset = new Asset(stack, \"CodeAsset\", new AssetProps {\n Path = Join(__dirname, \"code-asset\")\n});\nIBucket bucket = asset.Bucket;\nstring fileKey = asset.S3ObjectKey;\n\nnew Application(stack, \"App\", new ApplicationProps {\n Code = ApplicationCode.FromBucket(bucket, fileKey),\n Runtime = Runtime.FLINK_1_11\n});\n\napp.Synth();",
|
|
83
|
-
"version": "1"
|
|
84
|
-
},
|
|
85
|
-
"java": {
|
|
86
|
-
"source": "import path.*;\nimport software.amazon.awscdk.services.s3.assets.*;\nimport software.amazon.awscdk.*;\nimport software.amazon.awscdk.services.kinesisanalytics.flink.alpha.*;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppCodeFromBucketTest\");\n\nAsset asset = Asset.Builder.create(stack, \"CodeAsset\")\n .path(join(__dirname, \"code-asset\"))\n .build();\nIBucket bucket = asset.getBucket();\nString fileKey = asset.getS3ObjectKey();\n\nApplication.Builder.create(stack, \"App\")\n .code(ApplicationCode.fromBucket(bucket, fileKey))\n .runtime(Runtime.FLINK_1_11)\n .build();\n\napp.synth();",
|
|
87
|
-
"version": "1"
|
|
88
|
-
},
|
|
89
|
-
"go": {
|
|
90
|
-
"source": "import path \"github.com/aws-samples/dummy/path\"\nimport assets \"github.com/aws/aws-cdk-go/awscdk\"\nimport core \"github.com/aws/aws-cdk-go/awscdk\"\nimport flink \"github.com/aws/aws-cdk-go/awscdkkinesisanalyticsflinkalpha\"\n\napp := core.NewApp()\nstack := core.NewStack(app, jsii.String(\"FlinkAppCodeFromBucketTest\"))\n\nasset := assets.NewAsset(stack, jsii.String(\"CodeAsset\"), &assetProps{\n\tpath: path.join(__dirname, jsii.String(\"code-asset\")),\n})\nbucket := asset.bucket\nfileKey := asset.s3ObjectKey\n\nflink.NewApplication(stack, jsii.String(\"App\"), &applicationProps{\n\tcode: flink.applicationCode.fromBucket(bucket, fileKey),\n\truntime: flink.runtime_FLINK_1_11(),\n})\n\napp.synth()",
|
|
91
|
-
"version": "1"
|
|
92
|
-
},
|
|
93
|
-
"$": {
|
|
94
|
-
"source": "import * 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();",
|
|
95
|
-
"version": "0"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"location": {
|
|
99
|
-
"api": {
|
|
100
|
-
"api": "moduleReadme",
|
|
101
|
-
"moduleFqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha"
|
|
102
|
-
},
|
|
103
|
-
"field": {
|
|
104
|
-
"field": "markdown",
|
|
105
|
-
"line": 56
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"didCompile": true,
|
|
109
|
-
"fqnsReferenced": [
|
|
110
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
111
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
112
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromBucket",
|
|
113
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
114
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
115
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_11",
|
|
116
|
-
"aws-cdk-lib.App",
|
|
117
|
-
"aws-cdk-lib.Stack",
|
|
118
|
-
"aws-cdk-lib.Stage#synth",
|
|
119
|
-
"aws-cdk-lib.aws_s3.IBucket",
|
|
120
|
-
"aws-cdk-lib.aws_s3_assets.Asset",
|
|
121
|
-
"aws-cdk-lib.aws_s3_assets.Asset#bucket",
|
|
122
|
-
"aws-cdk-lib.aws_s3_assets.Asset#s3ObjectKey",
|
|
123
|
-
"aws-cdk-lib.aws_s3_assets.AssetProps",
|
|
124
|
-
"constructs.Construct"
|
|
125
|
-
],
|
|
126
|
-
"fullSource": "import * 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",
|
|
127
|
-
"syntaxKindCounter": {
|
|
128
|
-
"10": 8,
|
|
129
|
-
"75": 40,
|
|
130
|
-
"193": 2,
|
|
131
|
-
"194": 12,
|
|
132
|
-
"196": 3,
|
|
133
|
-
"197": 4,
|
|
134
|
-
"225": 5,
|
|
135
|
-
"226": 2,
|
|
136
|
-
"242": 5,
|
|
137
|
-
"243": 5,
|
|
138
|
-
"254": 4,
|
|
139
|
-
"255": 4,
|
|
140
|
-
"256": 4,
|
|
141
|
-
"281": 3,
|
|
142
|
-
"290": 1
|
|
143
|
-
},
|
|
144
|
-
"fqnsFingerprint": "cf670df7a6c0646fcf36f5ab52c4ef8aaacd444532bdb010c70ca08d8d63fee2"
|
|
145
|
-
},
|
|
146
|
-
"bf19da6d0c3c17ef8c8bb9b4dff2184be744c50282bcb81d96d93597fb7c6d68": {
|
|
147
|
-
"translations": {
|
|
148
|
-
"python": {
|
|
149
|
-
"source": "# bucket: s3.Bucket\n\nflink_app = flink.Application(self, \"Application\",\n property_groups=flink.PropertyGroups(\n FlinkApplicationProperties={\n \"input_stream_name\": \"my-input-kinesis-stream\",\n \"output_stream_name\": \"my-output-kinesis-stream\"\n }\n ),\n # ...\n runtime=flink.Runtime.FLINK_1_13,\n code=flink.ApplicationCode.from_bucket(bucket, \"my-app.jar\")\n)",
|
|
150
|
-
"version": "2"
|
|
151
|
-
},
|
|
152
|
-
"csharp": {
|
|
153
|
-
"source": "Bucket bucket;\n\nApplication flinkApp = new Application(this, \"Application\", new ApplicationProps {\n PropertyGroups = new PropertyGroups {\n FlinkApplicationProperties = new Dictionary<string, string> {\n { \"inputStreamName\", \"my-input-kinesis-stream\" },\n { \"outputStreamName\", \"my-output-kinesis-stream\" }\n }\n },\n // ...\n Runtime = Runtime.FLINK_1_13,\n Code = ApplicationCode.FromBucket(bucket, \"my-app.jar\")\n});",
|
|
154
|
-
"version": "1"
|
|
155
|
-
},
|
|
156
|
-
"java": {
|
|
157
|
-
"source": "Bucket bucket;\n\nApplication flinkApp = Application.Builder.create(this, \"Application\")\n .propertyGroups(PropertyGroups.builder()\n .FlinkApplicationProperties(Map.of(\n \"inputStreamName\", \"my-input-kinesis-stream\",\n \"outputStreamName\", \"my-output-kinesis-stream\"))\n .build())\n // ...\n .runtime(Runtime.FLINK_1_13)\n .code(ApplicationCode.fromBucket(bucket, \"my-app.jar\"))\n .build();",
|
|
158
|
-
"version": "1"
|
|
159
|
-
},
|
|
160
|
-
"go": {
|
|
161
|
-
"source": "var bucket bucket\n\nflinkApp := flink.NewApplication(this, jsii.String(\"Application\"), &applicationProps{\n\tpropertyGroups: &propertyGroups{\n\t\tflinkApplicationProperties: map[string]*string{\n\t\t\t\"inputStreamName\": jsii.String(\"my-input-kinesis-stream\"),\n\t\t\t\"outputStreamName\": jsii.String(\"my-output-kinesis-stream\"),\n\t\t},\n\t},\n\t// ...\n\truntime: flink.runtime_FLINK_1_13(),\n\tcode: flink.applicationCode.fromBucket(bucket, jsii.String(\"my-app.jar\")),\n})",
|
|
162
|
-
"version": "1"
|
|
163
|
-
},
|
|
164
|
-
"$": {
|
|
165
|
-
"source": "declare 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});",
|
|
166
|
-
"version": "0"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
"location": {
|
|
170
|
-
"api": {
|
|
171
|
-
"api": "moduleReadme",
|
|
172
|
-
"moduleFqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha"
|
|
173
|
-
},
|
|
174
|
-
"field": {
|
|
175
|
-
"field": "markdown",
|
|
176
|
-
"line": 87
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
"didCompile": true,
|
|
180
|
-
"fqnsReferenced": [
|
|
181
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
182
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
183
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromBucket",
|
|
184
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
185
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.PropertyGroups",
|
|
186
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
187
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_13",
|
|
188
|
-
"aws-cdk-lib.aws_s3.IBucket",
|
|
189
|
-
"constructs.Construct"
|
|
190
|
-
],
|
|
191
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from 'aws-cdk-lib'; \nimport * as flink from '@aws-cdk/aws-kinesisanalytics-flink-alpha';\nimport * as logs from 'aws-cdk-lib/aws-logs';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
192
|
-
"syntaxKindCounter": {
|
|
193
|
-
"10": 4,
|
|
194
|
-
"75": 19,
|
|
195
|
-
"104": 1,
|
|
196
|
-
"130": 1,
|
|
197
|
-
"153": 1,
|
|
198
|
-
"169": 1,
|
|
199
|
-
"193": 3,
|
|
200
|
-
"194": 5,
|
|
201
|
-
"196": 1,
|
|
202
|
-
"197": 1,
|
|
203
|
-
"225": 2,
|
|
204
|
-
"242": 2,
|
|
205
|
-
"243": 2,
|
|
206
|
-
"281": 6,
|
|
207
|
-
"290": 1
|
|
208
|
-
},
|
|
209
|
-
"fqnsFingerprint": "270b5bb76ab051443e46b6262be3be564f4929729eeec7e654516ae5ee87048d"
|
|
210
|
-
},
|
|
211
|
-
"89eccab115fe1f1739ae6ec49d75f867b155e31391f5356ee827dff3d8772f59": {
|
|
212
|
-
"translations": {
|
|
213
|
-
"python": {
|
|
214
|
-
"source": "# bucket: s3.Bucket\n\nflink_app = flink.Application(self, \"Application\",\n code=flink.ApplicationCode.from_bucket(bucket, \"my-app.jar\"),\n runtime=flink.Runtime.FLINK_1_13,\n checkpointing_enabled=True, # default is true\n checkpoint_interval=Duration.seconds(30), # default is 1 minute\n min_pause_between_checkpoints=Duration.seconds(10), # default is 5 seconds\n log_level=flink.LogLevel.ERROR, # default is INFO\n metrics_level=flink.MetricsLevel.PARALLELISM, # default is APPLICATION\n auto_scaling_enabled=False, # default is true\n parallelism=32, # default is 1\n parallelism_per_kpu=2, # default is 1\n snapshots_enabled=False, # default is true\n log_group=logs.LogGroup(self, \"LogGroup\")\n)",
|
|
215
|
-
"version": "2"
|
|
216
|
-
},
|
|
217
|
-
"csharp": {
|
|
218
|
-
"source": "Bucket bucket;\n\nApplication flinkApp = new Application(this, \"Application\", new ApplicationProps {\n Code = ApplicationCode.FromBucket(bucket, \"my-app.jar\"),\n Runtime = 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 = LogLevel.ERROR, // default is INFO\n MetricsLevel = 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 LogGroup(this, \"LogGroup\")\n});",
|
|
219
|
-
"version": "1"
|
|
220
|
-
},
|
|
221
|
-
"java": {
|
|
222
|
-
"source": "Bucket bucket;\n\nApplication flinkApp = Application.Builder.create(this, \"Application\")\n .code(ApplicationCode.fromBucket(bucket, \"my-app.jar\"))\n .runtime(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(LogLevel.ERROR) // default is INFO\n .metricsLevel(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 LogGroup(this, \"LogGroup\"))\n .build();",
|
|
223
|
-
"version": "1"
|
|
224
|
-
},
|
|
225
|
-
"go": {
|
|
226
|
-
"source": "var bucket bucket\n\nflinkApp := flink.NewApplication(this, jsii.String(\"Application\"), &applicationProps{\n\tcode: flink.applicationCode.fromBucket(bucket, jsii.String(\"my-app.jar\")),\n\truntime: flink.runtime_FLINK_1_13(),\n\tcheckpointingEnabled: jsii.Boolean(true),\n\t // default is true\n\tcheckpointInterval: awscdk.Duration.seconds(jsii.Number(30)),\n\t // default is 1 minute\n\tminPauseBetweenCheckpoints: awscdk.Duration.seconds(jsii.Number(10)),\n\t // default is 5 seconds\n\tlogLevel: flink.logLevel_ERROR,\n\t // default is INFO\n\tmetricsLevel: flink.metricsLevel_PARALLELISM,\n\t // default is APPLICATION\n\tautoScalingEnabled: jsii.Boolean(false),\n\t // default is true\n\tparallelism: jsii.Number(32),\n\t // default is 1\n\tparallelismPerKpu: jsii.Number(2),\n\t // default is 1\n\tsnapshotsEnabled: jsii.Boolean(false),\n\t // default is true\n\tlogGroup: logs.NewLogGroup(this, jsii.String(\"LogGroup\")),\n})",
|
|
227
|
-
"version": "1"
|
|
228
|
-
},
|
|
229
|
-
"$": {
|
|
230
|
-
"source": "declare 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});",
|
|
231
|
-
"version": "0"
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
"location": {
|
|
235
|
-
"api": {
|
|
236
|
-
"api": "moduleReadme",
|
|
237
|
-
"moduleFqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha"
|
|
238
|
-
},
|
|
239
|
-
"field": {
|
|
240
|
-
"field": "markdown",
|
|
241
|
-
"line": 106
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
"didCompile": true,
|
|
245
|
-
"fqnsReferenced": [
|
|
246
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
247
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
248
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromBucket",
|
|
249
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
250
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.LogLevel",
|
|
251
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.LogLevel#ERROR",
|
|
252
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.MetricsLevel",
|
|
253
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.MetricsLevel#PARALLELISM",
|
|
254
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
255
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_13",
|
|
256
|
-
"aws-cdk-lib.Duration",
|
|
257
|
-
"aws-cdk-lib.Duration#seconds",
|
|
258
|
-
"aws-cdk-lib.aws_logs.ILogGroup",
|
|
259
|
-
"aws-cdk-lib.aws_logs.LogGroup",
|
|
260
|
-
"aws-cdk-lib.aws_s3.IBucket",
|
|
261
|
-
"constructs.Construct"
|
|
262
|
-
],
|
|
263
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from 'aws-cdk-lib'; \nimport * as flink from '@aws-cdk/aws-kinesisanalytics-flink-alpha';\nimport * as logs from 'aws-cdk-lib/aws-logs';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
264
|
-
"syntaxKindCounter": {
|
|
265
|
-
"8": 4,
|
|
266
|
-
"10": 3,
|
|
267
|
-
"75": 37,
|
|
268
|
-
"91": 2,
|
|
269
|
-
"104": 2,
|
|
270
|
-
"106": 1,
|
|
271
|
-
"130": 1,
|
|
272
|
-
"153": 1,
|
|
273
|
-
"169": 1,
|
|
274
|
-
"193": 1,
|
|
275
|
-
"194": 12,
|
|
276
|
-
"196": 3,
|
|
277
|
-
"197": 2,
|
|
278
|
-
"225": 2,
|
|
279
|
-
"242": 2,
|
|
280
|
-
"243": 2,
|
|
281
|
-
"281": 12,
|
|
282
|
-
"290": 1
|
|
283
|
-
},
|
|
284
|
-
"fqnsFingerprint": "a93d991623aea2392523adc4f09de7952beea98bf1906d9c61439aa10aa6954c"
|
|
285
|
-
},
|
|
286
|
-
"359117e2d3fef48b4cb44c2b9ca02eab93a2eb64d8812d5faf33b53509d7bec3": {
|
|
287
|
-
"translations": {
|
|
288
|
-
"python": {
|
|
289
|
-
"source": "import path as path\nimport aws_cdk.aws_cloudwatch as cloudwatch\nimport aws_cdk as core\nimport aws_cdk.aws_kinesisanalytics_flink_alpha as flink\n\napp = core.App()\nstack = core.Stack(app, \"FlinkAppTest\")\n\nflink_app = flink.Application(stack, \"App\",\n code=flink.ApplicationCode.from_asset(path.join(__dirname, \"code-asset\")),\n runtime=flink.Runtime.FLINK_1_11\n)\n\ncloudwatch.Alarm(stack, \"Alarm\",\n metric=flink_app.metric_full_restarts(),\n evaluation_periods=1,\n threshold=3\n)\n\napp.synth()",
|
|
290
|
-
"version": "2"
|
|
291
|
-
},
|
|
292
|
-
"csharp": {
|
|
293
|
-
"source": "using Path;\nusing Amazon.CDK.AWS.CloudWatch;\nusing Amazon.CDK;\nusing Amazon.CDK.AWS.Kinesisanalytics.Flink.Alpha;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppTest\");\n\nApplication flinkApp = new Application(stack, \"App\", new ApplicationProps {\n Code = ApplicationCode.FromAsset(Join(__dirname, \"code-asset\")),\n Runtime = Runtime.FLINK_1_11\n});\n\nnew Alarm(stack, \"Alarm\", new AlarmProps {\n Metric = flinkApp.MetricFullRestarts(),\n EvaluationPeriods = 1,\n Threshold = 3\n});\n\napp.Synth();",
|
|
294
|
-
"version": "1"
|
|
295
|
-
},
|
|
296
|
-
"java": {
|
|
297
|
-
"source": "import path.*;\nimport software.amazon.awscdk.services.cloudwatch.*;\nimport software.amazon.awscdk.*;\nimport software.amazon.awscdk.services.kinesisanalytics.flink.alpha.*;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppTest\");\n\nApplication flinkApp = Application.Builder.create(stack, \"App\")\n .code(ApplicationCode.fromAsset(join(__dirname, \"code-asset\")))\n .runtime(Runtime.FLINK_1_11)\n .build();\n\nAlarm.Builder.create(stack, \"Alarm\")\n .metric(flinkApp.metricFullRestarts())\n .evaluationPeriods(1)\n .threshold(3)\n .build();\n\napp.synth();",
|
|
298
|
-
"version": "1"
|
|
299
|
-
},
|
|
300
|
-
"go": {
|
|
301
|
-
"source": "import path \"github.com/aws-samples/dummy/path\"\nimport cloudwatch \"github.com/aws/aws-cdk-go/awscdk\"\nimport core \"github.com/aws/aws-cdk-go/awscdk\"\nimport flink \"github.com/aws/aws-cdk-go/awscdkkinesisanalyticsflinkalpha\"\n\napp := core.NewApp()\nstack := core.NewStack(app, jsii.String(\"FlinkAppTest\"))\n\nflinkApp := flink.NewApplication(stack, jsii.String(\"App\"), &applicationProps{\n\tcode: flink.applicationCode.fromAsset(path.join(__dirname, jsii.String(\"code-asset\"))),\n\truntime: flink.runtime_FLINK_1_11(),\n})\n\ncloudwatch.NewAlarm(stack, jsii.String(\"Alarm\"), &alarmProps{\n\tmetric: flinkApp.metricFullRestarts(),\n\tevaluationPeriods: jsii.Number(1),\n\tthreshold: jsii.Number(3),\n})\n\napp.synth()",
|
|
302
|
-
"version": "1"
|
|
303
|
-
},
|
|
304
|
-
"$": {
|
|
305
|
-
"source": "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();",
|
|
306
|
-
"version": "0"
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"location": {
|
|
310
|
-
"api": {
|
|
311
|
-
"api": "type",
|
|
312
|
-
"fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.Application"
|
|
313
|
-
},
|
|
314
|
-
"field": {
|
|
315
|
-
"field": "example"
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
"didCompile": true,
|
|
319
|
-
"fqnsReferenced": [
|
|
320
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
321
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
322
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromAsset",
|
|
323
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
324
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
325
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_11",
|
|
326
|
-
"aws-cdk-lib.App",
|
|
327
|
-
"aws-cdk-lib.Stack",
|
|
328
|
-
"aws-cdk-lib.Stage#synth",
|
|
329
|
-
"aws-cdk-lib.aws_cloudwatch.Alarm",
|
|
330
|
-
"aws-cdk-lib.aws_cloudwatch.AlarmProps",
|
|
331
|
-
"aws-cdk-lib.aws_cloudwatch.IMetric",
|
|
332
|
-
"constructs.Construct"
|
|
333
|
-
],
|
|
334
|
-
"fullSource": "///! 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",
|
|
335
|
-
"syntaxKindCounter": {
|
|
336
|
-
"8": 2,
|
|
337
|
-
"10": 8,
|
|
338
|
-
"75": 36,
|
|
339
|
-
"193": 2,
|
|
340
|
-
"194": 11,
|
|
341
|
-
"196": 4,
|
|
342
|
-
"197": 4,
|
|
343
|
-
"225": 3,
|
|
344
|
-
"226": 2,
|
|
345
|
-
"242": 3,
|
|
346
|
-
"243": 3,
|
|
347
|
-
"254": 4,
|
|
348
|
-
"255": 4,
|
|
349
|
-
"256": 4,
|
|
350
|
-
"281": 5,
|
|
351
|
-
"290": 1
|
|
352
|
-
},
|
|
353
|
-
"fqnsFingerprint": "a04acfc76e07702196ab119dc283c6249fc8e975d85bdbb386decb85a45620b2"
|
|
354
|
-
},
|
|
355
|
-
"91f453794719cd160680c910fca79bd46c2875dc32be22b38d0d92c0706527ca": {
|
|
356
|
-
"translations": {
|
|
357
|
-
"python": {
|
|
358
|
-
"source": "import path as path\nimport aws_cdk.aws_cloudwatch as cloudwatch\nimport aws_cdk as core\nimport aws_cdk.aws_kinesisanalytics_flink_alpha as flink\n\napp = core.App()\nstack = core.Stack(app, \"FlinkAppTest\")\n\nflink_app = flink.Application(stack, \"App\",\n code=flink.ApplicationCode.from_asset(path.join(__dirname, \"code-asset\")),\n runtime=flink.Runtime.FLINK_1_11\n)\n\ncloudwatch.Alarm(stack, \"Alarm\",\n metric=flink_app.metric_full_restarts(),\n evaluation_periods=1,\n threshold=3\n)\n\napp.synth()",
|
|
359
|
-
"version": "2"
|
|
360
|
-
},
|
|
361
|
-
"csharp": {
|
|
362
|
-
"source": "using Path;\nusing Amazon.CDK.AWS.CloudWatch;\nusing Amazon.CDK;\nusing Amazon.CDK.AWS.Kinesisanalytics.Flink.Alpha;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppTest\");\n\nApplication flinkApp = new Application(stack, \"App\", new ApplicationProps {\n Code = ApplicationCode.FromAsset(Join(__dirname, \"code-asset\")),\n Runtime = Runtime.FLINK_1_11\n});\n\nnew Alarm(stack, \"Alarm\", new AlarmProps {\n Metric = flinkApp.MetricFullRestarts(),\n EvaluationPeriods = 1,\n Threshold = 3\n});\n\napp.Synth();",
|
|
363
|
-
"version": "1"
|
|
364
|
-
},
|
|
365
|
-
"java": {
|
|
366
|
-
"source": "import path.*;\nimport software.amazon.awscdk.services.cloudwatch.*;\nimport software.amazon.awscdk.*;\nimport software.amazon.awscdk.services.kinesisanalytics.flink.alpha.*;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppTest\");\n\nApplication flinkApp = Application.Builder.create(stack, \"App\")\n .code(ApplicationCode.fromAsset(join(__dirname, \"code-asset\")))\n .runtime(Runtime.FLINK_1_11)\n .build();\n\nAlarm.Builder.create(stack, \"Alarm\")\n .metric(flinkApp.metricFullRestarts())\n .evaluationPeriods(1)\n .threshold(3)\n .build();\n\napp.synth();",
|
|
367
|
-
"version": "1"
|
|
368
|
-
},
|
|
369
|
-
"go": {
|
|
370
|
-
"source": "import path \"github.com/aws-samples/dummy/path\"\nimport cloudwatch \"github.com/aws/aws-cdk-go/awscdk\"\nimport core \"github.com/aws/aws-cdk-go/awscdk\"\nimport flink \"github.com/aws/aws-cdk-go/awscdkkinesisanalyticsflinkalpha\"\n\napp := core.NewApp()\nstack := core.NewStack(app, jsii.String(\"FlinkAppTest\"))\n\nflinkApp := flink.NewApplication(stack, jsii.String(\"App\"), &applicationProps{\n\tcode: flink.applicationCode.fromAsset(path.join(__dirname, jsii.String(\"code-asset\"))),\n\truntime: flink.runtime_FLINK_1_11(),\n})\n\ncloudwatch.NewAlarm(stack, jsii.String(\"Alarm\"), &alarmProps{\n\tmetric: flinkApp.metricFullRestarts(),\n\tevaluationPeriods: jsii.Number(1),\n\tthreshold: jsii.Number(3),\n})\n\napp.synth()",
|
|
371
|
-
"version": "1"
|
|
372
|
-
},
|
|
373
|
-
"$": {
|
|
374
|
-
"source": "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();",
|
|
375
|
-
"version": "0"
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
"location": {
|
|
379
|
-
"api": {
|
|
380
|
-
"api": "type",
|
|
381
|
-
"fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode"
|
|
382
|
-
},
|
|
383
|
-
"field": {
|
|
384
|
-
"field": "example"
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
"didCompile": true,
|
|
388
|
-
"fqnsReferenced": [
|
|
389
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
390
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
391
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromAsset",
|
|
392
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
393
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
394
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_11",
|
|
395
|
-
"aws-cdk-lib.App",
|
|
396
|
-
"aws-cdk-lib.Stack",
|
|
397
|
-
"aws-cdk-lib.Stage#synth",
|
|
398
|
-
"aws-cdk-lib.aws_cloudwatch.Alarm",
|
|
399
|
-
"aws-cdk-lib.aws_cloudwatch.AlarmProps",
|
|
400
|
-
"aws-cdk-lib.aws_cloudwatch.IMetric",
|
|
401
|
-
"constructs.Construct"
|
|
402
|
-
],
|
|
403
|
-
"fullSource": "///! 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",
|
|
404
|
-
"syntaxKindCounter": {
|
|
405
|
-
"8": 2,
|
|
406
|
-
"10": 8,
|
|
407
|
-
"75": 36,
|
|
408
|
-
"193": 2,
|
|
409
|
-
"194": 11,
|
|
410
|
-
"196": 4,
|
|
411
|
-
"197": 4,
|
|
412
|
-
"225": 3,
|
|
413
|
-
"226": 2,
|
|
414
|
-
"242": 3,
|
|
415
|
-
"243": 3,
|
|
416
|
-
"254": 4,
|
|
417
|
-
"255": 4,
|
|
418
|
-
"256": 4,
|
|
419
|
-
"281": 5,
|
|
420
|
-
"290": 1
|
|
421
|
-
},
|
|
422
|
-
"fqnsFingerprint": "a04acfc76e07702196ab119dc283c6249fc8e975d85bdbb386decb85a45620b2"
|
|
423
|
-
},
|
|
424
|
-
"cb1995d762e02576caf70a26fff376265964f3cecf4c87d12f51f381dc7668e3": {
|
|
425
|
-
"translations": {
|
|
426
|
-
"python": {
|
|
427
|
-
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_kinesisanalytics_flink_alpha as kinesisanalytics_flink_alpha\nfrom aws_cdk import aws_s3 as s3\n\n# bucket: s3.Bucket\n\napplication_code_config = kinesisanalytics_flink_alpha.ApplicationCodeConfig(\n application_code_configuration_property=ApplicationConfigurationProperty(\n application_code_configuration=ApplicationCodeConfigurationProperty(\n code_content=CodeContentProperty(\n s3_content_location=S3ContentLocationProperty(\n bucket_arn=\"bucketArn\",\n file_key=\"fileKey\",\n\n # the properties below are optional\n object_version=\"objectVersion\"\n ),\n text_content=\"textContent\",\n zip_file_content=\"zipFileContent\"\n ),\n code_content_type=\"codeContentType\"\n ),\n application_snapshot_configuration=ApplicationSnapshotConfigurationProperty(\n snapshots_enabled=False\n ),\n environment_properties=EnvironmentPropertiesProperty(\n property_groups=[PropertyGroupProperty(\n property_group_id=\"propertyGroupId\",\n property_map={\n \"property_map_key\": \"propertyMap\"\n }\n )]\n ),\n flink_application_configuration=FlinkApplicationConfigurationProperty(\n checkpoint_configuration=CheckpointConfigurationProperty(\n configuration_type=\"configurationType\",\n\n # the properties below are optional\n checkpointing_enabled=False,\n checkpoint_interval=123,\n min_pause_between_checkpoints=123\n ),\n monitoring_configuration=MonitoringConfigurationProperty(\n configuration_type=\"configurationType\",\n\n # the properties below are optional\n log_level=\"logLevel\",\n metrics_level=\"metricsLevel\"\n ),\n parallelism_configuration=ParallelismConfigurationProperty(\n configuration_type=\"configurationType\",\n\n # the properties below are optional\n auto_scaling_enabled=False,\n parallelism=123,\n parallelism_per_kpu=123\n )\n ),\n sql_application_configuration=SqlApplicationConfigurationProperty(\n inputs=[InputProperty(\n input_schema=InputSchemaProperty(\n record_columns=[RecordColumnProperty(\n name=\"name\",\n sql_type=\"sqlType\",\n\n # the properties below are optional\n mapping=\"mapping\"\n )],\n record_format=RecordFormatProperty(\n record_format_type=\"recordFormatType\",\n\n # the properties below are optional\n mapping_parameters=MappingParametersProperty(\n csv_mapping_parameters=CSVMappingParametersProperty(\n record_column_delimiter=\"recordColumnDelimiter\",\n record_row_delimiter=\"recordRowDelimiter\"\n ),\n json_mapping_parameters=JSONMappingParametersProperty(\n record_row_path=\"recordRowPath\"\n )\n )\n ),\n\n # the properties below are optional\n record_encoding=\"recordEncoding\"\n ),\n name_prefix=\"namePrefix\",\n\n # the properties below are optional\n input_parallelism=InputParallelismProperty(\n count=123\n ),\n input_processing_configuration=InputProcessingConfigurationProperty(\n input_lambda_processor=InputLambdaProcessorProperty(\n resource_arn=\"resourceArn\"\n )\n ),\n kinesis_firehose_input=KinesisFirehoseInputProperty(\n resource_arn=\"resourceArn\"\n ),\n kinesis_streams_input=KinesisStreamsInputProperty(\n resource_arn=\"resourceArn\"\n )\n )]\n ),\n vpc_configurations=[VpcConfigurationProperty(\n security_group_ids=[\"securityGroupIds\"],\n subnet_ids=[\"subnetIds\"]\n )],\n zeppelin_application_configuration=ZeppelinApplicationConfigurationProperty(\n catalog_configuration=CatalogConfigurationProperty(\n glue_data_catalog_configuration=GlueDataCatalogConfigurationProperty(\n database_arn=\"databaseArn\"\n )\n ),\n custom_artifacts_configuration=[CustomArtifactConfigurationProperty(\n artifact_type=\"artifactType\",\n\n # the properties below are optional\n maven_reference=MavenReferenceProperty(\n artifact_id=\"artifactId\",\n group_id=\"groupId\",\n version=\"version\"\n ),\n s3_content_location=S3ContentLocationProperty(\n bucket_arn=\"bucketArn\",\n file_key=\"fileKey\",\n\n # the properties below are optional\n object_version=\"objectVersion\"\n )\n )],\n deploy_as_application_configuration=DeployAsApplicationConfigurationProperty(\n s3_content_location=S3ContentBaseLocationProperty(\n bucket_arn=\"bucketArn\",\n\n # the properties below are optional\n base_path=\"basePath\"\n )\n ),\n monitoring_configuration=ZeppelinMonitoringConfigurationProperty(\n log_level=\"logLevel\"\n )\n )\n ),\n bucket=bucket\n)",
|
|
428
|
-
"version": "2"
|
|
429
|
-
},
|
|
430
|
-
"csharp": {
|
|
431
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Kinesisanalytics.Flink.Alpha;\nusing Amazon.CDK.AWS.S3;\n\nBucket bucket;\n\nApplicationCodeConfig applicationCodeConfig = new ApplicationCodeConfig {\n ApplicationCodeConfigurationProperty = new ApplicationConfigurationProperty {\n ApplicationCodeConfiguration = new ApplicationCodeConfigurationProperty {\n CodeContent = new CodeContentProperty {\n S3ContentLocation = new S3ContentLocationProperty {\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 = new ApplicationSnapshotConfigurationProperty {\n SnapshotsEnabled = false\n },\n EnvironmentProperties = new EnvironmentPropertiesProperty {\n PropertyGroups = new [] { new PropertyGroupProperty {\n PropertyGroupId = \"propertyGroupId\",\n PropertyMap = new Dictionary<string, string> {\n { \"propertyMapKey\", \"propertyMap\" }\n }\n } }\n },\n FlinkApplicationConfiguration = new FlinkApplicationConfigurationProperty {\n CheckpointConfiguration = new CheckpointConfigurationProperty {\n ConfigurationType = \"configurationType\",\n\n // the properties below are optional\n CheckpointingEnabled = false,\n CheckpointInterval = 123,\n MinPauseBetweenCheckpoints = 123\n },\n MonitoringConfiguration = new MonitoringConfigurationProperty {\n ConfigurationType = \"configurationType\",\n\n // the properties below are optional\n LogLevel = \"logLevel\",\n MetricsLevel = \"metricsLevel\"\n },\n ParallelismConfiguration = new ParallelismConfigurationProperty {\n ConfigurationType = \"configurationType\",\n\n // the properties below are optional\n AutoScalingEnabled = false,\n Parallelism = 123,\n ParallelismPerKpu = 123\n }\n },\n SqlApplicationConfiguration = new SqlApplicationConfigurationProperty {\n Inputs = new [] { new InputProperty {\n InputSchema = new InputSchemaProperty {\n RecordColumns = new [] { new RecordColumnProperty {\n Name = \"name\",\n SqlType = \"sqlType\",\n\n // the properties below are optional\n Mapping = \"mapping\"\n } },\n RecordFormat = new RecordFormatProperty {\n RecordFormatType = \"recordFormatType\",\n\n // the properties below are optional\n MappingParameters = new MappingParametersProperty {\n CsvMappingParameters = new CSVMappingParametersProperty {\n RecordColumnDelimiter = \"recordColumnDelimiter\",\n RecordRowDelimiter = \"recordRowDelimiter\"\n },\n JsonMappingParameters = new JSONMappingParametersProperty {\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 = new InputParallelismProperty {\n Count = 123\n },\n InputProcessingConfiguration = new InputProcessingConfigurationProperty {\n InputLambdaProcessor = new InputLambdaProcessorProperty {\n ResourceArn = \"resourceArn\"\n }\n },\n KinesisFirehoseInput = new KinesisFirehoseInputProperty {\n ResourceArn = \"resourceArn\"\n },\n KinesisStreamsInput = new KinesisStreamsInputProperty {\n ResourceArn = \"resourceArn\"\n }\n } }\n },\n VpcConfigurations = new [] { new VpcConfigurationProperty {\n SecurityGroupIds = new [] { \"securityGroupIds\" },\n SubnetIds = new [] { \"subnetIds\" }\n } },\n ZeppelinApplicationConfiguration = new ZeppelinApplicationConfigurationProperty {\n CatalogConfiguration = new CatalogConfigurationProperty {\n GlueDataCatalogConfiguration = new GlueDataCatalogConfigurationProperty {\n DatabaseArn = \"databaseArn\"\n }\n },\n CustomArtifactsConfiguration = new [] { new CustomArtifactConfigurationProperty {\n ArtifactType = \"artifactType\",\n\n // the properties below are optional\n MavenReference = new MavenReferenceProperty {\n ArtifactId = \"artifactId\",\n GroupId = \"groupId\",\n Version = \"version\"\n },\n S3ContentLocation = new S3ContentLocationProperty {\n BucketArn = \"bucketArn\",\n FileKey = \"fileKey\",\n\n // the properties below are optional\n ObjectVersion = \"objectVersion\"\n }\n } },\n DeployAsApplicationConfiguration = new DeployAsApplicationConfigurationProperty {\n S3ContentLocation = new S3ContentBaseLocationProperty {\n BucketArn = \"bucketArn\",\n\n // the properties below are optional\n BasePath = \"basePath\"\n }\n },\n MonitoringConfiguration = new ZeppelinMonitoringConfigurationProperty {\n LogLevel = \"logLevel\"\n }\n }\n },\n Bucket = bucket\n};",
|
|
432
|
-
"version": "1"
|
|
433
|
-
},
|
|
434
|
-
"java": {
|
|
435
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.kinesisanalytics.flink.alpha.*;\nimport software.amazon.awscdk.services.s3.*;\n\nBucket bucket;\n\nApplicationCodeConfig applicationCodeConfig = ApplicationCodeConfig.builder()\n .applicationCodeConfigurationProperty(ApplicationConfigurationProperty.builder()\n .applicationCodeConfiguration(ApplicationCodeConfigurationProperty.builder()\n .codeContent(CodeContentProperty.builder()\n .s3ContentLocation(S3ContentLocationProperty.builder()\n .bucketArn(\"bucketArn\")\n .fileKey(\"fileKey\")\n\n // the properties below are optional\n .objectVersion(\"objectVersion\")\n .build())\n .textContent(\"textContent\")\n .zipFileContent(\"zipFileContent\")\n .build())\n .codeContentType(\"codeContentType\")\n .build())\n .applicationSnapshotConfiguration(ApplicationSnapshotConfigurationProperty.builder()\n .snapshotsEnabled(false)\n .build())\n .environmentProperties(EnvironmentPropertiesProperty.builder()\n .propertyGroups(List.of(PropertyGroupProperty.builder()\n .propertyGroupId(\"propertyGroupId\")\n .propertyMap(Map.of(\n \"propertyMapKey\", \"propertyMap\"))\n .build()))\n .build())\n .flinkApplicationConfiguration(FlinkApplicationConfigurationProperty.builder()\n .checkpointConfiguration(CheckpointConfigurationProperty.builder()\n .configurationType(\"configurationType\")\n\n // the properties below are optional\n .checkpointingEnabled(false)\n .checkpointInterval(123)\n .minPauseBetweenCheckpoints(123)\n .build())\n .monitoringConfiguration(MonitoringConfigurationProperty.builder()\n .configurationType(\"configurationType\")\n\n // the properties below are optional\n .logLevel(\"logLevel\")\n .metricsLevel(\"metricsLevel\")\n .build())\n .parallelismConfiguration(ParallelismConfigurationProperty.builder()\n .configurationType(\"configurationType\")\n\n // the properties below are optional\n .autoScalingEnabled(false)\n .parallelism(123)\n .parallelismPerKpu(123)\n .build())\n .build())\n .sqlApplicationConfiguration(SqlApplicationConfigurationProperty.builder()\n .inputs(List.of(InputProperty.builder()\n .inputSchema(InputSchemaProperty.builder()\n .recordColumns(List.of(RecordColumnProperty.builder()\n .name(\"name\")\n .sqlType(\"sqlType\")\n\n // the properties below are optional\n .mapping(\"mapping\")\n .build()))\n .recordFormat(RecordFormatProperty.builder()\n .recordFormatType(\"recordFormatType\")\n\n // the properties below are optional\n .mappingParameters(MappingParametersProperty.builder()\n .csvMappingParameters(CSVMappingParametersProperty.builder()\n .recordColumnDelimiter(\"recordColumnDelimiter\")\n .recordRowDelimiter(\"recordRowDelimiter\")\n .build())\n .jsonMappingParameters(JSONMappingParametersProperty.builder()\n .recordRowPath(\"recordRowPath\")\n .build())\n .build())\n .build())\n\n // the properties below are optional\n .recordEncoding(\"recordEncoding\")\n .build())\n .namePrefix(\"namePrefix\")\n\n // the properties below are optional\n .inputParallelism(InputParallelismProperty.builder()\n .count(123)\n .build())\n .inputProcessingConfiguration(InputProcessingConfigurationProperty.builder()\n .inputLambdaProcessor(InputLambdaProcessorProperty.builder()\n .resourceArn(\"resourceArn\")\n .build())\n .build())\n .kinesisFirehoseInput(KinesisFirehoseInputProperty.builder()\n .resourceArn(\"resourceArn\")\n .build())\n .kinesisStreamsInput(KinesisStreamsInputProperty.builder()\n .resourceArn(\"resourceArn\")\n .build())\n .build()))\n .build())\n .vpcConfigurations(List.of(VpcConfigurationProperty.builder()\n .securityGroupIds(List.of(\"securityGroupIds\"))\n .subnetIds(List.of(\"subnetIds\"))\n .build()))\n .zeppelinApplicationConfiguration(ZeppelinApplicationConfigurationProperty.builder()\n .catalogConfiguration(CatalogConfigurationProperty.builder()\n .glueDataCatalogConfiguration(GlueDataCatalogConfigurationProperty.builder()\n .databaseArn(\"databaseArn\")\n .build())\n .build())\n .customArtifactsConfiguration(List.of(CustomArtifactConfigurationProperty.builder()\n .artifactType(\"artifactType\")\n\n // the properties below are optional\n .mavenReference(MavenReferenceProperty.builder()\n .artifactId(\"artifactId\")\n .groupId(\"groupId\")\n .version(\"version\")\n .build())\n .s3ContentLocation(S3ContentLocationProperty.builder()\n .bucketArn(\"bucketArn\")\n .fileKey(\"fileKey\")\n\n // the properties below are optional\n .objectVersion(\"objectVersion\")\n .build())\n .build()))\n .deployAsApplicationConfiguration(DeployAsApplicationConfigurationProperty.builder()\n .s3ContentLocation(S3ContentBaseLocationProperty.builder()\n .bucketArn(\"bucketArn\")\n\n // the properties below are optional\n .basePath(\"basePath\")\n .build())\n .build())\n .monitoringConfiguration(ZeppelinMonitoringConfigurationProperty.builder()\n .logLevel(\"logLevel\")\n .build())\n .build())\n .build())\n .bucket(bucket)\n .build();",
|
|
436
|
-
"version": "1"
|
|
437
|
-
},
|
|
438
|
-
"go": {
|
|
439
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport kinesisanalytics_flink_alpha \"github.com/aws/aws-cdk-go/awscdkkinesisanalyticsflinkalpha\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar bucket bucket\n\napplicationCodeConfig := &applicationCodeConfig{\n\tapplicationCodeConfigurationProperty: &applicationConfigurationProperty{\n\t\tapplicationCodeConfiguration: &applicationCodeConfigurationProperty{\n\t\t\tcodeContent: &codeContentProperty{\n\t\t\t\ts3ContentLocation: &s3ContentLocationProperty{\n\t\t\t\t\tbucketArn: jsii.String(\"bucketArn\"),\n\t\t\t\t\tfileKey: jsii.String(\"fileKey\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tobjectVersion: jsii.String(\"objectVersion\"),\n\t\t\t\t},\n\t\t\t\ttextContent: jsii.String(\"textContent\"),\n\t\t\t\tzipFileContent: jsii.String(\"zipFileContent\"),\n\t\t\t},\n\t\t\tcodeContentType: jsii.String(\"codeContentType\"),\n\t\t},\n\t\tapplicationSnapshotConfiguration: &applicationSnapshotConfigurationProperty{\n\t\t\tsnapshotsEnabled: jsii.Boolean(false),\n\t\t},\n\t\tenvironmentProperties: &environmentPropertiesProperty{\n\t\t\tpropertyGroups: []interface{}{\n\t\t\t\t&propertyGroupProperty{\n\t\t\t\t\tpropertyGroupId: jsii.String(\"propertyGroupId\"),\n\t\t\t\t\tpropertyMap: map[string]*string{\n\t\t\t\t\t\t\"propertyMapKey\": jsii.String(\"propertyMap\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tflinkApplicationConfiguration: &flinkApplicationConfigurationProperty{\n\t\t\tcheckpointConfiguration: &checkpointConfigurationProperty{\n\t\t\t\tconfigurationType: jsii.String(\"configurationType\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tcheckpointingEnabled: jsii.Boolean(false),\n\t\t\t\tcheckpointInterval: jsii.Number(123),\n\t\t\t\tminPauseBetweenCheckpoints: jsii.Number(123),\n\t\t\t},\n\t\t\tmonitoringConfiguration: &monitoringConfigurationProperty{\n\t\t\t\tconfigurationType: jsii.String(\"configurationType\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tlogLevel: jsii.String(\"logLevel\"),\n\t\t\t\tmetricsLevel: jsii.String(\"metricsLevel\"),\n\t\t\t},\n\t\t\tparallelismConfiguration: ¶llelismConfigurationProperty{\n\t\t\t\tconfigurationType: jsii.String(\"configurationType\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tautoScalingEnabled: jsii.Boolean(false),\n\t\t\t\tparallelism: jsii.Number(123),\n\t\t\t\tparallelismPerKpu: jsii.Number(123),\n\t\t\t},\n\t\t},\n\t\tsqlApplicationConfiguration: &sqlApplicationConfigurationProperty{\n\t\t\tinputs: []interface{}{\n\t\t\t\t&inputProperty{\n\t\t\t\t\tinputSchema: &inputSchemaProperty{\n\t\t\t\t\t\trecordColumns: []interface{}{\n\t\t\t\t\t\t\t&recordColumnProperty{\n\t\t\t\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\t\t\t\tsqlType: jsii.String(\"sqlType\"),\n\n\t\t\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\t\t\tmapping: jsii.String(\"mapping\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\trecordFormat: &recordFormatProperty{\n\t\t\t\t\t\t\trecordFormatType: jsii.String(\"recordFormatType\"),\n\n\t\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\t\tmappingParameters: &mappingParametersProperty{\n\t\t\t\t\t\t\t\tcsvMappingParameters: &cSVMappingParametersProperty{\n\t\t\t\t\t\t\t\t\trecordColumnDelimiter: jsii.String(\"recordColumnDelimiter\"),\n\t\t\t\t\t\t\t\t\trecordRowDelimiter: jsii.String(\"recordRowDelimiter\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tjsonMappingParameters: &jSONMappingParametersProperty{\n\t\t\t\t\t\t\t\t\trecordRowPath: jsii.String(\"recordRowPath\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\trecordEncoding: jsii.String(\"recordEncoding\"),\n\t\t\t\t\t},\n\t\t\t\t\tnamePrefix: jsii.String(\"namePrefix\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tinputParallelism: &inputParallelismProperty{\n\t\t\t\t\t\tcount: jsii.Number(123),\n\t\t\t\t\t},\n\t\t\t\t\tinputProcessingConfiguration: &inputProcessingConfigurationProperty{\n\t\t\t\t\t\tinputLambdaProcessor: &inputLambdaProcessorProperty{\n\t\t\t\t\t\t\tresourceArn: jsii.String(\"resourceArn\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tkinesisFirehoseInput: &kinesisFirehoseInputProperty{\n\t\t\t\t\t\tresourceArn: jsii.String(\"resourceArn\"),\n\t\t\t\t\t},\n\t\t\t\t\tkinesisStreamsInput: &kinesisStreamsInputProperty{\n\t\t\t\t\t\tresourceArn: jsii.String(\"resourceArn\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tvpcConfigurations: []interface{}{\n\t\t\t&vpcConfigurationProperty{\n\t\t\t\tsecurityGroupIds: []*string{\n\t\t\t\t\tjsii.String(\"securityGroupIds\"),\n\t\t\t\t},\n\t\t\t\tsubnetIds: []*string{\n\t\t\t\t\tjsii.String(\"subnetIds\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tzeppelinApplicationConfiguration: &zeppelinApplicationConfigurationProperty{\n\t\t\tcatalogConfiguration: &catalogConfigurationProperty{\n\t\t\t\tglueDataCatalogConfiguration: &glueDataCatalogConfigurationProperty{\n\t\t\t\t\tdatabaseArn: jsii.String(\"databaseArn\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tcustomArtifactsConfiguration: []interface{}{\n\t\t\t\t&customArtifactConfigurationProperty{\n\t\t\t\t\tartifactType: jsii.String(\"artifactType\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tmavenReference: &mavenReferenceProperty{\n\t\t\t\t\t\tartifactId: jsii.String(\"artifactId\"),\n\t\t\t\t\t\tgroupId: jsii.String(\"groupId\"),\n\t\t\t\t\t\tversion: jsii.String(\"version\"),\n\t\t\t\t\t},\n\t\t\t\t\ts3ContentLocation: &s3ContentLocationProperty{\n\t\t\t\t\t\tbucketArn: jsii.String(\"bucketArn\"),\n\t\t\t\t\t\tfileKey: jsii.String(\"fileKey\"),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tobjectVersion: jsii.String(\"objectVersion\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tdeployAsApplicationConfiguration: &deployAsApplicationConfigurationProperty{\n\t\t\t\ts3ContentLocation: &s3ContentBaseLocationProperty{\n\t\t\t\t\tbucketArn: jsii.String(\"bucketArn\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tbasePath: jsii.String(\"basePath\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tmonitoringConfiguration: &zeppelinMonitoringConfigurationProperty{\n\t\t\t\tlogLevel: jsii.String(\"logLevel\"),\n\t\t\t},\n\t\t},\n\t},\n\tbucket: bucket,\n}",
|
|
440
|
-
"version": "1"
|
|
441
|
-
},
|
|
442
|
-
"$": {
|
|
443
|
-
"source": "// 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 vpcConfigurations: [{\n securityGroupIds: ['securityGroupIds'],\n subnetIds: ['subnetIds'],\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};",
|
|
444
|
-
"version": "0"
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
"location": {
|
|
448
|
-
"api": {
|
|
449
|
-
"api": "type",
|
|
450
|
-
"fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCodeConfig"
|
|
451
|
-
},
|
|
452
|
-
"field": {
|
|
453
|
-
"field": "example"
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
|
-
"didCompile": true,
|
|
457
|
-
"fqnsReferenced": [
|
|
458
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCodeConfig",
|
|
459
|
-
"aws-cdk-lib.aws_kinesisanalytics.CfnApplicationV2.ApplicationConfigurationProperty",
|
|
460
|
-
"aws-cdk-lib.aws_s3.IBucket"
|
|
461
|
-
],
|
|
462
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// 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;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\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 vpcConfigurations: [{\n securityGroupIds: ['securityGroupIds'],\n subnetIds: ['subnetIds'],\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};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
|
463
|
-
"syntaxKindCounter": {
|
|
464
|
-
"8": 5,
|
|
465
|
-
"10": 40,
|
|
466
|
-
"75": 92,
|
|
467
|
-
"91": 3,
|
|
468
|
-
"130": 1,
|
|
469
|
-
"153": 2,
|
|
470
|
-
"169": 2,
|
|
471
|
-
"192": 7,
|
|
472
|
-
"193": 36,
|
|
473
|
-
"225": 2,
|
|
474
|
-
"242": 2,
|
|
475
|
-
"243": 2,
|
|
476
|
-
"254": 2,
|
|
477
|
-
"255": 2,
|
|
478
|
-
"256": 1,
|
|
479
|
-
"257": 1,
|
|
480
|
-
"258": 1,
|
|
481
|
-
"281": 82,
|
|
482
|
-
"290": 1
|
|
483
|
-
},
|
|
484
|
-
"fqnsFingerprint": "3d0e5bf054713acf5ce87722f4b014e31224f159b598e2fd094e648707b96d04"
|
|
485
|
-
},
|
|
486
|
-
"3bd6a41fce883bc9ab9df51e7e635b09f47b57b58857f440f2fb7f0aad318e22": {
|
|
487
|
-
"translations": {
|
|
488
|
-
"python": {
|
|
489
|
-
"source": "import path as path\nimport aws_cdk.aws_cloudwatch as cloudwatch\nimport aws_cdk as core\nimport aws_cdk.aws_kinesisanalytics_flink_alpha as flink\n\napp = core.App()\nstack = core.Stack(app, \"FlinkAppTest\")\n\nflink_app = flink.Application(stack, \"App\",\n code=flink.ApplicationCode.from_asset(path.join(__dirname, \"code-asset\")),\n runtime=flink.Runtime.FLINK_1_11\n)\n\ncloudwatch.Alarm(stack, \"Alarm\",\n metric=flink_app.metric_full_restarts(),\n evaluation_periods=1,\n threshold=3\n)\n\napp.synth()",
|
|
490
|
-
"version": "2"
|
|
491
|
-
},
|
|
492
|
-
"csharp": {
|
|
493
|
-
"source": "using Path;\nusing Amazon.CDK.AWS.CloudWatch;\nusing Amazon.CDK;\nusing Amazon.CDK.AWS.Kinesisanalytics.Flink.Alpha;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppTest\");\n\nApplication flinkApp = new Application(stack, \"App\", new ApplicationProps {\n Code = ApplicationCode.FromAsset(Join(__dirname, \"code-asset\")),\n Runtime = Runtime.FLINK_1_11\n});\n\nnew Alarm(stack, \"Alarm\", new AlarmProps {\n Metric = flinkApp.MetricFullRestarts(),\n EvaluationPeriods = 1,\n Threshold = 3\n});\n\napp.Synth();",
|
|
494
|
-
"version": "1"
|
|
495
|
-
},
|
|
496
|
-
"java": {
|
|
497
|
-
"source": "import path.*;\nimport software.amazon.awscdk.services.cloudwatch.*;\nimport software.amazon.awscdk.*;\nimport software.amazon.awscdk.services.kinesisanalytics.flink.alpha.*;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppTest\");\n\nApplication flinkApp = Application.Builder.create(stack, \"App\")\n .code(ApplicationCode.fromAsset(join(__dirname, \"code-asset\")))\n .runtime(Runtime.FLINK_1_11)\n .build();\n\nAlarm.Builder.create(stack, \"Alarm\")\n .metric(flinkApp.metricFullRestarts())\n .evaluationPeriods(1)\n .threshold(3)\n .build();\n\napp.synth();",
|
|
498
|
-
"version": "1"
|
|
499
|
-
},
|
|
500
|
-
"go": {
|
|
501
|
-
"source": "import path \"github.com/aws-samples/dummy/path\"\nimport cloudwatch \"github.com/aws/aws-cdk-go/awscdk\"\nimport core \"github.com/aws/aws-cdk-go/awscdk\"\nimport flink \"github.com/aws/aws-cdk-go/awscdkkinesisanalyticsflinkalpha\"\n\napp := core.NewApp()\nstack := core.NewStack(app, jsii.String(\"FlinkAppTest\"))\n\nflinkApp := flink.NewApplication(stack, jsii.String(\"App\"), &applicationProps{\n\tcode: flink.applicationCode.fromAsset(path.join(__dirname, jsii.String(\"code-asset\"))),\n\truntime: flink.runtime_FLINK_1_11(),\n})\n\ncloudwatch.NewAlarm(stack, jsii.String(\"Alarm\"), &alarmProps{\n\tmetric: flinkApp.metricFullRestarts(),\n\tevaluationPeriods: jsii.Number(1),\n\tthreshold: jsii.Number(3),\n})\n\napp.synth()",
|
|
502
|
-
"version": "1"
|
|
503
|
-
},
|
|
504
|
-
"$": {
|
|
505
|
-
"source": "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();",
|
|
506
|
-
"version": "0"
|
|
507
|
-
}
|
|
508
|
-
},
|
|
509
|
-
"location": {
|
|
510
|
-
"api": {
|
|
511
|
-
"api": "type",
|
|
512
|
-
"fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps"
|
|
513
|
-
},
|
|
514
|
-
"field": {
|
|
515
|
-
"field": "example"
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
"didCompile": true,
|
|
519
|
-
"fqnsReferenced": [
|
|
520
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
521
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
522
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromAsset",
|
|
523
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
524
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
525
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_11",
|
|
526
|
-
"aws-cdk-lib.App",
|
|
527
|
-
"aws-cdk-lib.Stack",
|
|
528
|
-
"aws-cdk-lib.Stage#synth",
|
|
529
|
-
"aws-cdk-lib.aws_cloudwatch.Alarm",
|
|
530
|
-
"aws-cdk-lib.aws_cloudwatch.AlarmProps",
|
|
531
|
-
"aws-cdk-lib.aws_cloudwatch.IMetric",
|
|
532
|
-
"constructs.Construct"
|
|
533
|
-
],
|
|
534
|
-
"fullSource": "///! 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",
|
|
535
|
-
"syntaxKindCounter": {
|
|
536
|
-
"8": 2,
|
|
537
|
-
"10": 8,
|
|
538
|
-
"75": 36,
|
|
539
|
-
"193": 2,
|
|
540
|
-
"194": 11,
|
|
541
|
-
"196": 4,
|
|
542
|
-
"197": 4,
|
|
543
|
-
"225": 3,
|
|
544
|
-
"226": 2,
|
|
545
|
-
"242": 3,
|
|
546
|
-
"243": 3,
|
|
547
|
-
"254": 4,
|
|
548
|
-
"255": 4,
|
|
549
|
-
"256": 4,
|
|
550
|
-
"281": 5,
|
|
551
|
-
"290": 1
|
|
552
|
-
},
|
|
553
|
-
"fqnsFingerprint": "a04acfc76e07702196ab119dc283c6249fc8e975d85bdbb386decb85a45620b2"
|
|
554
|
-
},
|
|
555
|
-
"f5a80bf7918161f368caffc9a6e746a80127884d119326e5bcb6a4e0faa4e616": {
|
|
556
|
-
"translations": {
|
|
557
|
-
"python": {
|
|
558
|
-
"source": "# bucket: s3.Bucket\n\nflink_app = flink.Application(self, \"Application\",\n code=flink.ApplicationCode.from_bucket(bucket, \"my-app.jar\"),\n runtime=flink.Runtime.FLINK_1_13,\n checkpointing_enabled=True, # default is true\n checkpoint_interval=Duration.seconds(30), # default is 1 minute\n min_pause_between_checkpoints=Duration.seconds(10), # default is 5 seconds\n log_level=flink.LogLevel.ERROR, # default is INFO\n metrics_level=flink.MetricsLevel.PARALLELISM, # default is APPLICATION\n auto_scaling_enabled=False, # default is true\n parallelism=32, # default is 1\n parallelism_per_kpu=2, # default is 1\n snapshots_enabled=False, # default is true\n log_group=logs.LogGroup(self, \"LogGroup\")\n)",
|
|
559
|
-
"version": "2"
|
|
560
|
-
},
|
|
561
|
-
"csharp": {
|
|
562
|
-
"source": "Bucket bucket;\n\nApplication flinkApp = new Application(this, \"Application\", new ApplicationProps {\n Code = ApplicationCode.FromBucket(bucket, \"my-app.jar\"),\n Runtime = 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 = LogLevel.ERROR, // default is INFO\n MetricsLevel = 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 LogGroup(this, \"LogGroup\")\n});",
|
|
563
|
-
"version": "1"
|
|
564
|
-
},
|
|
565
|
-
"java": {
|
|
566
|
-
"source": "Bucket bucket;\n\nApplication flinkApp = Application.Builder.create(this, \"Application\")\n .code(ApplicationCode.fromBucket(bucket, \"my-app.jar\"))\n .runtime(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(LogLevel.ERROR) // default is INFO\n .metricsLevel(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 LogGroup(this, \"LogGroup\"))\n .build();",
|
|
567
|
-
"version": "1"
|
|
568
|
-
},
|
|
569
|
-
"go": {
|
|
570
|
-
"source": "var bucket bucket\n\nflinkApp := flink.NewApplication(this, jsii.String(\"Application\"), &applicationProps{\n\tcode: flink.applicationCode.fromBucket(bucket, jsii.String(\"my-app.jar\")),\n\truntime: flink.runtime_FLINK_1_13(),\n\tcheckpointingEnabled: jsii.Boolean(true),\n\t // default is true\n\tcheckpointInterval: awscdk.Duration.seconds(jsii.Number(30)),\n\t // default is 1 minute\n\tminPauseBetweenCheckpoints: awscdk.Duration.seconds(jsii.Number(10)),\n\t // default is 5 seconds\n\tlogLevel: flink.logLevel_ERROR,\n\t // default is INFO\n\tmetricsLevel: flink.metricsLevel_PARALLELISM,\n\t // default is APPLICATION\n\tautoScalingEnabled: jsii.Boolean(false),\n\t // default is true\n\tparallelism: jsii.Number(32),\n\t // default is 1\n\tparallelismPerKpu: jsii.Number(2),\n\t // default is 1\n\tsnapshotsEnabled: jsii.Boolean(false),\n\t // default is true\n\tlogGroup: logs.NewLogGroup(this, jsii.String(\"LogGroup\")),\n})",
|
|
571
|
-
"version": "1"
|
|
572
|
-
},
|
|
573
|
-
"$": {
|
|
574
|
-
"source": "declare 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});",
|
|
575
|
-
"version": "0"
|
|
576
|
-
}
|
|
577
|
-
},
|
|
578
|
-
"location": {
|
|
579
|
-
"api": {
|
|
580
|
-
"api": "type",
|
|
581
|
-
"fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.LogLevel"
|
|
582
|
-
},
|
|
583
|
-
"field": {
|
|
584
|
-
"field": "example"
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
"didCompile": true,
|
|
588
|
-
"fqnsReferenced": [
|
|
589
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
590
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
591
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromBucket",
|
|
592
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
593
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.LogLevel",
|
|
594
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.LogLevel#ERROR",
|
|
595
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.MetricsLevel",
|
|
596
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.MetricsLevel#PARALLELISM",
|
|
597
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
598
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_13",
|
|
599
|
-
"aws-cdk-lib.Duration",
|
|
600
|
-
"aws-cdk-lib.Duration#seconds",
|
|
601
|
-
"aws-cdk-lib.aws_logs.ILogGroup",
|
|
602
|
-
"aws-cdk-lib.aws_logs.LogGroup",
|
|
603
|
-
"aws-cdk-lib.aws_s3.IBucket",
|
|
604
|
-
"constructs.Construct"
|
|
605
|
-
],
|
|
606
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from 'aws-cdk-lib'; \nimport * as flink from '@aws-cdk/aws-kinesisanalytics-flink-alpha';\nimport * as logs from 'aws-cdk-lib/aws-logs';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
607
|
-
"syntaxKindCounter": {
|
|
608
|
-
"8": 4,
|
|
609
|
-
"10": 3,
|
|
610
|
-
"75": 37,
|
|
611
|
-
"91": 2,
|
|
612
|
-
"104": 2,
|
|
613
|
-
"106": 1,
|
|
614
|
-
"130": 1,
|
|
615
|
-
"153": 1,
|
|
616
|
-
"169": 1,
|
|
617
|
-
"193": 1,
|
|
618
|
-
"194": 12,
|
|
619
|
-
"196": 3,
|
|
620
|
-
"197": 2,
|
|
621
|
-
"225": 2,
|
|
622
|
-
"242": 2,
|
|
623
|
-
"243": 2,
|
|
624
|
-
"281": 12,
|
|
625
|
-
"290": 1
|
|
626
|
-
},
|
|
627
|
-
"fqnsFingerprint": "a93d991623aea2392523adc4f09de7952beea98bf1906d9c61439aa10aa6954c"
|
|
628
|
-
},
|
|
629
|
-
"a94ad28544ed0016129662e03839c1aca389daa6e2fbe9408ada860f2e2f6118": {
|
|
630
|
-
"translations": {
|
|
631
|
-
"python": {
|
|
632
|
-
"source": "# bucket: s3.Bucket\n\nflink_app = flink.Application(self, \"Application\",\n code=flink.ApplicationCode.from_bucket(bucket, \"my-app.jar\"),\n runtime=flink.Runtime.FLINK_1_13,\n checkpointing_enabled=True, # default is true\n checkpoint_interval=Duration.seconds(30), # default is 1 minute\n min_pause_between_checkpoints=Duration.seconds(10), # default is 5 seconds\n log_level=flink.LogLevel.ERROR, # default is INFO\n metrics_level=flink.MetricsLevel.PARALLELISM, # default is APPLICATION\n auto_scaling_enabled=False, # default is true\n parallelism=32, # default is 1\n parallelism_per_kpu=2, # default is 1\n snapshots_enabled=False, # default is true\n log_group=logs.LogGroup(self, \"LogGroup\")\n)",
|
|
633
|
-
"version": "2"
|
|
634
|
-
},
|
|
635
|
-
"csharp": {
|
|
636
|
-
"source": "Bucket bucket;\n\nApplication flinkApp = new Application(this, \"Application\", new ApplicationProps {\n Code = ApplicationCode.FromBucket(bucket, \"my-app.jar\"),\n Runtime = 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 = LogLevel.ERROR, // default is INFO\n MetricsLevel = 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 LogGroup(this, \"LogGroup\")\n});",
|
|
637
|
-
"version": "1"
|
|
638
|
-
},
|
|
639
|
-
"java": {
|
|
640
|
-
"source": "Bucket bucket;\n\nApplication flinkApp = Application.Builder.create(this, \"Application\")\n .code(ApplicationCode.fromBucket(bucket, \"my-app.jar\"))\n .runtime(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(LogLevel.ERROR) // default is INFO\n .metricsLevel(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 LogGroup(this, \"LogGroup\"))\n .build();",
|
|
641
|
-
"version": "1"
|
|
642
|
-
},
|
|
643
|
-
"go": {
|
|
644
|
-
"source": "var bucket bucket\n\nflinkApp := flink.NewApplication(this, jsii.String(\"Application\"), &applicationProps{\n\tcode: flink.applicationCode.fromBucket(bucket, jsii.String(\"my-app.jar\")),\n\truntime: flink.runtime_FLINK_1_13(),\n\tcheckpointingEnabled: jsii.Boolean(true),\n\t // default is true\n\tcheckpointInterval: awscdk.Duration.seconds(jsii.Number(30)),\n\t // default is 1 minute\n\tminPauseBetweenCheckpoints: awscdk.Duration.seconds(jsii.Number(10)),\n\t // default is 5 seconds\n\tlogLevel: flink.logLevel_ERROR,\n\t // default is INFO\n\tmetricsLevel: flink.metricsLevel_PARALLELISM,\n\t // default is APPLICATION\n\tautoScalingEnabled: jsii.Boolean(false),\n\t // default is true\n\tparallelism: jsii.Number(32),\n\t // default is 1\n\tparallelismPerKpu: jsii.Number(2),\n\t // default is 1\n\tsnapshotsEnabled: jsii.Boolean(false),\n\t // default is true\n\tlogGroup: logs.NewLogGroup(this, jsii.String(\"LogGroup\")),\n})",
|
|
645
|
-
"version": "1"
|
|
646
|
-
},
|
|
647
|
-
"$": {
|
|
648
|
-
"source": "declare 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});",
|
|
649
|
-
"version": "0"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
"location": {
|
|
653
|
-
"api": {
|
|
654
|
-
"api": "type",
|
|
655
|
-
"fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.MetricsLevel"
|
|
656
|
-
},
|
|
657
|
-
"field": {
|
|
658
|
-
"field": "example"
|
|
659
|
-
}
|
|
660
|
-
},
|
|
661
|
-
"didCompile": true,
|
|
662
|
-
"fqnsReferenced": [
|
|
663
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
664
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
665
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromBucket",
|
|
666
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
667
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.LogLevel",
|
|
668
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.LogLevel#ERROR",
|
|
669
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.MetricsLevel",
|
|
670
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.MetricsLevel#PARALLELISM",
|
|
671
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
672
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_13",
|
|
673
|
-
"aws-cdk-lib.Duration",
|
|
674
|
-
"aws-cdk-lib.Duration#seconds",
|
|
675
|
-
"aws-cdk-lib.aws_logs.ILogGroup",
|
|
676
|
-
"aws-cdk-lib.aws_logs.LogGroup",
|
|
677
|
-
"aws-cdk-lib.aws_s3.IBucket",
|
|
678
|
-
"constructs.Construct"
|
|
679
|
-
],
|
|
680
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from 'aws-cdk-lib'; \nimport * as flink from '@aws-cdk/aws-kinesisanalytics-flink-alpha';\nimport * as logs from 'aws-cdk-lib/aws-logs';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
681
|
-
"syntaxKindCounter": {
|
|
682
|
-
"8": 4,
|
|
683
|
-
"10": 3,
|
|
684
|
-
"75": 37,
|
|
685
|
-
"91": 2,
|
|
686
|
-
"104": 2,
|
|
687
|
-
"106": 1,
|
|
688
|
-
"130": 1,
|
|
689
|
-
"153": 1,
|
|
690
|
-
"169": 1,
|
|
691
|
-
"193": 1,
|
|
692
|
-
"194": 12,
|
|
693
|
-
"196": 3,
|
|
694
|
-
"197": 2,
|
|
695
|
-
"225": 2,
|
|
696
|
-
"242": 2,
|
|
697
|
-
"243": 2,
|
|
698
|
-
"281": 12,
|
|
699
|
-
"290": 1
|
|
700
|
-
},
|
|
701
|
-
"fqnsFingerprint": "a93d991623aea2392523adc4f09de7952beea98bf1906d9c61439aa10aa6954c"
|
|
702
|
-
},
|
|
703
|
-
"3cbce467c559b4b2193c6d43044ee77d743570e180a72fd2b7be41f9bd408a5d": {
|
|
704
|
-
"translations": {
|
|
705
|
-
"python": {
|
|
706
|
-
"source": "# bucket: s3.Bucket\n\nflink_app = flink.Application(self, \"Application\",\n property_groups=flink.PropertyGroups(\n FlinkApplicationProperties={\n \"input_stream_name\": \"my-input-kinesis-stream\",\n \"output_stream_name\": \"my-output-kinesis-stream\"\n }\n ),\n # ...\n runtime=flink.Runtime.FLINK_1_13,\n code=flink.ApplicationCode.from_bucket(bucket, \"my-app.jar\")\n)",
|
|
707
|
-
"version": "2"
|
|
708
|
-
},
|
|
709
|
-
"csharp": {
|
|
710
|
-
"source": "Bucket bucket;\n\nApplication flinkApp = new Application(this, \"Application\", new ApplicationProps {\n PropertyGroups = new PropertyGroups {\n FlinkApplicationProperties = new Dictionary<string, string> {\n { \"inputStreamName\", \"my-input-kinesis-stream\" },\n { \"outputStreamName\", \"my-output-kinesis-stream\" }\n }\n },\n // ...\n Runtime = Runtime.FLINK_1_13,\n Code = ApplicationCode.FromBucket(bucket, \"my-app.jar\")\n});",
|
|
711
|
-
"version": "1"
|
|
712
|
-
},
|
|
713
|
-
"java": {
|
|
714
|
-
"source": "Bucket bucket;\n\nApplication flinkApp = Application.Builder.create(this, \"Application\")\n .propertyGroups(PropertyGroups.builder()\n .FlinkApplicationProperties(Map.of(\n \"inputStreamName\", \"my-input-kinesis-stream\",\n \"outputStreamName\", \"my-output-kinesis-stream\"))\n .build())\n // ...\n .runtime(Runtime.FLINK_1_13)\n .code(ApplicationCode.fromBucket(bucket, \"my-app.jar\"))\n .build();",
|
|
715
|
-
"version": "1"
|
|
716
|
-
},
|
|
717
|
-
"go": {
|
|
718
|
-
"source": "var bucket bucket\n\nflinkApp := flink.NewApplication(this, jsii.String(\"Application\"), &applicationProps{\n\tpropertyGroups: &propertyGroups{\n\t\tflinkApplicationProperties: map[string]*string{\n\t\t\t\"inputStreamName\": jsii.String(\"my-input-kinesis-stream\"),\n\t\t\t\"outputStreamName\": jsii.String(\"my-output-kinesis-stream\"),\n\t\t},\n\t},\n\t// ...\n\truntime: flink.runtime_FLINK_1_13(),\n\tcode: flink.applicationCode.fromBucket(bucket, jsii.String(\"my-app.jar\")),\n})",
|
|
719
|
-
"version": "1"
|
|
720
|
-
},
|
|
721
|
-
"$": {
|
|
722
|
-
"source": "declare 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});",
|
|
723
|
-
"version": "0"
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
"location": {
|
|
727
|
-
"api": {
|
|
728
|
-
"api": "type",
|
|
729
|
-
"fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.PropertyGroups"
|
|
730
|
-
},
|
|
731
|
-
"field": {
|
|
732
|
-
"field": "example"
|
|
733
|
-
}
|
|
734
|
-
},
|
|
735
|
-
"didCompile": true,
|
|
736
|
-
"fqnsReferenced": [
|
|
737
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
738
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
739
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromBucket",
|
|
740
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
741
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.PropertyGroups",
|
|
742
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
743
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_13",
|
|
744
|
-
"aws-cdk-lib.aws_s3.IBucket",
|
|
745
|
-
"constructs.Construct"
|
|
746
|
-
],
|
|
747
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from 'aws-cdk-lib'; \nimport * as flink from '@aws-cdk/aws-kinesisanalytics-flink-alpha';\nimport * as logs from 'aws-cdk-lib/aws-logs';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack { \n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\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/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
748
|
-
"syntaxKindCounter": {
|
|
749
|
-
"10": 4,
|
|
750
|
-
"75": 19,
|
|
751
|
-
"104": 1,
|
|
752
|
-
"130": 1,
|
|
753
|
-
"153": 1,
|
|
754
|
-
"169": 1,
|
|
755
|
-
"193": 3,
|
|
756
|
-
"194": 5,
|
|
757
|
-
"196": 1,
|
|
758
|
-
"197": 1,
|
|
759
|
-
"225": 2,
|
|
760
|
-
"242": 2,
|
|
761
|
-
"243": 2,
|
|
762
|
-
"281": 6,
|
|
763
|
-
"290": 1
|
|
764
|
-
},
|
|
765
|
-
"fqnsFingerprint": "270b5bb76ab051443e46b6262be3be564f4929729eeec7e654516ae5ee87048d"
|
|
766
|
-
},
|
|
767
|
-
"979e500f0a0b6babe1c9cfd1b2373d0b275f82f7c68933ae2701959a0dfa4f6e": {
|
|
768
|
-
"translations": {
|
|
769
|
-
"python": {
|
|
770
|
-
"source": "import path as path\nimport aws_cdk.aws_cloudwatch as cloudwatch\nimport aws_cdk as core\nimport aws_cdk.aws_kinesisanalytics_flink_alpha as flink\n\napp = core.App()\nstack = core.Stack(app, \"FlinkAppTest\")\n\nflink_app = flink.Application(stack, \"App\",\n code=flink.ApplicationCode.from_asset(path.join(__dirname, \"code-asset\")),\n runtime=flink.Runtime.FLINK_1_11\n)\n\ncloudwatch.Alarm(stack, \"Alarm\",\n metric=flink_app.metric_full_restarts(),\n evaluation_periods=1,\n threshold=3\n)\n\napp.synth()",
|
|
771
|
-
"version": "2"
|
|
772
|
-
},
|
|
773
|
-
"csharp": {
|
|
774
|
-
"source": "using Path;\nusing Amazon.CDK.AWS.CloudWatch;\nusing Amazon.CDK;\nusing Amazon.CDK.AWS.Kinesisanalytics.Flink.Alpha;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppTest\");\n\nApplication flinkApp = new Application(stack, \"App\", new ApplicationProps {\n Code = ApplicationCode.FromAsset(Join(__dirname, \"code-asset\")),\n Runtime = Runtime.FLINK_1_11\n});\n\nnew Alarm(stack, \"Alarm\", new AlarmProps {\n Metric = flinkApp.MetricFullRestarts(),\n EvaluationPeriods = 1,\n Threshold = 3\n});\n\napp.Synth();",
|
|
775
|
-
"version": "1"
|
|
776
|
-
},
|
|
777
|
-
"java": {
|
|
778
|
-
"source": "import path.*;\nimport software.amazon.awscdk.services.cloudwatch.*;\nimport software.amazon.awscdk.*;\nimport software.amazon.awscdk.services.kinesisanalytics.flink.alpha.*;\n\nApp app = new App();\nStack stack = new Stack(app, \"FlinkAppTest\");\n\nApplication flinkApp = Application.Builder.create(stack, \"App\")\n .code(ApplicationCode.fromAsset(join(__dirname, \"code-asset\")))\n .runtime(Runtime.FLINK_1_11)\n .build();\n\nAlarm.Builder.create(stack, \"Alarm\")\n .metric(flinkApp.metricFullRestarts())\n .evaluationPeriods(1)\n .threshold(3)\n .build();\n\napp.synth();",
|
|
779
|
-
"version": "1"
|
|
780
|
-
},
|
|
781
|
-
"go": {
|
|
782
|
-
"source": "import path \"github.com/aws-samples/dummy/path\"\nimport cloudwatch \"github.com/aws/aws-cdk-go/awscdk\"\nimport core \"github.com/aws/aws-cdk-go/awscdk\"\nimport flink \"github.com/aws/aws-cdk-go/awscdkkinesisanalyticsflinkalpha\"\n\napp := core.NewApp()\nstack := core.NewStack(app, jsii.String(\"FlinkAppTest\"))\n\nflinkApp := flink.NewApplication(stack, jsii.String(\"App\"), &applicationProps{\n\tcode: flink.applicationCode.fromAsset(path.join(__dirname, jsii.String(\"code-asset\"))),\n\truntime: flink.runtime_FLINK_1_11(),\n})\n\ncloudwatch.NewAlarm(stack, jsii.String(\"Alarm\"), &alarmProps{\n\tmetric: flinkApp.metricFullRestarts(),\n\tevaluationPeriods: jsii.Number(1),\n\tthreshold: jsii.Number(3),\n})\n\napp.synth()",
|
|
783
|
-
"version": "1"
|
|
784
|
-
},
|
|
785
|
-
"$": {
|
|
786
|
-
"source": "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();",
|
|
787
|
-
"version": "0"
|
|
788
|
-
}
|
|
789
|
-
},
|
|
790
|
-
"location": {
|
|
791
|
-
"api": {
|
|
792
|
-
"api": "type",
|
|
793
|
-
"fqn": "@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime"
|
|
794
|
-
},
|
|
795
|
-
"field": {
|
|
796
|
-
"field": "example"
|
|
797
|
-
}
|
|
798
|
-
},
|
|
799
|
-
"didCompile": true,
|
|
800
|
-
"fqnsReferenced": [
|
|
801
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Application",
|
|
802
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode",
|
|
803
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationCode#fromAsset",
|
|
804
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.ApplicationProps",
|
|
805
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime",
|
|
806
|
-
"@aws-cdk/aws-kinesisanalytics-flink-alpha.Runtime#FLINK_1_11",
|
|
807
|
-
"aws-cdk-lib.App",
|
|
808
|
-
"aws-cdk-lib.Stack",
|
|
809
|
-
"aws-cdk-lib.Stage#synth",
|
|
810
|
-
"aws-cdk-lib.aws_cloudwatch.Alarm",
|
|
811
|
-
"aws-cdk-lib.aws_cloudwatch.AlarmProps",
|
|
812
|
-
"aws-cdk-lib.aws_cloudwatch.IMetric",
|
|
813
|
-
"constructs.Construct"
|
|
814
|
-
],
|
|
815
|
-
"fullSource": "///! 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",
|
|
816
|
-
"syntaxKindCounter": {
|
|
817
|
-
"8": 2,
|
|
818
|
-
"10": 8,
|
|
819
|
-
"75": 36,
|
|
820
|
-
"193": 2,
|
|
821
|
-
"194": 11,
|
|
822
|
-
"196": 4,
|
|
823
|
-
"197": 4,
|
|
824
|
-
"225": 3,
|
|
825
|
-
"226": 2,
|
|
826
|
-
"242": 3,
|
|
827
|
-
"243": 3,
|
|
828
|
-
"254": 4,
|
|
829
|
-
"255": 4,
|
|
830
|
-
"256": 4,
|
|
831
|
-
"281": 5,
|
|
832
|
-
"290": 1
|
|
833
|
-
},
|
|
834
|
-
"fqnsFingerprint": "a04acfc76e07702196ab119dc283c6249fc8e975d85bdbb386decb85a45620b2"
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
}
|