@rio-cloud/cdk-v2-constructs 4.35.0 → 4.36.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 +89 -6
- package/API.md +80 -0
- package/CHANGELOG.md +14 -0
- package/README.md +17 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/lib/pipeline/rio-pipeline-type.d.ts +17 -0
- package/lib/pipeline/rio-pipeline-type.js +29 -0
- package/package.json +1 -1
- package/version.json +1 -1
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](./CONTRIBUTION.md)\n * [Changelog](./CHANGELOG.md)\n * [brief API description](./API.md)\n\n## Internal documentation for library devs\n[Documentation](./developers-readme.md)\n\n## Constructs overview (Under construction...)\n\n### Watchful\n\nWatchful constructs help generate some default monitors based on the resouces defined in your stack. Eg - 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 cpnfigure priority, renototification 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 aure to use the method before the `watchscope` function.\nEg -\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```"
|
|
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](./CONTRIBUTION.md)\n * [Changelog](./CHANGELOG.md)\n * [brief API description](./API.md)\n\n## Internal documentation for library devs\n[Documentation](./developers-readme.md)\n\n## Constructs overview (Under construction...)\n\n### Watchful\n\nWatchful constructs help generate some default monitors based on the resouces defined in your stack. Eg - 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 cpnfigure priority, renototification 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 aure to use the method before the `watchscope` function.\nEg -\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* deploy: To tag the production pipeline releasing the application\n* branch: The branch pipeline. Mostly used to test contributions / renovate updates\n* vulerability: 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. Eg - some teams dont want to get alered for branch pipelines. You can then leverage this metric tag to filter the pipelines.\n\nExample\n```\nconst pipeline = new pipelines.CodePipeline(this, 'Pipeline', {\n ...\n });\nrio.ClassifyPipelineType.apply(pipeline, rio.RioPipelineType.DEPLOY);\n```"
|
|
3675
3675
|
},
|
|
3676
3676
|
"repository": {
|
|
3677
3677
|
"type": "git",
|
|
@@ -3682,21 +3682,21 @@
|
|
|
3682
3682
|
"@rio-cloud/cdk-v2-constructs.backup": {
|
|
3683
3683
|
"locationInModule": {
|
|
3684
3684
|
"filename": "src/index.ts",
|
|
3685
|
-
"line":
|
|
3685
|
+
"line": 34
|
|
3686
3686
|
},
|
|
3687
3687
|
"symbolId": "src/backup/index:"
|
|
3688
3688
|
},
|
|
3689
3689
|
"@rio-cloud/cdk-v2-constructs.datadog": {
|
|
3690
3690
|
"locationInModule": {
|
|
3691
3691
|
"filename": "src/index.ts",
|
|
3692
|
-
"line":
|
|
3692
|
+
"line": 20
|
|
3693
3693
|
},
|
|
3694
3694
|
"symbolId": "src/datadog/index:"
|
|
3695
3695
|
},
|
|
3696
3696
|
"@rio-cloud/cdk-v2-constructs.datadogv2": {
|
|
3697
3697
|
"locationInModule": {
|
|
3698
3698
|
"filename": "src/index.ts",
|
|
3699
|
-
"line":
|
|
3699
|
+
"line": 21
|
|
3700
3700
|
},
|
|
3701
3701
|
"symbolId": "src/datadogv2/index:"
|
|
3702
3702
|
},
|
|
@@ -3710,7 +3710,7 @@
|
|
|
3710
3710
|
"@rio-cloud/cdk-v2-constructs.kafka": {
|
|
3711
3711
|
"locationInModule": {
|
|
3712
3712
|
"filename": "src/index.ts",
|
|
3713
|
-
"line":
|
|
3713
|
+
"line": 17
|
|
3714
3714
|
},
|
|
3715
3715
|
"symbolId": "src/kafka/index:"
|
|
3716
3716
|
},
|
|
@@ -4607,6 +4607,54 @@
|
|
|
4607
4607
|
"name": "ClaidometerTemplate",
|
|
4608
4608
|
"symbolId": "src/rio-claidometer:ClaidometerTemplate"
|
|
4609
4609
|
},
|
|
4610
|
+
"@rio-cloud/cdk-v2-constructs.ClassifyPipelineType": {
|
|
4611
|
+
"assembly": "@rio-cloud/cdk-v2-constructs",
|
|
4612
|
+
"docs": {
|
|
4613
|
+
"remarks": "These tags are eventually used in datadog pipeline metrics to filter specific pipeline types\nEg - you can decide to not monitor branch pipelines",
|
|
4614
|
+
"stability": "stable",
|
|
4615
|
+
"summary": "Helper function to tag the pipeline with correct pipeline type."
|
|
4616
|
+
},
|
|
4617
|
+
"fqn": "@rio-cloud/cdk-v2-constructs.ClassifyPipelineType",
|
|
4618
|
+
"initializer": {
|
|
4619
|
+
"docs": {
|
|
4620
|
+
"stability": "stable"
|
|
4621
|
+
}
|
|
4622
|
+
},
|
|
4623
|
+
"kind": "class",
|
|
4624
|
+
"locationInModule": {
|
|
4625
|
+
"filename": "src/pipeline/rio-pipeline-type.ts",
|
|
4626
|
+
"line": 18
|
|
4627
|
+
},
|
|
4628
|
+
"methods": [
|
|
4629
|
+
{
|
|
4630
|
+
"docs": {
|
|
4631
|
+
"stability": "stable"
|
|
4632
|
+
},
|
|
4633
|
+
"locationInModule": {
|
|
4634
|
+
"filename": "src/pipeline/rio-pipeline-type.ts",
|
|
4635
|
+
"line": 19
|
|
4636
|
+
},
|
|
4637
|
+
"name": "apply",
|
|
4638
|
+
"parameters": [
|
|
4639
|
+
{
|
|
4640
|
+
"name": "target",
|
|
4641
|
+
"type": {
|
|
4642
|
+
"fqn": "constructs.IConstruct"
|
|
4643
|
+
}
|
|
4644
|
+
},
|
|
4645
|
+
{
|
|
4646
|
+
"name": "pipelineType",
|
|
4647
|
+
"type": {
|
|
4648
|
+
"fqn": "@rio-cloud/cdk-v2-constructs.RioPipelineType"
|
|
4649
|
+
}
|
|
4650
|
+
}
|
|
4651
|
+
],
|
|
4652
|
+
"static": true
|
|
4653
|
+
}
|
|
4654
|
+
],
|
|
4655
|
+
"name": "ClassifyPipelineType",
|
|
4656
|
+
"symbolId": "src/pipeline/rio-pipeline-type:ClassifyPipelineType"
|
|
4657
|
+
},
|
|
4610
4658
|
"@rio-cloud/cdk-v2-constructs.CodeBuildOptions": {
|
|
4611
4659
|
"assembly": "@rio-cloud/cdk-v2-constructs",
|
|
4612
4660
|
"datatype": true,
|
|
@@ -9276,6 +9324,41 @@
|
|
|
9276
9324
|
],
|
|
9277
9325
|
"symbolId": "src/rio-load-balancer:RioLoadBalancerProps"
|
|
9278
9326
|
},
|
|
9327
|
+
"@rio-cloud/cdk-v2-constructs.RioPipelineType": {
|
|
9328
|
+
"assembly": "@rio-cloud/cdk-v2-constructs",
|
|
9329
|
+
"docs": {
|
|
9330
|
+
"stability": "stable",
|
|
9331
|
+
"summary": "The allowed values for pipeline type."
|
|
9332
|
+
},
|
|
9333
|
+
"fqn": "@rio-cloud/cdk-v2-constructs.RioPipelineType",
|
|
9334
|
+
"kind": "enum",
|
|
9335
|
+
"locationInModule": {
|
|
9336
|
+
"filename": "src/pipeline/rio-pipeline-type.ts",
|
|
9337
|
+
"line": 7
|
|
9338
|
+
},
|
|
9339
|
+
"members": [
|
|
9340
|
+
{
|
|
9341
|
+
"docs": {
|
|
9342
|
+
"stability": "stable"
|
|
9343
|
+
},
|
|
9344
|
+
"name": "BRANCH"
|
|
9345
|
+
},
|
|
9346
|
+
{
|
|
9347
|
+
"docs": {
|
|
9348
|
+
"stability": "stable"
|
|
9349
|
+
},
|
|
9350
|
+
"name": "VULNERABILITY"
|
|
9351
|
+
},
|
|
9352
|
+
{
|
|
9353
|
+
"docs": {
|
|
9354
|
+
"stability": "stable"
|
|
9355
|
+
},
|
|
9356
|
+
"name": "DEPLOY"
|
|
9357
|
+
}
|
|
9358
|
+
],
|
|
9359
|
+
"name": "RioPipelineType",
|
|
9360
|
+
"symbolId": "src/pipeline/rio-pipeline-type:RioPipelineType"
|
|
9361
|
+
},
|
|
9279
9362
|
"@rio-cloud/cdk-v2-constructs.RioSecretsDeployStep": {
|
|
9280
9363
|
"assembly": "@rio-cloud/cdk-v2-constructs",
|
|
9281
9364
|
"base": "aws-cdk-lib.pipelines.CodeBuildStep",
|
|
@@ -16168,5 +16251,5 @@
|
|
|
16168
16251
|
}
|
|
16169
16252
|
},
|
|
16170
16253
|
"version": "0.0.0",
|
|
16171
|
-
"fingerprint": "
|
|
16254
|
+
"fingerprint": "gPxdugWKVn7QSMWitcNxSMXBkEMSWbhoM/O1bfEeRRY="
|
|
16172
16255
|
}
|
package/API.md
CHANGED
|
@@ -14301,6 +14301,57 @@ backup.BackupPolicy.apply(target: IConstruct, criticality: Criticality)
|
|
|
14301
14301
|
|
|
14302
14302
|
|
|
14303
14303
|
|
|
14304
|
+
### ClassifyPipelineType <a name="ClassifyPipelineType" id="@rio-cloud/cdk-v2-constructs.ClassifyPipelineType"></a>
|
|
14305
|
+
|
|
14306
|
+
Helper function to tag the pipeline with correct pipeline type.
|
|
14307
|
+
|
|
14308
|
+
These tags are eventually used in datadog pipeline metrics to filter specific pipeline types
|
|
14309
|
+
Eg - you can decide to not monitor branch pipelines
|
|
14310
|
+
|
|
14311
|
+
#### Initializers <a name="Initializers" id="@rio-cloud/cdk-v2-constructs.ClassifyPipelineType.Initializer"></a>
|
|
14312
|
+
|
|
14313
|
+
```typescript
|
|
14314
|
+
import { ClassifyPipelineType } from '@rio-cloud/cdk-v2-constructs'
|
|
14315
|
+
|
|
14316
|
+
new ClassifyPipelineType()
|
|
14317
|
+
```
|
|
14318
|
+
|
|
14319
|
+
| **Name** | **Type** | **Description** |
|
|
14320
|
+
| --- | --- | --- |
|
|
14321
|
+
|
|
14322
|
+
---
|
|
14323
|
+
|
|
14324
|
+
|
|
14325
|
+
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
|
|
14326
|
+
|
|
14327
|
+
| **Name** | **Description** |
|
|
14328
|
+
| --- | --- |
|
|
14329
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.ClassifyPipelineType.apply">apply</a></code> | *No description.* |
|
|
14330
|
+
|
|
14331
|
+
---
|
|
14332
|
+
|
|
14333
|
+
##### `apply` <a name="apply" id="@rio-cloud/cdk-v2-constructs.ClassifyPipelineType.apply"></a>
|
|
14334
|
+
|
|
14335
|
+
```typescript
|
|
14336
|
+
import { ClassifyPipelineType } from '@rio-cloud/cdk-v2-constructs'
|
|
14337
|
+
|
|
14338
|
+
ClassifyPipelineType.apply(target: IConstruct, pipelineType: RioPipelineType)
|
|
14339
|
+
```
|
|
14340
|
+
|
|
14341
|
+
###### `target`<sup>Required</sup> <a name="target" id="@rio-cloud/cdk-v2-constructs.ClassifyPipelineType.apply.parameter.target"></a>
|
|
14342
|
+
|
|
14343
|
+
- *Type:* constructs.IConstruct
|
|
14344
|
+
|
|
14345
|
+
---
|
|
14346
|
+
|
|
14347
|
+
###### `pipelineType`<sup>Required</sup> <a name="pipelineType" id="@rio-cloud/cdk-v2-constructs.ClassifyPipelineType.apply.parameter.pipelineType"></a>
|
|
14348
|
+
|
|
14349
|
+
- *Type:* <a href="#@rio-cloud/cdk-v2-constructs.RioPipelineType">RioPipelineType</a>
|
|
14350
|
+
|
|
14351
|
+
---
|
|
14352
|
+
|
|
14353
|
+
|
|
14354
|
+
|
|
14304
14355
|
### DatadogCaseNotification <a name="DatadogCaseNotification" id="@rio-cloud/cdk-v2-constructs.datadogv2.DatadogCaseNotification"></a>
|
|
14305
14356
|
|
|
14306
14357
|
- *Implements:* @rio-cloud/cdk-v2-constructs.datadogv2.INotification
|
|
@@ -16879,6 +16930,35 @@ Well known renotification settings supported by Datadog.
|
|
|
16879
16930
|
---
|
|
16880
16931
|
|
|
16881
16932
|
|
|
16933
|
+
### RioPipelineType <a name="RioPipelineType" id="@rio-cloud/cdk-v2-constructs.RioPipelineType"></a>
|
|
16934
|
+
|
|
16935
|
+
The allowed values for pipeline type.
|
|
16936
|
+
|
|
16937
|
+
#### Members <a name="Members" id="Members"></a>
|
|
16938
|
+
|
|
16939
|
+
| **Name** | **Description** |
|
|
16940
|
+
| --- | --- |
|
|
16941
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.RioPipelineType.BRANCH">BRANCH</a></code> | *No description.* |
|
|
16942
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.RioPipelineType.VULNERABILITY">VULNERABILITY</a></code> | *No description.* |
|
|
16943
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.RioPipelineType.DEPLOY">DEPLOY</a></code> | *No description.* |
|
|
16944
|
+
|
|
16945
|
+
---
|
|
16946
|
+
|
|
16947
|
+
##### `BRANCH` <a name="BRANCH" id="@rio-cloud/cdk-v2-constructs.RioPipelineType.BRANCH"></a>
|
|
16948
|
+
|
|
16949
|
+
---
|
|
16950
|
+
|
|
16951
|
+
|
|
16952
|
+
##### `VULNERABILITY` <a name="VULNERABILITY" id="@rio-cloud/cdk-v2-constructs.RioPipelineType.VULNERABILITY"></a>
|
|
16953
|
+
|
|
16954
|
+
---
|
|
16955
|
+
|
|
16956
|
+
|
|
16957
|
+
##### `DEPLOY` <a name="DEPLOY" id="@rio-cloud/cdk-v2-constructs.RioPipelineType.DEPLOY"></a>
|
|
16958
|
+
|
|
16959
|
+
---
|
|
16960
|
+
|
|
16961
|
+
|
|
16882
16962
|
### TriggerKey <a name="TriggerKey" id="@rio-cloud/cdk-v2-constructs.TriggerKey"></a>
|
|
16883
16963
|
|
|
16884
16964
|
#### Members <a name="Members" id="Members"></a>
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [4.36.1](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv4.36.0&sourceBranch=refs%2Ftags%2Fv4.36.1) (2024-06-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* :boom: Fixed the incorrect pipeline type ([1009db7](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/commits/1009db7d5edcb8bdc17fab441a1013cd597fac62))
|
|
11
|
+
|
|
12
|
+
## [4.36.0](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv4.35.0&sourceBranch=refs%2Ftags%2Fv4.36.0) (2024-06-03)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* :sparkles: Added a new contruct to classify the pipeline type ([eeee4c6](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/commits/eeee4c6071ae220e2aaaafbf07b634ab847f1290))
|
|
18
|
+
|
|
5
19
|
## [4.35.0](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv4.34.1&sourceBranch=refs%2Ftags%2Fv4.35.0) (2024-05-24)
|
|
6
20
|
|
|
7
21
|
|
package/README.md
CHANGED
|
@@ -83,4 +83,21 @@ dw.overrideAlarmThreshold({
|
|
|
83
83
|
threshold: 5,
|
|
84
84
|
});
|
|
85
85
|
dw.watchScope(stack);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### ClassifyPipelineType
|
|
89
|
+
|
|
90
|
+
The pipelines can be tagged with key 'pipeline_type' to the following values
|
|
91
|
+
* deploy: To tag the production pipeline releasing the application
|
|
92
|
+
* branch: The branch pipeline. Mostly used to test contributions / renovate updates
|
|
93
|
+
* vulerability: The vulnerability pipeline
|
|
94
|
+
|
|
95
|
+
The 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. Eg - some teams dont want to get alered for branch pipelines. You can then leverage this metric tag to filter the pipelines.
|
|
96
|
+
|
|
97
|
+
Example
|
|
98
|
+
```
|
|
99
|
+
const pipeline = new pipelines.CodePipeline(this, 'Pipeline', {
|
|
100
|
+
...
|
|
101
|
+
});
|
|
102
|
+
rio.ClassifyPipelineType.apply(pipeline, rio.RioPipelineType.DEPLOY);
|
|
86
103
|
```
|
package/lib/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './fargate/rio-fargate-service';
|
|
|
7
7
|
export * as fargate from './fargate';
|
|
8
8
|
export * from './pipeline/rio-bitbucket-source-action';
|
|
9
9
|
export * from './pipeline/rio-backup-secrets-restore-stage';
|
|
10
|
+
export * from './pipeline/rio-pipeline-type';
|
|
10
11
|
export * from './kafka';
|
|
11
12
|
export * as kafka from './kafka';
|
|
12
13
|
export * from './datadog';
|
package/lib/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./fargate/rio-fargate-service"), exports);
|
|
|
24
24
|
exports.fargate = require("./fargate");
|
|
25
25
|
__exportStar(require("./pipeline/rio-bitbucket-source-action"), exports);
|
|
26
26
|
__exportStar(require("./pipeline/rio-backup-secrets-restore-stage"), exports);
|
|
27
|
+
__exportStar(require("./pipeline/rio-pipeline-type"), exports);
|
|
27
28
|
__exportStar(require("./kafka"), exports);
|
|
28
29
|
exports.kafka = require("./kafka");
|
|
29
30
|
__exportStar(require("./datadog"), exports);
|
|
@@ -37,4 +38,4 @@ __exportStar(require("./contributions/team-claid/datadog-usage-monitoring"), exp
|
|
|
37
38
|
__exportStar(require("./contributions/team-oubout-order-book/aws-ecs-abruptly-stopped-monitor"), exports);
|
|
38
39
|
__exportStar(require("./backup"), exports);
|
|
39
40
|
exports.backup = require("./backup");
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw2Q0FBMkI7QUFFM0IsNkNBQTJDO0FBRTNDLHFEQUFtQztBQUNuQyxzREFBb0M7QUFDcEMsb0RBQWtDO0FBRWxDLGdFQUE4QztBQUM5Qyx1Q0FBcUM7QUFFckMseUVBQXVEO0FBQ3ZELDhFQUE0RDtBQUM1RCwrREFBNkM7QUFFN0MsMENBQXdCO0FBQ3hCLG1DQUFpQztBQUVqQyw0Q0FB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NvbnRyaWJ1dGlvbnMvY29wLWZyb250ZW5kL2Nsb3VkZnJvbnQnO1xuXG5leHBvcnQgKiBmcm9tICcuL2NvbnRyaWJ1dGlvbnMvdGVhbS10cmFuc3BvcnQtdHdvL2RhdGFkb2cnO1xuZXhwb3J0ICogZnJvbSAnLi9jb250cmlidXRpb25zL3RlYW0tdHJhbnNwb3J0LXR3by9waXBlbGluZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vY29udHJpYnV0aW9ucy90ZWFtLWNsYWlkL2F3cy1iYWNrdXAtbW9uaXRvcmluZyc7XG5leHBvcnQgKiBmcm9tICcuL2NvbnRyaWJ1dGlvbnMvdGVhbS1jbGFpZC9kYXRhZG9nLXVzYWdlLW1vbml0b3JpbmcnO1xuXG5leHBvcnQgKiBmcm9tICcuL2NvbnRyaWJ1dGlvbnMvdGVhbS1vdWJvdXQtb3JkZXItYm9vay9hd3MtZWNzLWFicnVwdGx5LXN0b3BwZWQtbW9uaXRvcic7XG5cbmV4cG9ydCAqIGZyb20gJy4vYmFja3VwJztcbmV4cG9ydCAqIGFzIGJhY2t1cCBmcm9tICcuL2JhY2t1cCc7XG4iXX0=
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IConstruct } from 'constructs';
|
|
2
|
+
/**
|
|
3
|
+
* The allowed values for pipeline type
|
|
4
|
+
*/
|
|
5
|
+
export declare enum RioPipelineType {
|
|
6
|
+
BRANCH = "branch",
|
|
7
|
+
VULNERABILITY = "vulnerability",
|
|
8
|
+
DEPLOY = "deploy"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Helper function to tag the pipeline with correct pipeline type.
|
|
12
|
+
* These tags are eventually used in datadog pipeline metrics to filter specific pipeline types
|
|
13
|
+
* Eg - you can decide to not monitor branch pipelines
|
|
14
|
+
*/
|
|
15
|
+
export declare class ClassifyPipelineType {
|
|
16
|
+
static apply(target: IConstruct, pipelineType: RioPipelineType): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ClassifyPipelineType = exports.RioPipelineType = void 0;
|
|
5
|
+
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
6
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
7
|
+
/**
|
|
8
|
+
* The allowed values for pipeline type
|
|
9
|
+
*/
|
|
10
|
+
var RioPipelineType;
|
|
11
|
+
(function (RioPipelineType) {
|
|
12
|
+
RioPipelineType["BRANCH"] = "branch";
|
|
13
|
+
RioPipelineType["VULNERABILITY"] = "vulnerability";
|
|
14
|
+
RioPipelineType["DEPLOY"] = "deploy";
|
|
15
|
+
})(RioPipelineType || (exports.RioPipelineType = RioPipelineType = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Helper function to tag the pipeline with correct pipeline type.
|
|
18
|
+
* These tags are eventually used in datadog pipeline metrics to filter specific pipeline types
|
|
19
|
+
* Eg - you can decide to not monitor branch pipelines
|
|
20
|
+
*/
|
|
21
|
+
class ClassifyPipelineType {
|
|
22
|
+
static apply(target, pipelineType) {
|
|
23
|
+
aws_cdk_lib_1.Tags.of(target).add('pipeline_type', pipelineType);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.ClassifyPipelineType = ClassifyPipelineType;
|
|
27
|
+
_a = JSII_RTTI_SYMBOL_1;
|
|
28
|
+
ClassifyPipelineType[_a] = { fqn: "@rio-cloud/cdk-v2-constructs.ClassifyPipelineType", version: "0.0.0" };
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmlvLXBpcGVsaW5lLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGlwZWxpbmUvcmlvLXBpcGVsaW5lLXR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6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