From 8267f75713f6e4947f97005422728175c8e31f9e Mon Sep 17 00:00:00 2001 From: Jan Arens Date: Fri, 17 Jan 2020 11:13:00 +0100 Subject: [PATCH] add CloudFormation parameter type --- 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 }