Skip to content

Commit

Permalink
feat(template): support optional parameters (awslabs#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfonseca authored Mar 30, 2023
1 parent 31054be commit 3344301
Showing 1 changed file with 10 additions and 10 deletions.
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

0 comments on commit 3344301

Please sign in to comment.