/
configuration_recorders.go
91 lines (88 loc) · 2.26 KB
/
configuration_recorders.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
// Code generated by codegen; DO NOT EDIT.
package config
import (
"github.com/OpsHelmInc/cloudquery/client"
"github.com/cloudquery/plugin-sdk/schema"
)
func ConfigurationRecorders() *schema.Table {
return &schema.Table{
Name: "aws_config_configuration_recorders",
Resolver: fetchConfigConfigurationRecorders,
Multiplex: client.ServiceAccountRegionMultiplexer("config"),
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: generateConfigRecorderArn,
CreationOptions: schema.ColumnCreationOptions{
PrimaryKey: true,
},
},
{
Name: "name",
Type: schema.TypeString,
Resolver: schema.PathResolver("Name"),
},
{
Name: "recording_group",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("RecordingGroup"),
},
{
Name: "recording_mode",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("RecordingMode"),
},
{
Name: "role_arn",
Type: schema.TypeString,
Resolver: schema.PathResolver("RoleARN"),
},
{
Name: "status_last_error_code",
Type: schema.TypeString,
Resolver: schema.PathResolver("StatusLastErrorCode"),
},
{
Name: "status_last_error_message",
Type: schema.TypeString,
Resolver: schema.PathResolver("StatusLastErrorMessage"),
},
{
Name: "status_last_start_time",
Type: schema.TypeTimestamp,
Resolver: schema.PathResolver("StatusLastStartTime"),
},
{
Name: "status_last_status",
Type: schema.TypeString,
Resolver: schema.PathResolver("StatusLastStatus"),
},
{
Name: "status_last_status_change_time",
Type: schema.TypeTimestamp,
Resolver: schema.PathResolver("StatusLastStatusChangeTime"),
},
{
Name: "status_last_stop_time",
Type: schema.TypeTimestamp,
Resolver: schema.PathResolver("StatusLastStopTime"),
},
{
Name: "status_recording",
Type: schema.TypeBool,
Resolver: schema.PathResolver("StatusRecording"),
},
},
}
}