/
compliance_summary_items.go
52 lines (49 loc) · 1.31 KB
/
compliance_summary_items.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
// Code generated by codegen; DO NOT EDIT.
package ssm
import (
"github.com/OpsHelmInc/cloudquery/client"
"github.com/cloudquery/plugin-sdk/schema"
)
func ComplianceSummaryItems() *schema.Table {
return &schema.Table{
Name: "aws_ssm_compliance_summary_items",
Description: `https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_ComplianceSummaryItem.html`,
Resolver: fetchSsmComplianceSummaryItems,
Multiplex: client.ServiceAccountRegionMultiplexer("ssm"),
Columns: []schema.Column{
{
Name: "account_id",
Type: schema.TypeString,
Resolver: client.ResolveAWSAccount,
CreationOptions: schema.ColumnCreationOptions{
PrimaryKey: true,
},
},
{
Name: "region",
Type: schema.TypeString,
Resolver: client.ResolveAWSRegion,
CreationOptions: schema.ColumnCreationOptions{
PrimaryKey: true,
},
},
{
Name: "compliance_type",
Type: schema.TypeString,
CreationOptions: schema.ColumnCreationOptions{
PrimaryKey: true,
},
},
{
Name: "compliant_summary",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("CompliantSummary"),
},
{
Name: "non_compliant_summary",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("NonCompliantSummary"),
},
},
}
}