@cloud-copilot/iam-data 0.0.202408253 → 0.1.202408281

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
@@ -43,3 +43,8 @@ for(const serviceKey of allServiceKeys()) {
43
43
  * `allConditionKeys(serviceKey: string)` - Returns an array of all condition keys for a given service key.
44
44
  * `getConditionKeyDetails(serviceKey: string, conditionKey: string)` - Returns an object with the condition key details such as `description`, `conditionValueTypes`, and `conditionOperators`.
45
45
  * `conditionKeyExists(serviceKey: string, conditionKey: string)` - Returns true if the condition key exists.
46
+
47
+ ### Version Info
48
+ The version is numper is formatted as `major.minor.updatedAt`. The updatedAt is the date the data was last updated in the format `YYYYMMDDX` where `X` is a counter to enable deploying more than once per day if necessary. For example version `0.1.202408291` has data updated on August 29th, 2024.
49
+
50
+ The version can be accessed using the `getVersion()` method.
@@ -64,7 +64,20 @@
64
64
  "name": "namespace",
65
65
  "required": true,
66
66
  "conditionKeys": [],
67
- "dependentActions": []
67
+ "dependentActions": [
68
+ "kms:CreateGrant",
69
+ "kms:Decrypt",
70
+ "kms:DescribeKey",
71
+ "kms:GenerateDataKey",
72
+ "kms:RetireGrant",
73
+ "secretsmanager:CreateSecret",
74
+ "secretsmanager:DeleteSecret",
75
+ "secretsmanager:DescribeSecret",
76
+ "secretsmanager:GetRandomPassword",
77
+ "secretsmanager:RotateSecret",
78
+ "secretsmanager:TagResource",
79
+ "secretsmanager:UpdateSecret"
80
+ ]
68
81
  }
69
82
  ],
70
83
  "conditionKeys": [
@@ -190,7 +203,12 @@
190
203
  }
191
204
  ],
192
205
  "conditionKeys": [],
193
- "dependentActions": []
206
+ "dependentActions": [
207
+ "kms:DescribeKey",
208
+ "kms:RetireGrant",
209
+ "secretsmanager:DeleteSecret",
210
+ "secretsmanager:DescribeSecret"
211
+ ]
194
212
  },
195
213
  "DeleteResourcePolicy": {
196
214
  "name": "DeleteResourcePolicy",
@@ -567,7 +585,20 @@
567
585
  }
568
586
  ],
569
587
  "conditionKeys": [],
570
- "dependentActions": []
588
+ "dependentActions": [
589
+ "kms:CreateGrant",
590
+ "kms:Decrypt",
591
+ "kms:DescribeKey",
592
+ "kms:GenerateDataKey",
593
+ "kms:RetireGrant",
594
+ "secretsmanager:CreateSecret",
595
+ "secretsmanager:DeleteSecret",
596
+ "secretsmanager:DescribeSecret",
597
+ "secretsmanager:GetRandomPassword",
598
+ "secretsmanager:RotateSecret",
599
+ "secretsmanager:TagResource",
600
+ "secretsmanager:UpdateSecret"
601
+ ]
571
602
  },
572
603
  "RestoreTableFromRecoveryPoint": {
573
604
  "name": "RestoreTableFromRecoveryPoint",
@@ -728,7 +759,20 @@
728
759
  }
729
760
  ],
730
761
  "conditionKeys": [],
731
- "dependentActions": []
762
+ "dependentActions": [
763
+ "kms:CreateGrant",
764
+ "kms:Decrypt",
765
+ "kms:DescribeKey",
766
+ "kms:GenerateDataKey",
767
+ "kms:RetireGrant",
768
+ "secretsmanager:CreateSecret",
769
+ "secretsmanager:DeleteSecret",
770
+ "secretsmanager:DescribeSecret",
771
+ "secretsmanager:GetRandomPassword",
772
+ "secretsmanager:RotateSecret",
773
+ "secretsmanager:TagResource",
774
+ "secretsmanager:UpdateSecret"
775
+ ]
732
776
  },
