forked from aquasecurity/trivy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudfront.go
More file actions
executable file
·51 lines (42 loc) · 1.15 KB
/
Copy pathcloudfront.go
File metadata and controls
executable file
·51 lines (42 loc) · 1.15 KB
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
package cloudfront
import (
iacTypes "github.com/aquasecurity/trivy/pkg/iac/types"
)
type Cloudfront struct {
Distributions []Distribution
}
type Distribution struct {
Metadata iacTypes.Metadata
WAFID iacTypes.StringValue
Logging Logging
DefaultCacheBehaviour CacheBehaviour
OrdererCacheBehaviours []CacheBehaviour
ViewerCertificate ViewerCertificate
}
type LoggingV2 struct {
Metadata iacTypes.Metadata
Enabled iacTypes.BoolValue
}
type Logging struct {
Metadata iacTypes.Metadata
Bucket iacTypes.StringValue
V2 LoggingV2
}
type CacheBehaviour struct {
Metadata iacTypes.Metadata
ViewerProtocolPolicy iacTypes.StringValue
}
const (
ViewerPolicyProtocolAllowAll = "allow-all"
ViewerPolicyProtocolHTTPSOnly = "https-only"
ViewerPolicyProtocolRedirectToHTTPS = "redirect-to-https"
)
const (
ProtocolVersionTLS1_2 = "TLSv1.2_2021"
)
type ViewerCertificate struct {
Metadata iacTypes.Metadata
CloudfrontDefaultCertificate iacTypes.BoolValue
SSLSupportMethod iacTypes.StringValue
MinimumProtocolVersion iacTypes.StringValue
}