@ttoss/cloudformation 0.5.1 → 0.5.3

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 CHANGED
@@ -1,22 +1,22 @@
1
- interface Parameter {
1
+ type Parameter = {
2
2
  AllowedValues?: string[];
3
3
  Default?: string | number;
4
4
  Description?: string;
5
5
  Type: string;
6
6
  NoEcho?: boolean;
7
- }
7
+ };
8
8
  type Parameters = {
9
9
  [key: string]: Parameter;
10
10
  };
11
- interface Resource {
11
+ type Resource = {
12
12
  Type: string;
13
13
  DeletionPolicy?: 'Delete' | 'Retain';
14
14
  Description?: string;
15
15
  DependsOn?: string[] | string;
16
16
  Condition?: string;
17
17
  Properties: any;
18
- }
19
- interface IAMRoleResource extends Resource {
18
+ };
19
+ type IAMRoleResource = Resource & {
20
20
  Type: 'AWS::IAM::Role';
21
21
  Properties: {
22
22
  AssumeRolePolicyDocument: {
@@ -45,7 +45,7 @@ interface IAMRoleResource extends Resource {
45
45
  };
46
46
  }[];
47
47
  };
48
- }
48
+ };
49
49
  type Resources = {
50
50
  [key: string]: IAMRoleResource | Resource;
51
51
  };
@@ -61,6 +61,7 @@ type Outputs = {
61
61
  };
62
62
  type CloudFormationTemplate = {
63
63
  AWSTemplateFormatVersion: '2010-09-09';
64
+ Metadata?: any;
64
65
  Description?: string;
65
66
  Transform?: 'AWS::Serverless-2016-10-31';
66
67
  Mappings?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/cloudformation",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
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.1",
27
- "@ttoss/test-utils": "^1.20.3",
26
+ "@ttoss/config": "^1.28.2",
27
+ "@ttoss/test-utils": "^1.20.4",
28
28
  "@types/jest": "^29.4.0",
29
- "jest": "^29.4.2"
29
+ "jest": "^29.4.3"
30
30
  },
31
31
  "keywords": [],
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "d4df96176c1d3fce4ebf7842de5847a618a33d9e"
35
+ "gitHead": "8ba4361ab9cf6c0ab275ee771a371d4c2ba8cebe"
36
36
  }
@@ -1,23 +1,23 @@
1
- export interface Parameter {
1
+ export type Parameter = {
2
2
  AllowedValues?: string[];
3
3
  Default?: string | number;
4
4
  Description?: string;
5
5
  Type: string;
6
6
  NoEcho?: boolean;
7
- }
7
+ };
8
8
 
9
9
  export type Parameters = { [key: string]: Parameter };
10
10
 
11
- export interface Resource {
11
+ export type Resource = {
12
12
  Type: string;
13
13
  DeletionPolicy?: 'Delete' | 'Retain';
14
14
  Description?: string;
15
15
  DependsOn?: string[] | string;
16
16
  Condition?: string;
17
17
  Properties: any;
18
- }
18
+ };
19
19
 
20
- export interface IAMRoleResource extends Resource {
20
+ export type IAMRoleResource = Resource & {
21
21
  Type: 'AWS::IAM::Role';
22
22
  Properties: {
23
23
  AssumeRolePolicyDocument: {
@@ -46,7 +46,7 @@ export interface IAMRoleResource extends Resource {
46
46
  };
47
47
  }[];
48
48
  };
49
- }
49
+ };
50
50
 
51
51
  export type Resources = { [key: string]: IAMRoleResource | Resource };
52
52
 
@@ -62,6 +62,7 @@ export type Outputs = { [key: string]: Output };
62
62
 
63
63
  export type CloudFormationTemplate = {
64
64
  AWSTemplateFormatVersion: '2010-09-09';
65
+ Metadata?: any;
65
66
  Description?: string;
66
67
  Transform?: 'AWS::Serverless-2016-10-31';
67
68
  Mappings?: any;