github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/aws/lambda/lambda.go (about) 1 package lambda 2 3 import ( 4 defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types" 5 ) 6 7 type Lambda struct { 8 Functions []Function 9 } 10 11 type Function struct { 12 Metadata defsecTypes.Metadata 13 Tracing Tracing 14 Permissions []Permission 15 } 16 17 const ( 18 TracingModePassThrough = "PassThrough" 19 TracingModeActive = "Active" 20 ) 21 22 type Tracing struct { 23 Metadata defsecTypes.Metadata 24 Mode defsecTypes.StringValue 25 } 26 27 type Permission struct { 28 Metadata defsecTypes.Metadata 29 Principal defsecTypes.StringValue 30 SourceARN defsecTypes.StringValue 31 }