@linzjs/cdk-tags 1.7.1 → 1.7.2

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/README.md CHANGED
@@ -13,10 +13,11 @@ const bucket = new Bucket(this, 'ImageryArchive');
13
13
 
14
14
  applyTags(bucket, {
15
15
  application: 'basemaps',
16
+ environment: 'prod',
16
17
  group: 'li',
17
18
  classification: SecurityClassification.Unclassified,
18
19
  data: { isMaster: true, isPublic: true, role: 'archive' },
19
- criticality: 'low',
20
+ impact: 'moderate',
20
21
  });
21
22
  ```
22
23
 
@@ -27,10 +28,11 @@ import { applyTags, SecurityClassification, TagsBase } from '@linzjs/cdk-tags';
27
28
 
28
29
  const commonTags: TagsBase = {
29
30
  application: 'basemaps',
31
+ environment: 'prod',
30
32
  group: 'li',
31
33
  classification: SecurityClassification.Unclassified,
32
34
  data: { isMaster: true, isPublic: true, role: 'archive' },
33
- criticality: 'low',
35
+ impact: 'moderate',
34
36
  };
35
37
 
36
38
  const bucket1 = new Bucket(this, 'ImageryArchive');
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const node_test_1 = require("node:test");
4
+ const security_js_1 = require("../security.js");
5
+ const tags_js_1 = require("../tags.js");
6
+ (0, node_test_1.describe)('applyTags', () => {
7
+ // If this test breaks the README needs to be updated
8
+ (0, node_test_1.it)('should apply example from README.md', () => {
9
+ (0, tags_js_1.applyTags)({}, {
10
+ application: 'basemaps',
11
+ environment: 'prod',
12
+ group: 'li',
13
+ classification: security_js_1.SecurityClassification.Unclassified,
14
+ data: { isMaster: true, isPublic: true, role: 'archive' },
15
+ impact: 'moderate',
16
+ });
17
+ });
18
+ });
19
+ //# sourceMappingURL=tags.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags.test.js","sourceRoot":"","sources":["../../../src/__test__/tags.test.ts"],"names":[],"mappings":";;AAAA,yCAAyC;AAIzC,gDAAwD;AACxD,wCAAuC;AAEvC,IAAA,oBAAQ,EAAC,WAAW,EAAE,GAAG,EAAE;IACzB,qDAAqD;IACrD,IAAA,cAAE,EAAC,qCAAqC,EAAE,GAAG,EAAE;QAC7C,IAAA,mBAAS,EAAC,EAA2B,EAAE;YACrC,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,MAAM;YACnB,KAAK,EAAE,IAAI;YACX,cAAc,EAAE,oCAAsB,CAAC,YAAY;YACnD,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;YACzD,MAAM,EAAE,UAAU;SACnB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -10,7 +10,7 @@ export interface TagsBase {
10
10
  *
11
11
  * @see AwsEnv in @linz/accounts
12
12
  */
13
- environment: 'nonprod' | 'preprod' | 'prod';
13
+ environment: 'nonprod' | 'preprod' | 'prod' | 'postprod';
14
14
  /**
15
15
  * Application name
16
16
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linzjs/cdk-tags",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "main": "build/src/index.js",
5
5
  "types": "build/src/index.d.ts",
6
6
  "files": [
@@ -32,6 +32,6 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@linzjs/style": "^5.4.0",
35
- "@types/node": "^22.13.10"
35
+ "@types/node": "^22.15.3"
36
36
  }
37
37
  }