@ttoss/cloudformation 0.5.4 → 0.6.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/dist/index.d.ts +18 -16
- package/package.json +5 -5
- package/src/CloudFormationTemplate.ts +18 -15
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,22 @@ type Resource = {
|
|
|
16
16
|
Condition?: string;
|
|
17
17
|
Properties: any;
|
|
18
18
|
};
|
|
19
|
+
type Policy = {
|
|
20
|
+
PolicyName: string;
|
|
21
|
+
PolicyDocument: {
|
|
22
|
+
Version: '2012-10-17';
|
|
23
|
+
Statement: {
|
|
24
|
+
Sid?: string;
|
|
25
|
+
Effect: 'Allow' | 'Deny';
|
|
26
|
+
Action: string | string[];
|
|
27
|
+
Resource: string | string[] | {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
} | {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}[];
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
19
35
|
type IAMRoleResource = Resource & {
|
|
20
36
|
Type: 'AWS::IAM::Role';
|
|
21
37
|
Properties: {
|
|
@@ -32,21 +48,7 @@ type IAMRoleResource = Resource & {
|
|
|
32
48
|
};
|
|
33
49
|
ManagedPolicyArns?: string[];
|
|
34
50
|
Path?: string;
|
|
35
|
-
Policies?:
|
|
36
|
-
PolicyName: string;
|
|
37
|
-
PolicyDocument: {
|
|
38
|
-
Version: '2012-10-17';
|
|
39
|
-
Statement: {
|
|
40
|
-
Effect: 'Allow' | 'Deny';
|
|
41
|
-
Action: string | string[];
|
|
42
|
-
Resource: string | string[] | {
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
} | {
|
|
45
|
-
[key: string]: any;
|
|
46
|
-
}[];
|
|
47
|
-
}[];
|
|
48
|
-
};
|
|
49
|
-
}[];
|
|
51
|
+
Policies?: Policy[];
|
|
50
52
|
};
|
|
51
53
|
};
|
|
52
54
|
type Resources = {
|
|
@@ -82,4 +84,4 @@ declare const readObjectFile: ({ path }: {
|
|
|
82
84
|
path: string;
|
|
83
85
|
}) => any;
|
|
84
86
|
|
|
85
|
-
export { CloudFormationTemplate, IAMRoleResource, Output, Outputs, Parameter, Parameters, Resource, Resources, findAndReadCloudFormationTemplate, readObjectFile as unstable_readObjectFile };
|
|
87
|
+
export { CloudFormationTemplate, IAMRoleResource, Output, Outputs, Parameter, Parameters, Policy, Resource, Resources, findAndReadCloudFormationTemplate, readObjectFile as unstable_readObjectFile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/cloudformation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "CloudFormation utils.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"ts-node": "^10.9.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@ttoss/config": "^1.28.
|
|
27
|
-
"@ttoss/test-utils": "^1.20.
|
|
26
|
+
"@ttoss/config": "^1.28.3",
|
|
27
|
+
"@ttoss/test-utils": "^1.20.5",
|
|
28
28
|
"@types/jest": "^29.4.0",
|
|
29
|
-
"jest": "^29.
|
|
29
|
+
"jest": "^29.5.0"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [],
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "56e8cfde36a962deaa5514453618280699824b4f"
|
|
36
36
|
}
|
|
@@ -17,6 +17,23 @@ export type Resource = {
|
|
|
17
17
|
Properties: any;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
+
export type Policy = {
|
|
21
|
+
PolicyName: string;
|
|
22
|
+
PolicyDocument: {
|
|
23
|
+
Version: '2012-10-17';
|
|
24
|
+
Statement: {
|
|
25
|
+
Sid?: string;
|
|
26
|
+
Effect: 'Allow' | 'Deny';
|
|
27
|
+
Action: string | string[];
|
|
28
|
+
Resource:
|
|
29
|
+
| string
|
|
30
|
+
| string[]
|
|
31
|
+
| { [key: string]: any }
|
|
32
|
+
| { [key: string]: any }[];
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
20
37
|
export type IAMRoleResource = Resource & {
|
|
21
38
|
Type: 'AWS::IAM::Role';
|
|
22
39
|
Properties: {
|
|
@@ -31,21 +48,7 @@ export type IAMRoleResource = Resource & {
|
|
|
31
48
|
};
|
|
32
49
|
ManagedPolicyArns?: string[];
|
|
33
50
|
Path?: string;
|
|
34
|
-
Policies?:
|
|
35
|
-
PolicyName: string;
|
|
36
|
-
PolicyDocument: {
|
|
37
|
-
Version: '2012-10-17';
|
|
38
|
-
Statement: {
|
|
39
|
-
Effect: 'Allow' | 'Deny';
|
|
40
|
-
Action: string | string[];
|
|
41
|
-
Resource:
|
|
42
|
-
| string
|
|
43
|
-
| string[]
|
|
44
|
-
| { [key: string]: any }
|
|
45
|
-
| { [key: string]: any }[];
|
|
46
|
-
}[];
|
|
47
|
-
};
|
|
48
|
-
}[];
|
|
51
|
+
Policies?: Policy[];
|
|
49
52
|
};
|
|
50
53
|
};
|
|
51
54
|
|