github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/aws/elasticsearch/elasticsearch.go (about) 1 package elasticsearch 2 3 import ( 4 defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types" 5 ) 6 7 type Elasticsearch struct { 8 Domains []Domain 9 } 10 11 type Domain struct { 12 Metadata defsecTypes.Metadata 13 DomainName defsecTypes.StringValue 14 AccessPolicies defsecTypes.StringValue 15 DedicatedMasterEnabled defsecTypes.BoolValue 16 VpcId defsecTypes.StringValue 17 LogPublishing LogPublishing 18 TransitEncryption TransitEncryption 19 AtRestEncryption AtRestEncryption 20 ServiceSoftwareOptions ServiceSoftwareOptions 21 Endpoint Endpoint 22 } 23 24 type ServiceSoftwareOptions struct { 25 Metadata defsecTypes.Metadata 26 CurrentVersion defsecTypes.StringValue 27 NewVersion defsecTypes.StringValue 28 UpdateAvailable defsecTypes.BoolValue 29 UpdateStatus defsecTypes.StringValue 30 } 31 32 type Endpoint struct { 33 Metadata defsecTypes.Metadata 34 EnforceHTTPS defsecTypes.BoolValue 35 TLSPolicy defsecTypes.StringValue 36 } 37 38 type LogPublishing struct { 39 Metadata defsecTypes.Metadata 40 AuditEnabled defsecTypes.BoolValue 41 CloudWatchLogGroupArn defsecTypes.StringValue 42 } 43 44 type TransitEncryption struct { 45 Metadata defsecTypes.Metadata 46 Enabled defsecTypes.BoolValue 47 } 48 49 type AtRestEncryption struct { 50 Metadata defsecTypes.Metadata 51 Enabled defsecTypes.BoolValue 52 KmsKeyId defsecTypes.StringValue 53 }