@rio-cloud/cdk-v2-constructs 6.0.1 → 6.2.1
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 +48 -10
- package/CHANGELOG.md +7 -674
- package/README.md +6 -6
- package/catalog-info.yaml +13 -0
- package/{API.md → docs/API.md} +32 -0
- package/docs/changelog.md +692 -0
- package/docs/index.md +105 -0
- package/lib/contributions/smart-route/gitlab-runner/autoscaling-runner.d.ts +87 -0
- package/lib/contributions/smart-route/gitlab-runner/autoscaling-runner.js +128 -0
- package/lib/contributions/smart-route/gitlab-runner/index.d.ts +3 -0
- package/lib/contributions/smart-route/gitlab-runner/index.js +20 -0
- package/lib/contributions/smart-route/gitlab-runner/runner-roles.d.ts +20 -0
- package/lib/contributions/smart-route/gitlab-runner/runner-roles.js +330 -0
- package/lib/contributions/smart-route/gitlab-runner/spot-role.d.ts +7 -0
- package/lib/contributions/smart-route/gitlab-runner/spot-role.js +18 -0
- package/lib/kafka/kafka-topic.d.ts +7 -0
- package/lib/kafka/kafka-topic.js +17 -1
- package/mkdocs.yaml +12 -0
- package/package.json +8 -4
- package/version.json +1 -1
- /package/{CONTRIBUTION.md → docs/contribution.md} +0 -0
- /package/{developers-readme.md → docs/developers-readme.md} +0 -0
- /package/{MIGRATION_GUIDE.md → docs/migration_guide.md} +0 -0
package/.jsii
CHANGED
|
@@ -3671,7 +3671,7 @@
|
|
|
3671
3671
|
},
|
|
3672
3672
|
"name": "@rio-cloud/cdk-v2-constructs",
|
|
3673
3673
|
"readme": {
|
|
3674
|
-
"markdown": "# RIO CDK Constructs\n\nThis package contains CDK2 constructs for RIO teams.\n\n> NPM: `@rio-cloud/cdk-v2-constructs`\n\n## Bootstrapping of CDK project\n\n```\n$ npx cdk init --language typescript\n```\n\n## Installation\n\n```\n$ npm install --save @rio-cloud/cdk-v2-constructs\n```\n\n## See also\n\n * [How to contribute](./
|
|
3674
|
+
"markdown": "# RIO CDK Constructs\n\nThis package contains CDK2 constructs for RIO teams.\n\n> NPM: `@rio-cloud/cdk-v2-constructs`\n\n## Bootstrapping of CDK project\n\n```\n$ npx cdk init --language typescript\n```\n\n## Installation\n\n```\n$ npm install --save @rio-cloud/cdk-v2-constructs\n```\n\n## See also\n\n * [How to contribute](./docs/contribution.md)\n * [Changelog](./docs/changelog.md)\n * [brief API description](./docs/API.md)\n\n## Internal documentation for library devs\n[Documentation](./docs/developers-readme.md)\n\n## Constructs overview (Under construction...)\n\n### Watchful\n\nWatchful constructs help generate some default monitors based on the resources defined in your stack. E.g. - If your stack contains a lambda function, and you configure watchful construct, then it will create out of box metric monitors for Throttling, Lambda error and Log error monitors. The ever-growing list of resources that watchful creates monitors for as of today are:\n\n- Application load balancer\n- Cloudfront\n- Documentdb\n- Dynamodb\n- Fargate\n- Lambda\n- RDS\n\nSimply add the following to your CDK stack to get started.\n```\n import * as rio from '@rio-cloud/cdk-v2-constructs';\n ...\n const dw = new rio.watchfulv2.Watchful(this, 'Watchful', {\n serviceName,\n });\n dw.watchScope(this); // Generates alarms for all supported resources\n ...\n```\n\nThere are options to override some defaults too. Please be aware that the library is very opinionated and is written with the most general use cases in mind. It is necessary to keep the use of the library simple enough, which means that there is only limited flexibility regarding the configuration options. Having said that, feel free to reach out to team CLAID over slack #rio-platform-support in case of feature requests.\n\nThe broad classification of the monitors created by watchful are\n- Log error monitors\n- Metrics Query monitors: Basically everything other than log error monitors\n\nFor Metrics query monitors, you can configure the priority (defaults as 3). For log error monitors, you can configure priority, renotification interval and can configure if the auto close of the monitor is disabled.\n```\n ...\n const dw = new Watchful(stack, 'Watchful2', {\n logErrorMonitorConfig: {\n disableAutoClose: true,\n renotifyInterval: 150,\n priority: 4,\n },\n queryErrorMonitorConfig: {\n priority: 4\n }\n });\n dw.watchScope(stack);\n```\n\nThere is an `overrideAlarmThreshold` method which can be used to override the default watchful thresholds. Please make sure to use the method before the `watchscope` function.\nE.g. -\n```\n...\nconst dw = new Watchful(stack, 'Watchful', {});\ndw.overrideAlarmThreshold({\n monitoredResourceScope: lambdaA,\n monitorType: MonitorType.ERRORS,\n threshold: 5,\n});\ndw.watchScope(stack);\n```\n\n### ClassifyPipelineType\n\nThe pipelines can be tagged with key 'pipeline_type' to the following values:\n\n* deploy: To tag the production pipeline releasing the application\n* branch: The branch pipeline. Mostly used to test contributions / renovate updates\n* vulnerability: The vulnerability pipeline\n\nThe construct `ClassifyPipelineType` can be used to tag the pipeline accordingly. This tag is also picked up by the Datadog pipeline metric used to monitor the pipelines. It is added as a tag to the metric. This gives you more flexibility with managing the monitors also. E.g. some teams don't want to get alerted for branch pipelines. You can then leverage this metric tag to filter the pipelines.\n\nExample:\n\n```typescript\nconst pipeline = new pipelines.CodePipeline(this, 'Pipeline', {\n ...\n });\nrio.ClassifyPipelineType.apply(pipeline, rio.RioPipelineType.DEPLOY);\n```\n"
|
|
3675
3675
|
},
|
|
3676
3676
|
"repository": {
|
|
3677
3677
|
"type": "git",
|
|
@@ -6554,7 +6554,7 @@
|
|
|
6554
6554
|
},
|
|
6555
6555
|
"locationInModule": {
|
|
6556
6556
|
"filename": "src/kafka/kafka-topic.ts",
|
|
6557
|
-
"line":
|
|
6557
|
+
"line": 237
|
|
6558
6558
|
},
|
|
6559
6559
|
"parameters": [
|
|
6560
6560
|
{
|
|
@@ -6580,7 +6580,7 @@
|
|
|
6580
6580
|
"kind": "class",
|
|
6581
6581
|
"locationInModule": {
|
|
6582
6582
|
"filename": "src/kafka/kafka-topic.ts",
|
|
6583
|
-
"line":
|
|
6583
|
+
"line": 235
|
|
6584
6584
|
},
|
|
6585
6585
|
"name": "KafkaTopic",
|
|
6586
6586
|
"symbolId": "src/kafka/kafka-topic:KafkaTopic"
|
|
@@ -6919,7 +6919,7 @@
|
|
|
6919
6919
|
},
|
|
6920
6920
|
"locationInModule": {
|
|
6921
6921
|
"filename": "src/kafka/kafka-topic.ts",
|
|
6922
|
-
"line":
|
|
6922
|
+
"line": 260
|
|
6923
6923
|
},
|
|
6924
6924
|
"parameters": [
|
|
6925
6925
|
{
|
|
@@ -6945,7 +6945,7 @@
|
|
|
6945
6945
|
"kind": "class",
|
|
6946
6946
|
"locationInModule": {
|
|
6947
6947
|
"filename": "src/kafka/kafka-topic.ts",
|
|
6948
|
-
"line":
|
|
6948
|
+
"line": 258
|
|
6949
6949
|
},
|
|
6950
6950
|
"name": "KafkaTopicV4",
|
|
6951
6951
|
"symbolId": "src/kafka/kafka-topic:KafkaTopicV4"
|
|
@@ -7085,6 +7085,25 @@
|
|
|
7085
7085
|
"fqn": "@rio-cloud/cdk-v2-constructs.kafka.LogCompactionProperties"
|
|
7086
7086
|
}
|
|
7087
7087
|
},
|
|
7088
|
+
{
|
|
7089
|
+
"abstract": true,
|
|
7090
|
+
"docs": {
|
|
7091
|
+
"default": "undefined",
|
|
7092
|
+
"remarks": "It could just be enabled, if the topic is compacted and the RecoveryPolicy is 'recoverable'.",
|
|
7093
|
+
"stability": "stable",
|
|
7094
|
+
"summary": "Specify whether the topic should be backed up automatically or not."
|
|
7095
|
+
},
|
|
7096
|
+
"immutable": true,
|
|
7097
|
+
"locationInModule": {
|
|
7098
|
+
"filename": "src/kafka/kafka-topic.ts",
|
|
7099
|
+
"line": 217
|
|
7100
|
+
},
|
|
7101
|
+
"name": "managedBackupEnabled",
|
|
7102
|
+
"optional": true,
|
|
7103
|
+
"type": {
|
|
7104
|
+
"primitive": "boolean"
|
|
7105
|
+
}
|
|
7106
|
+
},
|
|
7088
7107
|
{
|
|
7089
7108
|
"abstract": true,
|
|
7090
7109
|
"docs": {
|
|
@@ -15145,7 +15164,7 @@
|
|
|
15145
15164
|
},
|
|
15146
15165
|
"locationInModule": {
|
|
15147
15166
|
"filename": "src/kafka/kafka-topic.ts",
|
|
15148
|
-
"line":
|
|
15167
|
+
"line": 237
|
|
15149
15168
|
},
|
|
15150
15169
|
"parameters": [
|
|
15151
15170
|
{
|
|
@@ -15171,7 +15190,7 @@
|
|
|
15171
15190
|
"kind": "class",
|
|
15172
15191
|
"locationInModule": {
|
|
15173
15192
|
"filename": "src/kafka/kafka-topic.ts",
|
|
15174
|
-
"line":
|
|
15193
|
+
"line": 235
|
|
15175
15194
|
},
|
|
15176
15195
|
"name": "KafkaTopic",
|
|
15177
15196
|
"namespace": "kafka",
|
|
@@ -15514,7 +15533,7 @@
|
|
|
15514
15533
|
},
|
|
15515
15534
|
"locationInModule": {
|
|
15516
15535
|
"filename": "src/kafka/kafka-topic.ts",
|
|
15517
|
-
"line":
|
|
15536
|
+
"line": 260
|
|
15518
15537
|
},
|
|
15519
15538
|
"parameters": [
|
|
15520
15539
|
{
|
|
@@ -15540,7 +15559,7 @@
|
|
|
15540
15559
|
"kind": "class",
|
|
15541
15560
|
"locationInModule": {
|
|
15542
15561
|
"filename": "src/kafka/kafka-topic.ts",
|
|
15543
|
-
"line":
|
|
15562
|
+
"line": 258
|
|
15544
15563
|
},
|
|
15545
15564
|
"name": "KafkaTopicV4",
|
|
15546
15565
|
"namespace": "kafka",
|
|
@@ -15682,6 +15701,25 @@
|
|
|
15682
15701
|
"fqn": "@rio-cloud/cdk-v2-constructs.kafka.LogCompactionProperties"
|
|
15683
15702
|
}
|
|
15684
15703
|
},
|
|
15704
|
+
{
|
|
15705
|
+
"abstract": true,
|
|
15706
|
+
"docs": {
|
|
15707
|
+
"default": "undefined",
|
|
15708
|
+
"remarks": "It could just be enabled, if the topic is compacted and the RecoveryPolicy is 'recoverable'.",
|
|
15709
|
+
"stability": "stable",
|
|
15710
|
+
"summary": "Specify whether the topic should be backed up automatically or not."
|
|
15711
|
+
},
|
|
15712
|
+
"immutable": true,
|
|
15713
|
+
"locationInModule": {
|
|
15714
|
+
"filename": "src/kafka/kafka-topic.ts",
|
|
15715
|
+
"line": 217
|
|
15716
|
+
},
|
|
15717
|
+
"name": "managedBackupEnabled",
|
|
15718
|
+
"optional": true,
|
|
15719
|
+
"type": {
|
|
15720
|
+
"primitive": "boolean"
|
|
15721
|
+
}
|
|
15722
|
+
},
|
|
15685
15723
|
{
|
|
15686
15724
|
"abstract": true,
|
|
15687
15725
|
"docs": {
|
|
@@ -16271,5 +16309,5 @@
|
|
|
16271
16309
|
}
|
|
16272
16310
|
},
|
|
16273
16311
|
"version": "0.0.0",
|
|
16274
|
-
"fingerprint": "
|
|
16312
|
+
"fingerprint": "vpDlySGr5n//8kkjLy5zFrJZUFzANznNblVJs8b3bl0="
|
|
16275
16313
|
}
|