Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

feat(template): support optional parameters #548

Merged
merged 2 commits into from
Mar 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions cloudformation/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down