733
777
  "UpdateScheduledAction": {
734
778
  "name": "UpdateScheduledAction",
@@ -193,7 +193,20 @@
193
193
  "name": "cluster",
194
194
  "required": true,
195
195
  "conditionKeys": [],
196
- "dependentActions": []
196
+ "dependentActions": [
197
+ "kms:CreateGrant",
198
+ "kms:Decrypt",
199
+ "kms:DescribeKey",
200
+ "kms:GenerateDataKey",
201
+ "kms:RetireGrant",
202
+ "secretsmanager:CreateSecret",
203
+ "secretsmanager:DeleteSecret",
204
+ "secretsmanager:DescribeSecret",
205
+ "secretsmanager:GetRandomPassword",
206
+ "secretsmanager:RotateSecret",
207
+ "secretsmanager:TagResource",
208
+ "secretsmanager:UpdateSecret"
209
+ ]
197
210
  }
198
211
  ],
199
212
  "conditionKeys": [
@@ -1696,7 +1709,19 @@
1696
1709
  ],
1697
1710
  "conditionKeys": [],
1698
1711
  "dependentActions": [
1699
- "acm:DescribeCertificate"
1712
+ "acm:DescribeCertificate",
1713
+ "kms:CreateGrant",
1714
+ "kms:Decrypt",
1715
+ "kms:DescribeKey",
1716
+ "kms:GenerateDataKey",
1717
+ "kms:RetireGrant",
1718
+ "secretsmanager:CreateSecret",
1719
+ "secretsmanager:DeleteSecret",
1720
+ "secretsmanager:DescribeSecret",
1721
+ "secretsmanager:GetRandomPassword",
1722
+ "secretsmanager:RotateSecret",
1723
+ "secretsmanager:TagResource",
1724
+ "secretsmanager:UpdateSecret"
1700
1725
  ]
1701
1726
  },
1702
1727
  "ModifyClusterDbRevision": {
@@ -2047,7 +2072,20 @@
2047
2072
  "name": "cluster",
2048
2073
  "required": true,
2049
2074
  "conditionKeys": [],
2050
- "dependentActions": []
2075
+ "dependentActions": [
2076
+ "kms:CreateGrant",
2077
+ "kms:Decrypt",
2078
+ "kms:DescribeKey",
2079
+ "kms:GenerateDataKey",
2080
+ "kms:RetireGrant",
2081
+ "secretsmanager:CreateSecret",
2082
+ "secretsmanager:DeleteSecret",
2083
+ "secretsmanager:DescribeSecret",
2084
+ "secretsmanager:GetRandomPassword",
2085
+ "secretsmanager:RotateSecret",
2086
+ "secretsmanager:TagResource",
2087
+ "secretsmanager:UpdateSecret"
2088
+ ]
2051
2089
  },
2052
2090
  {
2053
2091
  "name": "snapshot",
@@ -8,7 +8,12 @@
8
8
  "aws:TagKeys",
9
9
  "aws:RequestTag/${TagKey}"
10
10
  ],
11
- "dependentActions": []
11
+ "dependentActions": [
12
+ "appstream:DescribeStacks",
13
+ "workspaces-web:GetPortal",
14
+ "workspaces-web:GetUserSettings",
15
+ "workspaces:DescribeWorkspaceDirectories"
16
+ ]
12
17
  },
13
18
  "DeleteDevice": {
14
19
  "name": "DeleteDevice",
@@ -22,7 +27,9 @@
22
27
  "dependentActions": []
23
28
  }
24
29
  ],
25
- "conditionKeys": [],
30
+ "conditionKeys": [
31
+ "aws:ResourceTag/${TagKey}"
32
+ ],
26
33
  "dependentActions": []
27
34
  },
28
35
  "DeleteEnvironment": {
@@ -37,7 +44,9 @@
37
44
  "dependentActions": []
38
45
  }
39
46
  ],
40
- "conditionKeys": [],
47
+ "conditionKeys": [
48
+ "aws:ResourceTag/${TagKey}"
49
+ ],
41
50
  "dependentActions": []
42
51
  },
43
52
  "DeregisterDevice": {
@@ -52,7 +61,9 @@
52
61
  "dependentActions": []
53
62
  }
54
63
  ],
