@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/README.md
CHANGED
|
@@ -18,18 +18,18 @@ $ npm install --save @rio-cloud/cdk-v2-constructs
|
|
|
18
18
|
|
|
19
19
|
## See also
|
|
20
20
|
|
|
21
|
-
* [How to contribute](./
|
|
22
|
-
* [Changelog](./
|
|
23
|
-
* [brief API description](./API.md)
|
|
21
|
+
* [How to contribute](./docs/contribution.md)
|
|
22
|
+
* [Changelog](./docs/changelog.md)
|
|
23
|
+
* [brief API description](./docs/API.md)
|
|
24
24
|
|
|
25
25
|
## Internal documentation for library devs
|
|
26
|
-
[Documentation](./developers-readme.md)
|
|
26
|
+
[Documentation](./docs/developers-readme.md)
|
|
27
27
|
|
|
28
28
|
## Constructs overview (Under construction...)
|
|
29
29
|
|
|
30
30
|
### Watchful
|
|
31
31
|
|
|
32
|
-
Watchful constructs help generate some default monitors based on the
|
|
32
|
+
Watchful 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:
|
|
33
33
|
|
|
34
34
|
- Application load balancer
|
|
35
35
|
- Cloudfront
|
|
@@ -73,7 +73,7 @@ For Metrics query monitors, you can configure the priority (defaults as 3). For
|
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
There 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.
|
|
76
|
-
|
|
76
|
+
E.g. -
|
|
77
77
|
```
|
|
78
78
|
...
|
|
79
79
|
const dw = new Watchful(stack, 'Watchful', {});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
apiVersion: backstage.io/v1alpha1
|
|
2
|
+
kind: Component
|
|
3
|
+
metadata:
|
|
4
|
+
name: cdk-v2-constructs
|
|
5
|
+
description: the
|
|
6
|
+
annotations:
|
|
7
|
+
backstage.io/techdocs-ref: dir:.
|
|
8
|
+
links:
|
|
9
|
+
- url: https://www.npmjs.com/package/@rio-cloud/cdk-v2-constructs
|
|
10
|
+
spec:
|
|
11
|
+
type: library
|
|
12
|
+
lifecycle: active-development
|
|
13
|
+
owner: rio-team-claid
|
package/{API.md → docs/API.md}
RENAMED
|
@@ -10309,6 +10309,7 @@ const kafkaTopicV4Props: KafkaTopicV4Props = { ... }
|
|
|
10309
10309
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.KafkaTopicV4Props.property.numberOfPartitions">numberOfPartitions</a></code> | <code>number</code> | Defines degree of parallelism of the topic; |
|
|
10310
10310
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.KafkaTopicV4Props.property.instantDeletionEnabled">instantDeletionEnabled</a></code> | <code>boolean</code> | If set to 'false, the topic's data will be deleted on Kafka 10 days after stack deletion. |
|
|
10311
10311
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.KafkaTopicV4Props.property.logCompactionProperties">logCompactionProperties</a></code> | <code>@rio-cloud/cdk-v2-constructs.kafka.LogCompactionProperties</code> | Must only be provided if 'isLogCompacted' is 'true'. |
|
|
10312
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.KafkaTopicV4Props.property.managedBackupEnabled">managedBackupEnabled</a></code> | <code>boolean</code> | Specify whether the topic should be backed up automatically or not. |
|
|
10312
10313
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.KafkaTopicV4Props.property.replicationFactor">replicationFactor</a></code> | <code>number</code> | Defines degree of replication of messages; |
|
|
10313
10314
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.KafkaTopicV4Props.property.retention">retention</a></code> | <code>aws-cdk-lib.Duration</code> | Time how long messages are retained on Kafka cluster; |
|
|
10314
10315
|
|
|
@@ -10408,6 +10409,21 @@ Must only be provided if 'isLogCompacted' is 'true'.
|
|
|
10408
10409
|
|
|
10409
10410
|
---
|
|
10410
10411
|
|
|
10412
|
+
##### `managedBackupEnabled`<sup>Optional</sup> <a name="managedBackupEnabled" id="@rio-cloud/cdk-v2-constructs.KafkaTopicV4Props.property.managedBackupEnabled"></a>
|
|
10413
|
+
|
|
10414
|
+
```typescript
|
|
10415
|
+
public readonly managedBackupEnabled: boolean;
|
|
10416
|
+
```
|
|
10417
|
+
|
|
10418
|
+
- *Type:* boolean
|
|
10419
|
+
- *Default:* undefined
|
|
10420
|
+
|
|
10421
|
+
Specify whether the topic should be backed up automatically or not.
|
|
10422
|
+
|
|
10423
|
+
It could just be enabled, if the topic is compacted and the RecoveryPolicy is 'recoverable'.
|
|
10424
|
+
|
|
10425
|
+
---
|
|
10426
|
+
|
|
10411
10427
|
##### `replicationFactor`<sup>Optional</sup> <a name="replicationFactor" id="@rio-cloud/cdk-v2-constructs.KafkaTopicV4Props.property.replicationFactor"></a>
|
|
10412
10428
|
|
|
10413
10429
|
```typescript
|
|
@@ -10464,6 +10480,7 @@ const kafkaTopicV4Props: kafka.KafkaTopicV4Props = { ... }
|
|
|
10464
10480
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.kafka.KafkaTopicV4Props.property.numberOfPartitions">numberOfPartitions</a></code> | <code>number</code> | Defines degree of parallelism of the topic; |
|
|
10465
10481
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.kafka.KafkaTopicV4Props.property.instantDeletionEnabled">instantDeletionEnabled</a></code> | <code>boolean</code> | If set to 'false, the topic's data will be deleted on Kafka 10 days after stack deletion. |
|
|
10466
10482
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.kafka.KafkaTopicV4Props.property.logCompactionProperties">logCompactionProperties</a></code> | <code>@rio-cloud/cdk-v2-constructs.kafka.LogCompactionProperties</code> | Must only be provided if 'isLogCompacted' is 'true'. |
|
|
10483
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.kafka.KafkaTopicV4Props.property.managedBackupEnabled">managedBackupEnabled</a></code> | <code>boolean</code> | Specify whether the topic should be backed up automatically or not. |
|
|
10467
10484
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.kafka.KafkaTopicV4Props.property.replicationFactor">replicationFactor</a></code> | <code>number</code> | Defines degree of replication of messages; |
|
|
10468
10485
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.kafka.KafkaTopicV4Props.property.retention">retention</a></code> | <code>aws-cdk-lib.Duration</code> | Time how long messages are retained on Kafka cluster; |
|
|
10469
10486
|
|
|
@@ -10563,6 +10580,21 @@ Must only be provided if 'isLogCompacted' is 'true'.
|
|
|
10563
10580
|
|
|
10564
10581
|
---
|
|
10565
10582
|
|
|
10583
|
+
##### `managedBackupEnabled`<sup>Optional</sup> <a name="managedBackupEnabled" id="@rio-cloud/cdk-v2-constructs.kafka.KafkaTopicV4Props.property.managedBackupEnabled"></a>
|
|
10584
|
+
|
|
10585
|
+
```typescript
|
|
10586
|
+
public readonly managedBackupEnabled: boolean;
|
|
10587
|
+
```
|
|
10588
|
+
|
|
10589
|
+
- *Type:* boolean
|
|
10590
|
+
- *Default:* undefined
|
|
10591
|
+
|
|
10592
|
+
Specify whether the topic should be backed up automatically or not.
|
|
10593
|
+
|
|
10594
|
+
It could just be enabled, if the topic is compacted and the RecoveryPolicy is 'recoverable'.
|
|
10595
|
+
|
|
10596
|
+
---
|
|
10597
|
+
|
|
10566
10598
|
##### `replicationFactor`<sup>Optional</sup> <a name="replicationFactor" id="@rio-cloud/cdk-v2-constructs.kafka.KafkaTopicV4Props.property.replicationFactor"></a>
|
|
10567
10599
|
|
|
10568
10600
|
```typescript
|