@ttoss/cloudformation 0.7.6 → 0.7.7
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/esm/index.js +1 -1
- package/dist/index.d.mts +87 -0
- package/package.json +6 -6
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __require = /* @__PURE__ */(x => typeof require !== "undefined" ? require :
|
|
|
3
3
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
4
|
}) : x)(function (x) {
|
|
5
5
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
-
throw
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
// src/findAndReadCloudFormationTemplate.ts
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
type Parameter = {
|
|
2
|
+
AllowedValues?: string[];
|
|
3
|
+
Default?: string | number;
|
|
4
|
+
Description?: string;
|
|
5
|
+
Type: string;
|
|
6
|
+
NoEcho?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type Parameters = {
|
|
9
|
+
[key: string]: Parameter;
|
|
10
|
+
};
|
|
11
|
+
type Resource = {
|
|
12
|
+
Type: string;
|
|
13
|
+
DeletionPolicy?: 'Delete' | 'Retain';
|
|
14
|
+
Description?: string;
|
|
15
|
+
DependsOn?: string[] | string;
|
|
16
|
+
Condition?: string;
|
|
17
|
+
Properties: any;
|
|
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
|
+
};
|
|
35
|
+
type IAMRoleResource = Resource & {
|
|
36
|
+
Type: 'AWS::IAM::Role';
|
|
37
|
+
Properties: {
|
|
38
|
+
AssumeRolePolicyDocument: {
|
|
39
|
+
Version: '2012-10-17';
|
|
40
|
+
Statement: {
|
|
41
|
+
Effect: 'Allow' | 'Deny';
|
|
42
|
+
Action: string;
|
|
43
|
+
Principal: any;
|
|
44
|
+
Condition?: {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
};
|
|
47
|
+
}[];
|
|
48
|
+
};
|
|
49
|
+
ManagedPolicyArns?: string[];
|
|
50
|
+
Path?: string;
|
|
51
|
+
Policies?: Policy[];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
type Resources = {
|
|
55
|
+
[key: string]: IAMRoleResource | Resource;
|
|
56
|
+
};
|
|
57
|
+
type Output = {
|
|
58
|
+
Description?: string;
|
|
59
|
+
Value: string | any;
|
|
60
|
+
Export?: {
|
|
61
|
+
Name: string | any;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
type Outputs = {
|
|
65
|
+
[key: string]: Output;
|
|
66
|
+
};
|
|
67
|
+
type CloudFormationTemplate = {
|
|
68
|
+
AWSTemplateFormatVersion: '2010-09-09';
|
|
69
|
+
Metadata?: any;
|
|
70
|
+
Description?: string;
|
|
71
|
+
Transform?: 'AWS::Serverless-2016-10-31';
|
|
72
|
+
Mappings?: any;
|
|
73
|
+
Conditions?: any;
|
|
74
|
+
Parameters?: Parameters;
|
|
75
|
+
Resources: Resources;
|
|
76
|
+
Outputs?: Outputs;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
declare const findAndReadCloudFormationTemplate: ({ templatePath: defaultTemplatePath, }: {
|
|
80
|
+
templatePath?: string;
|
|
81
|
+
}) => CloudFormationTemplate;
|
|
82
|
+
|
|
83
|
+
declare const readObjectFile: ({ path }: {
|
|
84
|
+
path: string;
|
|
85
|
+
}) => any;
|
|
86
|
+
|
|
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.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "CloudFormation utils.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"ts-node": "^10.9.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/jest": "^29.5.
|
|
27
|
+
"@types/jest": "^29.5.3",
|
|
28
28
|
"@types/js-yaml": "^4.0.5",
|
|
29
29
|
"@types/node": "^18.16.2",
|
|
30
|
-
"jest": "^29.
|
|
31
|
-
"tsup": "^7.
|
|
32
|
-
"@ttoss/config": "^1.30.
|
|
33
|
-
"@ttoss/test-utils": "^1.23.
|
|
30
|
+
"jest": "^29.6.1",
|
|
31
|
+
"tsup": "^7.1.0",
|
|
32
|
+
"@ttoss/config": "^1.30.5",
|
|
33
|
+
"@ttoss/test-utils": "^1.23.6"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [],
|
|
36
36
|
"publishConfig": {
|