/
rest_api_request_validators.go
59 lines (56 loc) · 1.49 KB
/
rest_api_request_validators.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
// Code generated by codegen; DO NOT EDIT.
package apigateway
import (
"github.com/OpsHelmInc/cloudquery/client"
"github.com/cloudquery/plugin-sdk/schema"
)
func RestApiRequestValidators() *schema.Table {
return &schema.Table{
Name: "aws_apigateway_rest_api_request_validators",
Description: `https://docs.aws.amazon.com/apigateway/latest/api/API_RequestValidator.html`,
Resolver: fetchApigatewayRestApiRequestValidators,
Multiplex: client.ServiceAccountRegionMultiplexer("apigateway"),
Columns: []schema.Column{
{
Name: "account_id",
Type: schema.TypeString,
Resolver: client.ResolveAWSAccount,
},
{
Name: "region",
Type: schema.TypeString,
Resolver: client.ResolveAWSRegion,
},
{
Name: "rest_api_arn",
Type: schema.TypeString,
Resolver: schema.ParentColumnResolver("arn"),
},
{
Name: "arn",
Type: schema.TypeString,
Resolver: resolveApigatewayRestAPIRequestValidatorArn,
},
{
Name: "id",
Type: schema.TypeString,
Resolver: schema.PathResolver("Id"),
},
{
Name: "name",
Type: schema.TypeString,
Resolver: schema.PathResolver("Name"),
},
{
Name: "validate_request_body",
Type: schema.TypeBool,
Resolver: schema.PathResolver("ValidateRequestBody"),
},
{
Name: "validate_request_parameters",
Type: schema.TypeBool,
Resolver: schema.PathResolver("ValidateRequestParameters"),
},
},
}
}