forked from KablamoOSS/kombustion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeliveryStream_ExtendedS3DestinationConfiguration.go
58 lines (35 loc) · 1.58 KB
/
DeliveryStream_ExtendedS3DestinationConfiguration.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package properties
import "fmt"
type DeliveryStream_ExtendedS3DestinationConfiguration struct {
BucketARN interface{} `yaml:"BucketARN"`
CompressionFormat interface{} `yaml:"CompressionFormat"`
Prefix interface{} `yaml:"Prefix"`
RoleARN interface{} `yaml:"RoleARN"`
S3BackupMode interface{} `yaml:"S3BackupMode,omitempty"`
S3BackupConfiguration *DeliveryStream_S3DestinationConfiguration `yaml:"S3BackupConfiguration,omitempty"`
ProcessingConfiguration *DeliveryStream_ProcessingConfiguration `yaml:"ProcessingConfiguration,omitempty"`
EncryptionConfiguration *DeliveryStream_EncryptionConfiguration `yaml:"EncryptionConfiguration,omitempty"`
CloudWatchLoggingOptions *DeliveryStream_CloudWatchLoggingOptions `yaml:"CloudWatchLoggingOptions,omitempty"`
BufferingHints *DeliveryStream_BufferingHints `yaml:"BufferingHints"`
}
func (resource DeliveryStream_ExtendedS3DestinationConfiguration) Validate() []error {
errs := []error{}
if resource.BucketARN == nil {
errs = append(errs, fmt.Errorf("Missing required field 'BucketARN'"))
}
if resource.CompressionFormat == nil {
errs = append(errs, fmt.Errorf("Missing required field 'CompressionFormat'"))
}
if resource.Prefix == nil {
errs = append(errs, fmt.Errorf("Missing required field 'Prefix'"))
}
if resource.RoleARN == nil {
errs = append(errs, fmt.Errorf("Missing required field 'RoleARN'"))
}
if resource.BufferingHints == nil {
errs = append(errs, fmt.Errorf("Missing required field 'BufferingHints'"))
} else {
errs = append(errs, resource.BufferingHints.Validate()...)
}
return errs
}