55
- "conditionKeys": [],
64
+ "conditionKeys": [
65
+ "aws:ResourceTag/${TagKey}"
66
+ ],
56
67
  "dependentActions": []
57
68
  },
58
69
  "GetDevice": {
@@ -67,7 +78,9 @@
67
78
  "dependentActions": []
68
79
  }
69
80
  ],
70
- "conditionKeys": [],
81
+ "conditionKeys": [
82
+ "aws:ResourceTag/${TagKey}"
83
+ ],
71
84
  "dependentActions": []
72
85
  },
73
86
  "GetEnvironment": {
@@ -82,7 +95,9 @@
82
95
  "dependentActions": []
83
96
  }
84
97
  ],
85
- "conditionKeys": [],
98
+ "conditionKeys": [
99
+ "aws:ResourceTag/${TagKey}"
100
+ ],
86
101
  "dependentActions": []
87
102
  },
88
103
  "GetSoftwareSet": {
@@ -97,7 +112,9 @@
97
112
  "dependentActions": []
98
113
  }
99
114
  ],
100
- "conditionKeys": [],
115
+ "conditionKeys": [
116
+ "aws:ResourceTag/${TagKey}"
117
+ ],
101
118
  "dependentActions": []
102
119
  },
103
120
  "ListDeviceSessions": {
@@ -113,7 +130,9 @@
113
130
  "dependentActions": []
114
131
  }
115
132
  ],
116
- "conditionKeys": [],
133
+ "conditionKeys": [
134
+ "aws:ResourceTag/${TagKey}"
135
+ ],
117
136
  "dependentActions": []
118
137
  },
119
138
  "ListDevices": {
@@ -174,7 +193,8 @@
174
193
  ],
175
194
  "conditionKeys": [
176
195
  "aws:TagKeys",
177
- "aws:RequestTag/${TagKey}"
196
+ "aws:RequestTag/${TagKey}",
197
+ "aws:ResourceTag/${TagKey}"
178
198
  ],
179
199
  "dependentActions": []
180
200
  },
@@ -203,7 +223,8 @@
203
223
  }
204
224
  ],
205
225
  "conditionKeys": [
206
- "aws:TagKeys"
226
+ "aws:TagKeys",
227
+ "aws:ResourceTag/${TagKey}"
207
228
  ],
208
229
  "dependentActions": []
209
230
  },
@@ -219,7 +240,9 @@
219
240
  "dependentActions": []
220
241
  }
221
242
  ],
222
- "conditionKeys": [],
243
+ "conditionKeys": [
244
+ "aws:ResourceTag/${TagKey}"
245
+ ],
223
246
  "dependentActions": []
224
247
  },
225
248
  "UpdateEnvironment": {
@@ -231,10 +254,17 @@
231
254
  "name": "environment",
232
255
  "required": true,
233
256
  "conditionKeys": [],
234
- "dependentActions": []
257
+ "dependentActions": [
258
+ "appstream:DescribeStacks",
259
+ "workspaces-web:GetPortal",
260
+ "workspaces-web:GetUserSettings",
261
+ "workspaces:DescribeWorkspaceDirectories"
262
+ ]
235
263
  }
236
264
  ],
237
- "conditionKeys": [],
265
+ "conditionKeys": [
266
+ "aws:ResourceTag/${TagKey}"
267
+ ],
238
268
  "dependentActions": []
239
269
  },
240
270
  "UpdateSoftwareSet": {
@@ -249,7 +279,9 @@
249
279
  "dependentActions": []
250
280
  }
251
281
  ],
252
- "conditionKeys": [],
282
+ "conditionKeys": [
283
+ "aws:ResourceTag/${TagKey}"
284
+ ],
253
285
  "dependentActions": []
254
286
  }
255
287
  }
@@ -22,6 +22,14 @@
22
22
  "conditionKeys": [],
23
23
  "dependentActions": []
24
24
  },
