@cloud-copilot/iam-data 0.3.202409011 → 0.3.202409051

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
@@ -5,6 +5,9 @@ Contains IAM data for AWS actions, resources, and conditions based on IAM policy
5
5
 
6
6
  Published in ESM and CommonJS.
7
7
 
8
+ ## Data Updates
9
+ Data is scanned daily and a new version is published if there are changes. The version number is updated to reflect the date of the last update and the function `iamDataUpdatedAt()` returns the date of the last data update. This process is managed outside this repo.
10
+
8
11
  ## Usage
9
12
 
10
13
  ```bash
@@ -52,3 +55,5 @@ for(const serviceKey of serviceKeys) {
52
55
  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.
53
56
 
54
57
  The version can be accessed using the `iamDataVersion()` method.
58
+
59
+ There is also `iamDataUpdatedAt()` which returns the date the data was last updated.
@@ -25,7 +25,6 @@
25
25
  },
26
26
  "addpolicygrant": {
27
27
  "name": "AddPolicyGrant",
28
- "isPermissionOnly": true,
29
28
  "description": "Grants permission to add a policy grant",
30
29
  "accessLevel": "Write",
31
30
  "resourceTypes": [],
@@ -909,7 +908,6 @@
909
908
  },
910
909
  "listpolicygrants": {
911
910
  "name": "ListPolicyGrants",
912
- "isPermissionOnly": true,
913
911
  "description": "Grants permission to list policy grants",
914
912
  "accessLevel": "List",
915
913
  "resourceTypes": [],
@@ -1082,7 +1080,6 @@
1082
1080
  },
1083
1081
  "removepolicygrant": {
1084
1082
  "name": "RemovePolicyGrant",
1085
- "isPermissionOnly": true,
1086
1083
  "description": "Grants permission to remove a policy grant",
1087
1084
  "accessLevel": "Write",
1088
1085
  "resourceTypes": [],
@@ -134,6 +134,21 @@
134
134
  ],
135
135
  "dependentActions": []
136
136
  },
137
+ "getsafetylever": {
138
+ "name": "GetSafetyLever",
139
+ "description": "Grants permission to get information about the safety lever",
140
+ "accessLevel": "Read",
141
+ "resourceTypes": [
142
+ {
143
+ "name": "safety-lever",
144
+ "required": true,
145
+ "conditionKeys": [],
146
+ "dependentActions": []
147
+ }
148
+ ],
149
+ "conditionKeys": [],
150
+ "dependentActions": []
151
+ },
137
152
  "gettargetaccountconfiguration": {
138
153
  "name": "GetTargetAccountConfiguration",
139
154
  "description": "Grants permission to retrieve an AWS FIS target account configuration for an AWS FIS experiment template",
@@ -448,6 +463,21 @@
448
463
  ],
449
464
  "dependentActions": []
450
465
  },
466
+ "updatesafetyleverstate": {
467
+ "name": "UpdateSafetyLeverState",
468
+ "description": "Grants permission to update the state of the safety lever",
469
+ "accessLevel": "Write",
470
+ "resourceTypes": [
471
+ {
472
+ "name": "safety-lever",
473
+ "required": true,
474
+ "conditionKeys": [],
475
+ "dependentActions": []
476
+ }
477
+ ],
478
+ "conditionKeys": [],
479
+ "dependentActions": []
480
+ },
451
481
  "updatetargetaccountconfiguration": {
452
482
  "name": "UpdateTargetAccountConfiguration",
453
483
  "description": "Grants permission to update an AWS FIS target account configuration",
@@ -6,18 +6,20 @@
6
6
  "resourceTypes": [
7
7
  {
8
8
  "name": "cluster",
9
- "required": true,
9
+ "required": false,
10
10
  "conditionKeys": [],
11
11
  "dependentActions": []
12
12
  },
13
13
  {
14
14
  "name": "workgroup",
15
- "required": true,
15
+ "required": false,
16
16
  "conditionKeys": [],
17
17
  "dependentActions": []
18
18
  }
19
19
  ],
20
- "conditionKeys": [],
20
+ "conditionKeys": [
21
+ "redshift-data:session-owner-iam-userid"
22
+ ],
21
23
  "dependentActions": []
22
24
  },
23
25
  "cancelstatement": {
@@ -68,18 +70,20 @@
68
70
  "resourceTypes": [
69
71
  {
70
72
  "name": "cluster",
71
- "required": true,
73
+ "required": false,
72
74
  "conditionKeys": [],
73
75
  "dependentActions": []
74
76
  },
75
77
  {
76
78
  "name": "workgroup",
77
- "required": true,
79
+ "required": false,
78
80
  "conditionKeys": [],
79
81
  "dependentActions": []
80
82
  }
81
83
  ],
82
- "conditionKeys": [],
84
+ "conditionKeys": [
85
+ "redshift-data:session-owner-iam-userid"
86
+ ],
83
87
  "dependentActions": []
84
88
  },
85
89
  "getstatementresult": {
@@ -4,6 +4,11 @@
4
4
  "description": "Filters access by tag-value associated with the resource",
5
5
  "type": "String"
6
6
  },
7
+ "redshift-data:session-owner-iam-userid": {
8
+ "key": "redshift-data:session-owner-iam-userid",
9
+ "description": "Filters access by session owner iam userid",
10
+ "type": "String"
11
+ },
7
12
  "redshift-data:statement-owner-iam-userid": {
8
13
  "key": "redshift-data:statement-owner-iam-userid",
9
14
  "description": "Filters access by statement owner iam userid",
@@ -19,5 +19,9 @@
19
19
  "conditionKeys": [
20
20
  "aws:ResourceTag/${TagKey}"
21
21
  ]
22
+ },
23
+ "safety-lever": {
24
+ "key": "safety-lever",
25
+ "arn": "arn:${Partition}:fis:${Region}:${Account}:safety-lever/${Id}"
22
26
  }
23
27
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@cloud-copilot/iam-data",
3
- "version": "0.3.202409011",
3
+ "version": "0.3.202409051",
4
4
  "description": "AWS IAM Data",
5
5
  "repository": "github:cloud-copilot/iam-data",
6
- "updatedAt": "2024-09-01T05:38:06.234Z",
6
+ "updatedAt": "2024-09-05T04:46:39.208Z",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/esm/index.js",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "types": "dist/cjs/index.d.ts",
19
19
  "scripts": {
20
- "test": "npx vitest --run",
20
+ "test": "npx vitest --run --coverage",
21
21
  "build": "npx tsc -p tsconfig.cjs.json && npx tsc -p tsconfig.esm.json && ./postbuild.sh",
22
22
  "prepare": "npm run build"
23
23
  },
@@ -29,6 +29,7 @@
29
29
  "license": "GPL-3.0-or-later",
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.5.0",
32
+ "@vitest/coverage-v8": "^2.0.5",
32
33
  "typescript": "^5.5.4",
33
34
  "vitest": "^2.0.5"
34
35
  }