This repository has been archived by the owner on Jan 14, 2020. It is now read-only.
/
DeliveryStreamExtendedS3DestinationConfiguration.go
44 lines (39 loc) · 2.2 KB
/
DeliveryStreamExtendedS3DestinationConfiguration.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
package properties
// Code generated by go generate; DO NOT EDIT.
// It's generated by "github.com/KablamoOSS/kombustion/generate"
import "fmt"
// DeliveryStreamExtendedS3DestinationConfiguration Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-extendeds3destinationconfiguration.html
type DeliveryStreamExtendedS3DestinationConfiguration struct {
BucketARN interface{} `yaml:"BucketARN"`
CompressionFormat interface{} `yaml:"CompressionFormat"`
Prefix interface{} `yaml:"Prefix"`
RoleARN interface{} `yaml:"RoleARN"`
S3BackupMode interface{} `yaml:"S3BackupMode,omitempty"`
S3BackupConfiguration *DeliveryStreamS3DestinationConfiguration `yaml:"S3BackupConfiguration,omitempty"`
ProcessingConfiguration *DeliveryStreamProcessingConfiguration `yaml:"ProcessingConfiguration,omitempty"`
EncryptionConfiguration *DeliveryStreamEncryptionConfiguration `yaml:"EncryptionConfiguration,omitempty"`
CloudWatchLoggingOptions *DeliveryStreamCloudWatchLoggingOptions `yaml:"CloudWatchLoggingOptions,omitempty"`
BufferingHints *DeliveryStreamBufferingHints `yaml:"BufferingHints"`
}
// DeliveryStreamExtendedS3DestinationConfiguration validation
func (resource DeliveryStreamExtendedS3DestinationConfiguration) Validate() []error {
errors := []error{}
if resource.BucketARN == nil {
errors = append(errors, fmt.Errorf("Missing required field 'BucketARN'"))
}
if resource.CompressionFormat == nil {
errors = append(errors, fmt.Errorf("Missing required field 'CompressionFormat'"))
}
if resource.Prefix == nil {
errors = append(errors, fmt.Errorf("Missing required field 'Prefix'"))
}
if resource.RoleARN == nil {
errors = append(errors, fmt.Errorf("Missing required field 'RoleARN'"))
}
if resource.BufferingHints == nil {
errors = append(errors, fmt.Errorf("Missing required field 'BufferingHints'"))
} else {
errors = append(errors, resource.BufferingHints.Validate()...)
}
return errors
}