Skip to content

Commit

Permalink
added the status of the Log delivery (#3379)
Browse files Browse the repository at this point in the history
Signed-off-by: Hossein Rouhani <[email protected]>
  • Loading branch information
HRouhani authored Feb 22, 2024
1 parent cacb196 commit 6417fd4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/aws/resources/aws.lr
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ private aws.vpc.flowlog @defaults("id region status") {
destination string
// The destination type for the flow log data
destinationType string
// The delivery log status for the flow log data
deliverLogsStatus string
// The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes).
maxAggregationInterval int
// The type of traffic to monitor. ACCEPT, ALL, and REJECT
Expand Down
12 changes: 12 additions & 0 deletions providers/aws/resources/aws.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions providers/aws/resources/aws.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2469,6 +2469,8 @@ resources:
fields:
createdAt:
min_mondoo_version: 9.0.0
deliverLogsStatus:
min_mondoo_version: 9.0.0
destination:
min_mondoo_version: 9.0.0
destinationType:
Expand Down
1 change: 1 addition & 0 deletions providers/aws/resources/aws_vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func (a *mqlAwsVpc) flowLogs() ([]interface{}, error) {
"createdAt": llx.TimeDataPtr(flowLog.CreationTime),
"destination": llx.StringDataPtr(flowLog.LogDestination),
"destinationType": llx.StringData(string(flowLog.LogDestinationType)),
"deliverLogsStatus": llx.StringDataPtr(flowLog.DeliverLogsStatus),
"id": llx.StringDataPtr(flowLog.FlowLogId),
"maxAggregationInterval": llx.IntData(convert.ToInt64From32(flowLog.MaxAggregationInterval)),
"region": llx.StringData(a.Region.Data),
Expand Down

0 comments on commit 6417fd4

Please sign in to comment.