/
health_checks.go
72 lines (69 loc) · 1.83 KB
/
health_checks.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
// Code generated by codegen; DO NOT EDIT.
package route53
import (
"github.com/OpsHelmInc/cloudquery/client"
"github.com/cloudquery/plugin-sdk/schema"
)
func HealthChecks() *schema.Table {
return &schema.Table{
Name: "aws_route53_health_checks",
Description: `https://docs.aws.amazon.com/Route53/latest/APIReference/API_HealthCheck.html`,
Resolver: fetchRoute53HealthChecks,
Multiplex: client.AccountMultiplex,
Columns: []schema.Column{
{
Name: "account_id",
Type: schema.TypeString,
Resolver: client.ResolveAWSAccount,
},
{
Name: "arn",
Type: schema.TypeString,
Resolver: resolveHealthCheckArn(),
CreationOptions: schema.ColumnCreationOptions{
PrimaryKey: true,
},
},
{
Name: "tags",
Type: schema.TypeJSON,
Description: `The tags associated with the health check.`,
},
{
Name: "cloud_watch_alarm_configuration_dimensions",
Type: schema.TypeJSON,
Resolver: resolveRoute53healthCheckCloudWatchAlarmConfigurationDimensions,
},
{
Name: "caller_reference",
Type: schema.TypeString,
Resolver: schema.PathResolver("CallerReference"),
},
{
Name: "health_check_config",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("HealthCheckConfig"),
},
{
Name: "health_check_version",
Type: schema.TypeInt,
Resolver: schema.PathResolver("HealthCheckVersion"),
},
{
Name: "id",
Type: schema.TypeString,
Resolver: schema.PathResolver("Id"),
},
{
Name: "cloud_watch_alarm_configuration",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("CloudWatchAlarmConfiguration"),
},
{
Name: "linked_service",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("LinkedService"),
},
},
}
}