aws-iam-data 0.0.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/LICENSE +21 -0
- package/README.md +34 -0
- package/data/iam.json +304352 -0
- package/data/metadata.json +22659 -0
- package/package.json +37 -0
- package/src/awsIamData.d.ts +63 -0
- package/src/index.js +7 -0
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aws-iam-data",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Provides AWS IAM data gathered from the official AWS IAM docs as a convenient npm package that can be used in other OSS projects.",
|
|
5
|
+
"main": "./src/index.js",
|
|
6
|
+
"types": "./src/awsIamData.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"gather-data": "ts-node --transpile-only --log-error process/gatherData.ts"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/tobilg/aws-iam-data.git"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"aws",
|
|
17
|
+
"iam",
|
|
18
|
+
"data",
|
|
19
|
+
"cloud"
|
|
20
|
+
],
|
|
21
|
+
"author": "TobiLG <tobilg@gmail.com>",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/tobilg/aws-iam-data/issues"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/tobilg/aws-iam-data#readme",
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^20.1.4",
|
|
29
|
+
"ts-node": "^10.9.1",
|
|
30
|
+
"typescript": "^5.0.4"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"axios": "^1.4.0",
|
|
34
|
+
"node-html-parser": "^6.1.5",
|
|
35
|
+
"winston": "^3.8.2"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export interface AWSIamData extends Array<ServiceAuthReference>{}
|
|
2
|
+
|
|
3
|
+
export interface ServiceAuthReference {
|
|
4
|
+
name: string;
|
|
5
|
+
servicePrefix: string;
|
|
6
|
+
authReferenceUrl?: string;
|
|
7
|
+
actions: Action[];
|
|
8
|
+
resourceTypes: ResourceType[];
|
|
9
|
+
conditionKeys: ConditionKey[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface AWSIamMetadata {
|
|
13
|
+
lastUpdatedAt: string;
|
|
14
|
+
serviceCount: number;
|
|
15
|
+
services: ServiceAuthMetadata[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ServiceAuthMetadata {
|
|
19
|
+
name: string;
|
|
20
|
+
servicePrefix: string;
|
|
21
|
+
authReferenceUrl?: string;
|
|
22
|
+
actionsCount: number;
|
|
23
|
+
actions: string[];
|
|
24
|
+
resourceTypesCount: number;
|
|
25
|
+
resourceTypes: string[];
|
|
26
|
+
conditionKeysCount: number;
|
|
27
|
+
conditionKeys: string[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface Topic {
|
|
31
|
+
name: string;
|
|
32
|
+
authReferenceUrl: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface ResourceType {
|
|
36
|
+
name: string;
|
|
37
|
+
apiReferenceUrl?: string;
|
|
38
|
+
arnPattern: string;
|
|
39
|
+
conditionKeys: string[];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface ActionResourceType {
|
|
43
|
+
resourceType?: string;
|
|
44
|
+
required?: boolean;
|
|
45
|
+
conditionKeys?: string[];
|
|
46
|
+
dependentActions?: string[];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface Action {
|
|
50
|
+
name?: string;
|
|
51
|
+
permissionOnly?: boolean;
|
|
52
|
+
apiReferenceUrl?: string;
|
|
53
|
+
description?: string;
|
|
54
|
+
accessLevel?: string;
|
|
55
|
+
resourceTypes?: ActionResourceType[];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface ConditionKey {
|
|
59
|
+
name: string;
|
|
60
|
+
apiReferenceUrl?: string;
|
|
61
|
+
description: string;
|
|
62
|
+
type: string;
|
|
63
|
+
}
|