github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/aws/redshift/redshift.go (about) 1 package redshift 2 3 import ( 4 defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types" 5 ) 6 7 type Redshift struct { 8 Clusters []Cluster 9 ReservedNodes []ReservedNode 10 ClusterParameters []ClusterParameter 11 SecurityGroups []SecurityGroup 12 } 13 14 type SecurityGroup struct { 15 Metadata defsecTypes.Metadata 16 Description defsecTypes.StringValue 17 } 18 19 type ReservedNode struct { 20 Metadata defsecTypes.Metadata 21 NodeType defsecTypes.StringValue 22 } 23 24 type ClusterParameter struct { 25 Metadata defsecTypes.Metadata 26 ParameterName defsecTypes.StringValue 27 ParameterValue defsecTypes.StringValue 28 } 29 30 type Cluster struct { 31 Metadata defsecTypes.Metadata 32 ClusterIdentifier defsecTypes.StringValue 33 NodeType defsecTypes.StringValue 34 VpcId defsecTypes.StringValue 35 NumberOfNodes defsecTypes.IntValue 36 PubliclyAccessible defsecTypes.BoolValue 37 AllowVersionUpgrade defsecTypes.BoolValue 38 MasterUsername defsecTypes.StringValue 39 AutomatedSnapshotRetentionPeriod defsecTypes.IntValue 40 LoggingEnabled defsecTypes.BoolValue 41 EndPoint EndPoint 42 Encryption Encryption 43 SubnetGroupName defsecTypes.StringValue 44 } 45 46 type EndPoint struct { 47 Metadata defsecTypes.Metadata 48 Port defsecTypes.IntValue 49 } 50 51 type Encryption struct { 52 Metadata defsecTypes.Metadata 53 Enabled defsecTypes.BoolValue 54 KMSKeyID defsecTypes.StringValue 55 }