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

     1  package sam
     2  
     3  import (
     4  	"github.com/khulnasoft-lab/defsec/pkg/providers/aws/sam"
     5  	"github.com/khulnasoft-lab/defsec/pkg/scanners/cloudformation/parser"
     6  )
     7  
     8  // Adapt ...
     9  func Adapt(cfFile parser.FileContext) sam.SAM {
    10  	return sam.SAM{
    11  		APIs:          getApis(cfFile),
    12  		HttpAPIs:      getHttpApis(cfFile),
    13  		Functions:     getFunctions(cfFile),
    14  		StateMachines: getStateMachines(cfFile),
    15  		SimpleTables:  getSimpleTables(cfFile),
    16  	}
    17  }