-
Notifications
You must be signed in to change notification settings - Fork 0
/
products.go
57 lines (54 loc) · 1.4 KB
/
products.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
// Code generated by codegen; DO NOT EDIT.
package servicecatalog
import (
"github.com/OpsHelmInc/cloudquery/client"
"github.com/cloudquery/plugin-sdk/schema"
)
func Products() *schema.Table {
return &schema.Table{
Name: "aws_servicecatalog_products",
Description: `https://docs.aws.amazon.com/servicecatalog/latest/dg/API_ProductViewDetail.html`,
Resolver: fetchServicecatalogProducts,
Multiplex: client.ServiceAccountRegionMultiplexer("servicecatalog"),
Columns: []schema.Column{
{
Name: "account_id",
Type: schema.TypeString,
Resolver: client.ResolveAWSAccount,
},
{
Name: "arn",
Type: schema.TypeString,
Resolver: schema.PathResolver("ProductARN"),
CreationOptions: schema.ColumnCreationOptions{
PrimaryKey: true,
},
},
{
Name: "tags",
Type: schema.TypeJSON,
Resolver: resolveProductTags,
},
{
Name: "created_time",
Type: schema.TypeTimestamp,
Resolver: schema.PathResolver("CreatedTime"),
},
{
Name: "product_view_summary",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("ProductViewSummary"),
},
{
Name: "source_connection",
Type: schema.TypeJSON,
Resolver: schema.PathResolver("SourceConnection"),
},
{
Name: "status",
Type: schema.TypeString,
Resolver: schema.PathResolver("Status"),
},
},
}
}