findings

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package findings handles sending findings to Security Hub.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

A Publisher represents an object that publishes finds to AWS Security Hub.

func New

func New(client securityhub.Client) *Publisher

New creates a new Publisher.

func (*Publisher) PublishFinding

func (p *Publisher) PublishFinding(finding []types.AwsSecurityFinding) (*PublisherOutput, error)

PublishFinding publishes findings to AWS Security Hub Service

type PublisherOutput

type PublisherOutput struct {
	// The number of findings that failed to import.
	//
	// FailedCount is a required field
	FailedCount int32

	// The list of findings that failed to import.
	FailedFindings []types.ImportFindingsError

	// The number of findings that were successfully imported.
	//
	// SuccessCount is a required field
	SuccessCount int32
}

A PublisherOutput represents an object that contains information about the service call.

Jump to

Keyboard shortcuts

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