snapshotlogs

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TypeCompliance = "Snapshot.ComplianceHistory"
View Source
const TypeResource = "Snapshot.ResourceHistory"

Variables

This section is empty.

Functions

func LogTypes

func LogTypes() logtypes.Group

LogTypes exports the available log type entries

Types

type Compliance

type Compliance struct {
	ChangeType       pantherlog.String `` /* 145-byte string literal not displayed */
	IntegrationID    pantherlog.String `json:"integrationId" validate:"required" description:"The unique source ID of the account this resource lives in."`
	IntegrationLabel pantherlog.String `json:"integrationLabel" validate:"required" description:"The friendly source name of the account this resource lives in."`
	LastUpdated      pantherlog.Time   `json:"lastUpdated" tcodec:"rfc3339" event_time:"true" validate:"required" description:"The time this snapshot occurred."`
	PolicyID         pantherlog.String `json:"policyId" validate:"required" description:"The unique ID of the policy evaluating the resource."`
	PolicySeverity   pantherlog.String `json:"policySeverity" validate:"required" description:"The severity of the policy evaluating the resource."`
	ResourceID       pantherlog.String `json:"resourceId" panther:"aws_arn" validate:"required" description:"The unique Panther ID of the resource being evaluated."`
	ResourceType     pantherlog.String `json:"resourceType" validate:"required" description:"The type of resource being evaluated."`
	Status           pantherlog.String `` /* 140-byte string literal not displayed */
	Suppressed       pantherlog.Bool   `json:"suppressed" validate:"required" description:"Whether this resource is being ignored for the purpose of reports."`
}

nolint:lll

type Resource

type Resource struct {
	ChangeType       pantherlog.String              `` /* 145-byte string literal not displayed */
	Changes          map[string]jsoniter.RawMessage `json:"changes" description:"The changes, if any, from the prior snapshot to this one."`
	IntegrationID    pantherlog.String              `json:"integrationId" validate:"required" description:"The unique source ID of the account this resource lives in."`
	IntegrationLabel pantherlog.String              `json:"integrationLabel" validate:"required" description:"The friendly source name of the account this resource lives in."`
	LastUpdated      pantherlog.Time                `json:"lastUpdated" tcodec:"rfc3339" event_time:"true" validate:"required" description:"The time this snapshot occurred."`
	Resource         *pantherlog.RawMessage         `json:"resource" description:"This object represents the state of the resource."`
	NormalizedFields SnapshotNormalizedFields       `json:"normalizedFields" description:"This object represents normalized fields extracted by the scanner."`
}

nolint:lll

type SnapshotNormalizedFields

type SnapshotNormalizedFields struct {
	// Embedded from internal/compliance/snapshot_poller/models/aws/types.go
	ResourceID   pantherlog.String `json:"ResourceId" description:"A panther wide unique identifier of the resource."`
	ResourceType pantherlog.String `json:"ResourceType" description:"A panther defined resource type for the resource."`
	TimeCreated  pantherlog.Time   `json:"TimeCreated" description:"When this resource was created."`
	AccountID    pantherlog.String `json:"AccountId" panther:"aws_account_id" description:"The ID of the AWS Account the resource resides in."`
	Region       pantherlog.String `json:"Region" description:"The region the resource exists in."`
	ARN          pantherlog.String `json:"Arn,omitempty" panther:"aws_arn" description:"The Amazon Resource Name (ARN) of the resource."`
	ID           pantherlog.String `json:"Id,omitempty" description:"The AWS resource identifier of the resource."`
	Name         pantherlog.String `json:"Name,omitempty" description:"The AWS resource name of the resource."`
	Tags         map[string]string `json:"Tags,omitempty" description:"A standardized format for AWS key/value resource tags."`
}

func (*SnapshotNormalizedFields) WriteValuesTo

func (n *SnapshotNormalizedFields) WriteValuesTo(w pantherlog.ValueWriter)

WriteValuesTo implements pantherlog.ValueWriterTo interface

Jump to

Keyboard shortcuts

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