github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/internal/adapters/cloudformation/aws/redshift/redshift.go (about)

     1  package redshift
     2  
     3  import (
     4  	"github.com/khulnasoft-lab/defsec/pkg/providers/aws/redshift"
     5  	"github.com/khulnasoft-lab/defsec/pkg/scanners/cloudformation/parser"
     6  )
     7  
     8  // Adapt ...
     9  func Adapt(cfFile parser.FileContext) redshift.Redshift {
    10  	return redshift.Redshift{
    11  		Clusters:          getClusters(cfFile),
    12  		SecurityGroups:    getSecurityGroups(cfFile),
    13  		ClusterParameters: getParameters(cfFile),
    14  		ReservedNodes:     nil,
    15  	}
    16  }