/
subnet_groups.go
67 lines (64 loc) · 1.67 KB
/
subnet_groups.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
// Code generated by codegen; DO NOT EDIT.
package rds
import (
"github.com/OpsHelmInc/cloudquery/client"
"github.com/cloudquery/plugin-sdk/schema"
)
func SubnetGroups() *schema.Table {
return &schema.Table{
Name: "aws_rds_subnet_groups",
Description: `https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBSubnetGroup.html`,
Resolver: fetchRdsSubnetGroups,
Multiplex: client.ServiceAccountRegionMultiplexer("rds"),
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("DBSubnetGroupArn"),
CreationOptions: schema.ColumnCreationOptions{
PrimaryKey: true,
},
},
{
Name: "db_subnet_group_description",
Type: schema.TypeString,
Resolver: schema.PathResolver("DBSubnetGroupDescription"),
},
{
Name: "db_subnet_group_name",
Type: schema.TypeString,
Resolver: schema.PathResolver("DBSubnetGroupName"),
},
{
Name: "subnet_group_status",
Type: schema.TypeString,
Resolver: schema.PathResolver("SubnetGroupStatus"),
},
{
Name: "subnets",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("Subnets"),
},
{
Name: "supported_network_types",
Type: schema.TypeStringArray,
Resolver: schema.PathResolver("SupportedNetworkTypes"),
},
{
Name: "vpc_id",
Type: schema.TypeString,
Resolver: schema.PathResolver("VpcId"),
},
},
}
}