Comparing version 0.0.1 to 0.0.2
@@ -7,5 +7,6 @@ import { AWSTemplateFormatVersion } from "../types/AWSTemplateFormatVersion"; | ||
addResource: (name: string, resource: Record<string, any>) => void; | ||
addParameter: (name: string, resource: Record<string, any>) => void; | ||
addParameter: (name: string, parameter: Record<string, any>) => void; | ||
addOutput: (name: string, output: Record<string, any>) => void; | ||
build: () => CloudFormationBase; | ||
} | ||
export { Builder }; |
@@ -9,3 +9,4 @@ "use strict"; | ||
Parameters: {}, | ||
Resources: {} | ||
Resources: {}, | ||
Outputs: {} | ||
}; | ||
@@ -18,5 +19,8 @@ this.setTemplateFormatVersion = function (version) { | ||
}; | ||
this.addParameter = function (name, resource) { | ||
_this._cloudformation.Resources[name] = resource; | ||
this.addParameter = function (name, parameter) { | ||
_this._cloudformation.Resources[name] = parameter; | ||
}; | ||
this.addOutput = function (name, output) { | ||
_this._cloudformation.Outputs[name] = output; | ||
}; | ||
this.build = function () { return _this._cloudformation; }; | ||
@@ -23,0 +27,0 @@ } |
@@ -6,3 +6,4 @@ import { AWSTemplateFormatVersion } from "./AWSTemplateFormatVersion"; | ||
Resources?: Record<string, any>; | ||
Outputs?: Record<string, any>; | ||
}; | ||
export { CloudFormationBase }; |
@@ -7,3 +7,4 @@ import { AWSTemplateFormatVersion } from "../types/AWSTemplateFormatVersion"; | ||
Parameters: {}, | ||
Resources: {} | ||
Resources: {}, | ||
Outputs: {} | ||
} as CloudFormationBase; | ||
@@ -19,6 +20,10 @@ | ||
addParameter = (name: string, resource: Record<string, any>) => { | ||
this._cloudformation.Resources![name] = resource; | ||
addParameter = (name: string, parameter: Record<string, any>) => { | ||
this._cloudformation.Resources![name] = parameter; | ||
} | ||
addOutput = (name: string, output: Record<string, any>) => { | ||
this._cloudformation.Outputs![name] = output; | ||
} | ||
build = () => this._cloudformation as CloudFormationBase | ||
@@ -25,0 +30,0 @@ } |
{ | ||
"name": "cf-kit", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "cf-kit is a utility helper to build dynamic AWS cloudformation typescript templates", | ||
@@ -5,0 +5,0 @@ "author": "Victória Rose", |
@@ -6,5 +6,6 @@ import { AWSTemplateFormatVersion } from "./AWSTemplateFormatVersion" | ||
Parameters?: Record<string, any>, | ||
Resources?: Record<string, any> | ||
Resources?: Record<string, any>, | ||
Outputs?: Record<string, any> | ||
} | ||
export { CloudFormationBase } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5929
121