-
Notifications
You must be signed in to change notification settings - Fork 0
/
gateway_attachments.go
74 lines (71 loc) · 1.98 KB
/
gateway_attachments.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
// Code generated by codegen; DO NOT EDIT.
package directconnect
import (
"github.com/OpsHelmInc/cloudquery/client"
"github.com/cloudquery/plugin-sdk/schema"
)
func GatewayAttachments() *schema.Table {
return &schema.Table{
Name: "aws_directconnect_gateway_attachments",
Description: `https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DirectConnectGatewayAttachment.html`,
Resolver: fetchDirectconnectGatewayAttachments,
Multiplex: client.ServiceAccountRegionMultiplexer("directconnect"),
Columns: []schema.Column{
{
Name: "account_id",
Type: schema.TypeString,
Resolver: client.ResolveAWSAccount,
},
{
Name: "region",
Type: schema.TypeString,
Resolver: client.ResolveAWSRegion,
},
{
Name: "gateway_arn",
Type: schema.TypeString,
Resolver: schema.ParentColumnResolver("arn"),
},
{
Name: "gateway_id",
Type: schema.TypeString,
Resolver: schema.ParentColumnResolver("id"),
},
{
Name: "attachment_state",
Type: schema.TypeString,
Resolver: schema.PathResolver("AttachmentState"),
},
{
Name: "attachment_type",
Type: schema.TypeString,
Resolver: schema.PathResolver("AttachmentType"),
},
{
Name: "direct_connect_gateway_id",
Type: schema.TypeString,
Resolver: schema.PathResolver("DirectConnectGatewayId"),
},
{
Name: "state_change_error",
Type: schema.TypeString,
Resolver: schema.PathResolver("StateChangeError"),
},
{
Name: "virtual_interface_id",
Type: schema.TypeString,
Resolver: schema.PathResolver("VirtualInterfaceId"),
},
{
Name: "virtual_interface_owner_account",
Type: schema.TypeString,
Resolver: schema.PathResolver("VirtualInterfaceOwnerAccount"),
},
{
Name: "virtual_interface_region",
Type: schema.TypeString,
Resolver: schema.PathResolver("VirtualInterfaceRegion"),
},
},
}
}