github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/aws/sam/function.go (about)

     1  package sam
     2  
     3  import (
     4  	"github.com/khulnasoft-lab/defsec/pkg/providers/aws/iam"
     5  	defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types"
     6  )
     7  
     8  type Function struct {
     9  	Metadata        defsecTypes.Metadata
    10  	FunctionName    defsecTypes.StringValue
    11  	Tracing         defsecTypes.StringValue
    12  	ManagedPolicies []defsecTypes.StringValue
    13  	Policies        []iam.Policy
    14  }
    15  
    16  const (
    17  	TracingModePassThrough = "PassThrough"
    18  	TracingModeActive      = "Active"
    19  )
    20  
    21  type Permission struct {
    22  	Metadata  defsecTypes.Metadata
    23  	Principal defsecTypes.StringValue
    24  	SourceARN defsecTypes.StringValue
    25  }