/
auto_scaling_configurations.go
98 lines (95 loc) · 2.55 KB
/
auto_scaling_configurations.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Code generated by codegen; DO NOT EDIT.
package apprunner
import (
"github.com/OpsHelmInc/cloudquery/client"
"github.com/cloudquery/plugin-sdk/schema"
)
func AutoScalingConfigurations() *schema.Table {
return &schema.Table{
Name: "aws_apprunner_auto_scaling_configurations",
Description: `https://docs.aws.amazon.com/apprunner/latest/api/API_AutoScalingConfiguration.html`,
Resolver: fetchApprunnerAutoScalingConfigurations,
PreResourceResolver: getAutoScalingConfiguration,
Multiplex: client.ServiceAccountRegionMultiplexer("apprunner"),
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("AutoScalingConfigurationArn"),
CreationOptions: schema.ColumnCreationOptions{
PrimaryKey: true,
},
},
{
Name: "tags",
Type: schema.TypeJSON,
Resolver: resolveApprunnerTags("AutoScalingConfigurationArn"),
},
{
Name: "auto_scaling_configuration_name",
Type: schema.TypeString,
Resolver: schema.PathResolver("AutoScalingConfigurationName"),
},
{
Name: "auto_scaling_configuration_revision",
Type: schema.TypeInt,
Resolver: schema.PathResolver("AutoScalingConfigurationRevision"),
},
{
Name: "created_at",
Type: schema.TypeTimestamp,
Resolver: schema.PathResolver("CreatedAt"),
},
{
Name: "deleted_at",
Type: schema.TypeTimestamp,
Resolver: schema.PathResolver("DeletedAt"),
},
{
Name: "has_associated_service",
Type: schema.TypeBool,
Resolver: schema.PathResolver("HasAssociatedService"),
},
{
Name: "is_default",
Type: schema.TypeBool,
Resolver: schema.PathResolver("IsDefault"),
},
{
Name: "latest",
Type: schema.TypeBool,
Resolver: schema.PathResolver("Latest"),
},
{
Name: "max_concurrency",
Type: schema.TypeInt,
Resolver: schema.PathResolver("MaxConcurrency"),
},
{
Name: "max_size",
Type: schema.TypeInt,
Resolver: schema.PathResolver("MaxSize"),
},
{
Name: "min_size",
Type: schema.TypeInt,
Resolver: schema.PathResolver("MinSize"),
},
{
Name: "status",
Type: schema.TypeString,
Resolver: schema.PathResolver("Status"),
},
},
}
}