-
Notifications
You must be signed in to change notification settings - Fork 0
/
findings.go
137 lines (134 loc) · 3.4 KB
/
findings.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Code generated by codegen; DO NOT EDIT.
package inspector2
import (
"github.com/OpsHelmInc/cloudquery/client"
"github.com/cloudquery/plugin-sdk/schema"
)
func Findings() *schema.Table {
return &schema.Table{
Name: "aws_inspector2_findings",
Description: `https://docs.aws.amazon.com/inspector/v2/APIReference/API_Finding.html`,
Resolver: fetchInspector2Findings,
Multiplex: client.ServiceAccountRegionMultiplexer("inspector2"),
Columns: []schema.Column{
{
Name: "account_id",
Type: schema.TypeString,
Resolver: client.ResolveAWSAccount,
},
{
Name: "region",
Type: schema.TypeString,
Resolver: client.ResolveAWSRegion,
},
{
Name: "arn",
Type: schema.TypeString,
Resolver: schema.PathResolver("FindingArn"),
CreationOptions: schema.ColumnCreationOptions{
PrimaryKey: true,
},
},
{
Name: "aws_account_id",
Type: schema.TypeString,
Resolver: schema.PathResolver("AwsAccountId"),
},
{
Name: "description",
Type: schema.TypeString,
Resolver: schema.PathResolver("Description"),
},
{
Name: "first_observed_at",
Type: schema.TypeTimestamp,
Resolver: schema.PathResolver("FirstObservedAt"),
},
{
Name: "last_observed_at",
Type: schema.TypeTimestamp,
Resolver: schema.PathResolver("LastObservedAt"),
},
{
Name: "remediation",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("Remediation"),
},
{
Name: "resources",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("Resources"),
},
{
Name: "severity",
Type: schema.TypeString,
Resolver: schema.PathResolver("Severity"),
},
{
Name: "status",
Type: schema.TypeString,
Resolver: schema.PathResolver("Status"),
},
{
Name: "type",
Type: schema.TypeString,
Resolver: schema.PathResolver("Type"),
},
{
Name: "code_vulnerability_details",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("CodeVulnerabilityDetails"),
},
{
Name: "epss",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("Epss"),
},
{
Name: "exploit_available",
Type: schema.TypeString,
Resolver: schema.PathResolver("ExploitAvailable"),
},
{
Name: "exploitability_details",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("ExploitabilityDetails"),
},
{
Name: "fix_available",
Type: schema.TypeString,
Resolver: schema.PathResolver("FixAvailable"),
},
{
Name: "inspector_score",
Type: schema.TypeFloat,
Resolver: schema.PathResolver("InspectorScore"),
},
{
Name: "inspector_score_details",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("InspectorScoreDetails"),
},
{
Name: "network_reachability_details",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("NetworkReachabilityDetails"),
},
{
Name: "package_vulnerability_details",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("PackageVulnerabilityDetails"),
},
{
Name: "title",
Type: schema.TypeString,
Resolver: schema.PathResolver("Title"),
},
{
Name: "updated_at",
Type: schema.TypeTimestamp,
Resolver: schema.PathResolver("UpdatedAt"),
},
},
}
}