From 27fe204f7addb8cb1bd6e977b0f717c04b09364a Mon Sep 17 00:00:00 2001 From: the3noname Date: Thu, 30 Jan 2020 03:16:02 +0100 Subject: [PATCH] feat(schema): add CloudFormation parameter type (#259) --- cloudformation/template.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cloudformation/template.go b/cloudformation/template.go index 9e476d621c..a99dac9708 100644 --- a/cloudformation/template.go +++ b/cloudformation/template.go @@ -23,6 +23,20 @@ type Template struct { Outputs map[string]interface{} `json:"Outputs,omitempty"` } +type Parameter struct { + Type string `json:"Type"` + Description string `json:"Description,omitempty"` + Default string `json:"Default,omitempty"` + AllowedPattern string `json:"AllowedPattern,omitempty"` + AllowedValues []string `json:"AllowedValues,omitempty"` + ConstraintDescription string `json:"ConstraintDescription,omitempty"` + MaxLength int `json:"MaxLength,omitempty"` + MinLength int `json:"MinLength,omitempty"` + MaxValue float64 `json:"MaxValue,omitempty"` + MinValue float64 `json:"MinValue,omitempty"` + NoEcho bool `json:"NoEcho,omitempty"` +} + type Resource interface { AWSCloudFormationType() string }