25
+ "DeleteNetwork": {
26
+ "name": "DeleteNetwork",
27
+ "description": "Grants permission to create a delete Wickr networks",
28
+ "accessLevel": "Write",
29
+ "resourceTypes": [],
30
+ "conditionKeys": [],
31
+ "dependentActions": []
32
+ },
25
33
  "ListNetworks": {
26
34
  "name": "ListNetworks",
27
35
  "description": "Grants permission to view Wickr networks",
@@ -2,4 +2,5 @@ export * from './actions';
2
2
  export * from './conditionKeys';
3
3
  export * from './resourceTypes';
4
4
  export * from './services';
5
+ export * from './version';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -18,4 +18,5 @@ __exportStar(require("./actions"), exports);
18
18
  __exportStar(require("./conditionKeys"), exports);
19
19
  __exportStar(require("./resourceTypes"), exports);
20
20
  __exportStar(require("./services"), exports);
21
+ __exportStar(require("./version"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,6CAA2B;AAC3B,4CAA0B"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Get the version of the package
3
+ */
4
+ export declare function getVersion(): string;
5
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAanC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getVersion = getVersion;
4
+ const fs_1 = require("fs");
5
+ const path_1 = require("path");
6
+ let versionCache = undefined;
7
+ /**
8
+ * Get the version of the package
9
+ */
10
+ function getVersion() {
11
+ if (!versionCache) {
12
+ let fileRoot = (0, path_1.join)(__dirname, '..', '..');
13
+ if (__dirname.endsWith('src')) {
14
+ fileRoot = (0, path_1.join)(__dirname, '..');
15
+ }
16
+ const data = (0, fs_1.readFileSync)((0, path_1.join)(fileRoot, 'package.json'), 'utf8');
17
+ const packageInfo = JSON.parse(data);
18
+ versionCache = packageInfo.version;
19
+ }
20
+ return versionCache;
21
+ }
22
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;AASA,gCAaC;AAtBD,2BAAkC;AAClC,+BAA4B;AAG5B,IAAI,YAAY,GAAuB,SAAS,CAAC;AAEjD;;GAEG;AACH,SAAgB,UAAU;IACxB,IAAG,CAAC,YAAY,EAAE,CAAC;QACjB,IAAI,QAAQ,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC3C,IAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,QAAQ,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACnC,CAAC;QAED,MAAM,IAAI,GAAG,IAAA,iBAAY,EAAC,IAAA,WAAI,EAAC,QAAQ,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAAC;QAClE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACrC,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,OAAO,YAAa,CAAA;AACtB,CAAC"}
@@ -2,4 +2,5 @@ export * from './actions';
2
2
  export * from './conditionKeys';
3
3
  export * from './resourceTypes';
4
4
  export * from './services';
5
+ export * from './version';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
package/dist/esm/index.js CHANGED
@@ -2,4 +2,5 @@ export * from './actions';
2
2
  export * from './conditionKeys';
3
3
  export * from './resourceTypes';
4
4
  export * from './services';
5
+ export * from './version';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Get the version of the package
3
+ */
4
+ export declare function getVersion(): string;
5
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAanC"}
@@ -0,0 +1,19 @@
1
+ import { readFileSync } from "fs";
2
+ import { join } from "path";
3
+ let versionCache = undefined;
4
+ /**
5
+ * Get the version of the package
6
+ */
7
+ export function getVersion() {
8
+ if (!versionCache) {
9
+ let fileRoot = join(__dirname, '..', '..');
10
+ if (__dirname.endsWith('src')) {
11
+ fileRoot = join(__dirname, '..');
12
+ }
13
+ const data = readFileSync(join(fileRoot, 'package.json'), 'utf8');
14
+ const packageInfo = JSON.parse(data);
15
+ versionCache = packageInfo.version;
16
+ }
17
+ return versionCache;
18
+ }
19
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,IAAI,YAAY,GAAuB,SAAS,CAAC;AAEjD;;GAEG;AACH,MAAM,UAAU,UAAU;IACxB,IAAG,CAAC,YAAY,EAAE,CAAC;QACjB,IAAI,QAAQ,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC3C,IAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,QAAQ,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACnC,CAAC;QAED,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAAC;QAClE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACrC,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,OAAO,YAAa,CAAA;AACtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-copilot/iam-data",
3
- "version": "0.0.202408253",
3
+ "version": "0.1.202408281",
4
4
  "description": "AWS IAM Data",
5
5
  "repository": "github:cloud-copilot/iam-data",
6
6
  "exports": {