This repository has been archived by the owner on Jan 14, 2020. It is now read-only.
/
DistributionDistributionConfig.go
35 lines (30 loc) · 1.89 KB
/
DistributionDistributionConfig.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package properties
// Code generated by go generate; DO NOT EDIT.
// It's generated by "github.com/KablamoOSS/kombustion/generate"
import "fmt"
// DistributionDistributionConfig Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-distributionconfig.html
type DistributionDistributionConfig struct {
Comment interface{} `yaml:"Comment,omitempty"`
DefaultRootObject interface{} `yaml:"DefaultRootObject,omitempty"`
Enabled interface{} `yaml:"Enabled"`
HttpVersion interface{} `yaml:"HttpVersion,omitempty"`
IPV6Enabled interface{} `yaml:"IPV6Enabled,omitempty"`
PriceClass interface{} `yaml:"PriceClass,omitempty"`
WebACLId interface{} `yaml:"WebACLId,omitempty"`
ViewerCertificate *DistributionViewerCertificate `yaml:"ViewerCertificate,omitempty"`
Restrictions *DistributionRestrictions `yaml:"Restrictions,omitempty"`
Logging *DistributionLogging `yaml:"Logging,omitempty"`
CustomErrorResponses interface{} `yaml:"CustomErrorResponses,omitempty"`
Origins interface{} `yaml:"Origins,omitempty"`
Aliases interface{} `yaml:"Aliases,omitempty"`
CacheBehaviors interface{} `yaml:"CacheBehaviors,omitempty"`
DefaultCacheBehavior *DistributionDefaultCacheBehavior `yaml:"DefaultCacheBehavior,omitempty"`
}
// DistributionDistributionConfig validation
func (resource DistributionDistributionConfig) Validate() []error {
errors := []error{}
if resource.Enabled == nil {
errors = append(errors, fmt.Errorf("Missing required field 'Enabled'"))
}
return errors
}