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

     1  package rds
     2  
     3  import (
     4  	"github.com/khulnasoft-lab/defsec/pkg/providers/aws/rds"
     5  	"github.com/khulnasoft-lab/defsec/pkg/scanners/cloudformation/parser"
     6  )
     7  
     8  // Adapt ...
     9  func Adapt(cfFile parser.FileContext) rds.RDS {
    10  	clusters, orphans := getClustersAndInstances(cfFile)
    11  	return rds.RDS{
    12  		Instances:       orphans,
    13  		Clusters:        clusters,
    14  		Classic:         getClassic(cfFile),
    15  		ParameterGroups: getParameterGroups(cfFile),
    16  		Snapshots:       nil,
    17  	}
    18  }