github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/aws/athena/athena.go (about) 1 package athena 2 3 import ( 4 defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types" 5 ) 6 7 type Athena struct { 8 Databases []Database 9 Workgroups []Workgroup 10 } 11 12 type Database struct { 13 Metadata defsecTypes.Metadata 14 Name defsecTypes.StringValue 15 Encryption EncryptionConfiguration 16 } 17 18 type Workgroup struct { 19 Metadata defsecTypes.Metadata 20 Name defsecTypes.StringValue 21 Encryption EncryptionConfiguration 22 EnforceConfiguration defsecTypes.BoolValue 23 } 24 25 const ( 26 EncryptionTypeNone = "" 27 EncryptionTypeSSES3 = "SSE_S3" 28 EncryptionTypeSSEKMS = "SSE_KMS" 29 EncryptionTypeCSEKMS = "CSE_KMS" 30 ) 31 32 type EncryptionConfiguration struct { 33 Metadata defsecTypes.Metadata 34 Type defsecTypes.StringValue 35 }