Skip to content

Commit

Permalink
feat(schema): add CloudFormation parameter type (awslabs#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
th3noname committed Jan 30, 2020
1 parent f7b18d2 commit 27fe204
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cloudformation/template.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 27fe204

Please sign in to comment.