From 3344301f7140503c719a301de36c02c1ec823e85 Mon Sep 17 00:00:00 2001 From: Ruben Fonseca Date: Thu, 30 Mar 2023 15:20:03 +0200 Subject: [PATCH] feat(template): support optional parameters (#548) --- cloudformation/template.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cloudformation/template.go b/cloudformation/template.go index 08e2088578..f2bccc0817 100644 --- a/cloudformation/template.go +++ b/cloudformation/template.go @@ -26,23 +26,23 @@ type Template struct { type Parameter struct { Type string `json:"Type"` - Description string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty"` Default interface{} `json:"Default,omitempty"` - AllowedPattern string `json:"AllowedPattern,omitempty"` + AllowedPattern *string `json:"AllowedPattern,omitempty"` AllowedValues []interface{} `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"` + 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 Output struct { Value interface{} `json:"Value"` - Description string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty"` Export *Export `json:"Export,omitempty"` - Condition string `json:"Condition,omitempty"` + Condition *string `json:"Condition,omitempty"` } type Export struct {