snapshotlogs

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CloudSecurityGroup = "cloudsecurity"
View Source
const TypeCompliance = "Compliance.History"
View Source
const TypeResource = "Resource.History"

Variables

This section is empty.

Functions

func LogTypes

func LogTypes() logtypes.Group

LogTypes exports the available log type entries

func Resolver added in v1.15.0

func Resolver() logtypes.Resolver

Types

type Compliance

type Compliance struct {
	ChangeType       pantherlog.String `json:"changeType" validate:"required" description:"The type of change that initiated this snapshot creation."`
	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      `json:"changeType" validate:"required" description:"The type of change that initiated this snapshot creation."`
	Changes          *pantherlog.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" validate:"required" description:"This object represents the state of the resource."`
	ID               pantherlog.String      `json:"id" description:"The AWS resource identifier of the resource."`
	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" tcodec:"rfc3339" 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" panther:"aws_arn" description:"The Amazon Resource Name (ARN) of the resource."`
	Name             pantherlog.String      `json:"name" description:"The AWS resource name of the resource."`
	Tags             map[string]string      `json:"tags" description:"A standardized format for key/value resource tags."`
}

nolint:lll

func (*Resource) WriteValuesTo added in v1.15.0

func (r *Resource) 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