Documentation ¶
Index ¶
- Constants
- type AwsSecurityHub
- func (a AwsSecurityHub) IsValidCredential(ctx context.Context) (bool, error)
- func (a AwsSecurityHub) SendNotification(ctx context.Context, message []map[string]interface{}, ...) error
- func (a AwsSecurityHub) SendSummaryLink() bool
- func (a AwsSecurityHub) ValidateConfig(validate *validator.Validate) error
- type Config
Constants ¶
View Source
const MaxFindingsPerBatch = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsSecurityHub ¶
type AwsSecurityHub struct { Config Config `json:"config"` IntegrationType string `json:"integration_type"` NotificationType string `json:"notification_type"` Filters reporters.FieldsFilters `json:"filters"` Message string `json:"message"` Resource string `json:"resource"` }
func (AwsSecurityHub) IsValidCredential ¶
func (a AwsSecurityHub) IsValidCredential(ctx context.Context) (bool, error)
todo
func (AwsSecurityHub) SendNotification ¶
func (AwsSecurityHub) SendSummaryLink ¶
func (a AwsSecurityHub) SendSummaryLink() bool
func (AwsSecurityHub) ValidateConfig ¶
func (a AwsSecurityHub) ValidateConfig(validate *validator.Validate) error
type Config ¶
type Config struct { AWSAccountID []string `json:"aws_account_id"` AWSAccessKey string `json:"aws_access_key" validate:"required,min=16,max=128" required:"true"` AWSSecretKey string `json:"aws_secret_key" validate:"required,min=16,max=128" required:"true"` AWSRegion string `` /* 361-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.