Documentation
¶
Overview ¶
Package cloudwatch implements the aws.cloudwatch source plugin: lists CloudWatch Logs log groups and emits log_group evidence records with cross-vendor retention and encryption attributes.
Index ¶
Constants ¶
View Source
const EvidenceTypeID = "log_group"
EvidenceTypeID is the single evidence type this plugin emits today.
View Source
const SourceID = "aws.cloudwatch"
SourceID is the registered ID for the aws.cloudwatch plugin instance.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
DescribeLogGroups(ctx context.Context, params *cwl.DescribeLogGroupsInput, optFns ...func(*cwl.Options)) (*cwl.DescribeLogGroupsOutput, error)
}
API is the subset of the CloudWatch Logs client this plugin uses.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is the in-process aws.cloudwatch source.
func NewFromAWS ¶
NewFromAWS constructs a Plugin backed by the real AWS SDK.
func (*Plugin) Collect ¶
func (p *Plugin) Collect(ctx context.Context, req core.SlotRequest) ([]core.EvidenceRecord, error)
Collect lists CloudWatch log groups and returns one log_group record per group.
Click to show internal directories.
Click to hide internal directories.