github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/aws/apigateway/v2/apigateway.go (about) 1 package v2 2 3 import ( 4 defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types" 5 ) 6 7 type APIGateway struct { 8 APIs []API 9 DomainNames []DomainName 10 } 11 12 const ( 13 ProtocolTypeUnknown string = "" 14 ProtocolTypeREST string = "REST" 15 ProtocolTypeHTTP string = "HTTP" 16 ProtocolTypeWebsocket string = "WEBSOCKET" 17 ) 18 19 type API struct { 20 Metadata defsecTypes.Metadata 21 Name defsecTypes.StringValue 22 ProtocolType defsecTypes.StringValue 23 Stages []Stage 24 } 25 26 type Stage struct { 27 Metadata defsecTypes.Metadata 28 Name defsecTypes.StringValue 29 AccessLogging AccessLogging 30 } 31 32 type AccessLogging struct { 33 Metadata defsecTypes.Metadata 34 CloudwatchLogGroupARN defsecTypes.StringValue 35 } 36 37 type DomainName struct { 38 Metadata defsecTypes.Metadata 39 Name defsecTypes.StringValue 40 SecurityPolicy defsecTypes.StringValue 41 }