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

     1  package sam
     2  
     3  import (
     4  	defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types"
     5  )
     6  
     7  type API struct {
     8  	Metadata            defsecTypes.Metadata
     9  	Name                defsecTypes.StringValue
    10  	TracingEnabled      defsecTypes.BoolValue
    11  	DomainConfiguration DomainConfiguration
    12  	AccessLogging       AccessLogging
    13  	RESTMethodSettings  RESTMethodSettings
    14  }
    15  
    16  type ApiAuth struct {
    17  	Metadata       defsecTypes.Metadata
    18  	ApiKeyRequired defsecTypes.BoolValue
    19  }
    20  
    21  type AccessLogging struct {
    22  	Metadata              defsecTypes.Metadata
    23  	CloudwatchLogGroupARN defsecTypes.StringValue
    24  }
    25  
    26  type DomainConfiguration struct {
    27  	Metadata       defsecTypes.Metadata
    28  	Name           defsecTypes.StringValue
    29  	SecurityPolicy defsecTypes.StringValue
    30  }
    31  
    32  type RESTMethodSettings struct {
    33  	Metadata           defsecTypes.Metadata
    34  	CacheDataEncrypted defsecTypes.BoolValue
    35  	LoggingEnabled     defsecTypes.BoolValue
    36  	DataTraceEnabled   defsecTypes.BoolValue
    37  	MetricsEnabled     defsecTypes.BoolValue
    38  }