cloudtrail

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Client        *api.Client
	Region        string
	DefaultRegion string
}

Driver wraps the AWS CloudTrail `LookupEvents` action. CloudTrail records management-plane operations across the account; the validation flow uses `dump` to pull the recent slice and cross-reference what a CSPM detector observed. CloudTrail is read-only — `whitelist` returns a clear error.

func (*Driver) DumpEvents

func (d *Driver) DumpEvents(ctx context.Context, args string) ([]schema.Event, error)

DumpEvents returns recent CloudTrail entries. `args` accepts an optional `<startUnix>:<endUnix>` time window; pass "" to use the CloudTrail default 90-day lookback.

func (*Driver) HandleEvents

func (d *Driver) HandleEvents(ctx context.Context, _ string) (schema.EventActionResult, error)

HandleEvents is intentionally not supported — CloudTrail is read-only.

Jump to

Keyboard shortcuts

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