awssecurityhub

package
v0.0.0-...-09e3563 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 New

func New(ctx context.Context, b []byte) (*AwsSecurityHub, error)

func (AwsSecurityHub) IsValidCredential

func (a AwsSecurityHub) IsValidCredential(ctx context.Context) (bool, error)

todo

func (AwsSecurityHub) SendNotification

func (a AwsSecurityHub) SendNotification(ctx context.Context, message string, extras map[string]interface{}) error

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 */
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL