/
web_acls.go
53 lines (50 loc) · 1.28 KB
/
web_acls.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
// Code generated by codegen; DO NOT EDIT.
package waf
import (
"github.com/OpsHelmInc/cloudquery/client"
"github.com/cloudquery/plugin-sdk/schema"
)
func WebAcls() *schema.Table {
return &schema.Table{
Name: "aws_waf_web_acls",
Description: `https://docs.aws.amazon.com/waf/latest/APIReference/API_waf_WebACLSummary.html`,
Resolver: fetchWafWebAcls,
Multiplex: client.AccountMultiplex,
Columns: []schema.Column{
{
Name: "account_id",
Type: schema.TypeString,
Resolver: client.ResolveAWSAccount,
},
{
Name: "arn",
Type: schema.TypeString,
Resolver: schema.PathResolver("WebACLArn"),
CreationOptions: schema.ColumnCreationOptions{
PrimaryKey: true,
},
},
{
Name: "tags",
Type: schema.TypeJSON,
Resolver: resolveWafWebACLTags,
},
{
Name: "logging_configuration",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("LoggingConfiguration"),
Description: `The LoggingConfiguration for the specified web ACL.`,
},
{
Name: "name",
Type: schema.TypeString,
Resolver: schema.PathResolver("Name"),
},
{
Name: "web_acl_id",
Type: schema.TypeString,
Resolver: schema.PathResolver("WebACLId"),
},
},
}
}