-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathgenerator.yaml
139 lines (138 loc) · 3.57 KB
/
generator.yaml
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
ignore:
resource_names:
# # Model is not supported for HTTP APIs. Remove when adding support for WebSocket APIs
- Model
# IntegrationResponse is not supported for HTTP APIs. Remove when adding support for WebSocket APIs
- IntegrationResponse
# RouteResponse is not supported for HTTP APIs. Remove when adding support for WebSocket APIs
- RouteResponse
field_paths:
# DomainNameStatus is ignored because it should be a read-only field
- CreateDomainNameInput.DomainNameConfigurations.DomainNameConfiguration.DomainNameStatus
- CreateDomainNameInput.DomainNameConfigurations.DomainNameConfiguration.DomainNameStatusMessage
- CreateDomainNameInput.DomainNameConfigurations.DomainNameConfiguration.ApiGatewayDomainName
- CreateDomainNameInput.DomainNameConfigurations.DomainNameConfiguration.CertificateUploadDate
- CreateDomainNameInput.DomainNameConfigurations.DomainNameConfiguration.HostedZoneId
resources:
Api:
fields:
Body:
from:
operation: ImportApi
path: Body
Basepath:
from:
operation: ImportApi
path: Basepath
FailOnWarnings:
from:
operation: ImportApi
path: FailOnWarnings
Name:
is_required: false
ProtocolType:
is_required: false
update_operation:
custom_method_name: customUpdateApi
Stage:
hooks:
sdk_update_post_build_request:
template_path: hooks/stage/sdk_update_post_build_request.go.tpl
fields:
ApiId:
references:
resource: API
path: Status.APIID
DeploymentId:
references:
resource: Deployment
path: Status.DeploymentID
Authorizer:
fields:
ApiId:
references:
resource: API
path: Status.APIID
tags:
ignore: true
Deployment:
fields:
ApiId:
references:
resource: API
path: Status.APIID
tags:
ignore: true
Integration:
fields:
ApiId:
references:
resource: API
path: Status.APIID
ConnectionId:
references:
resource: VPCLink
path: Status.VPCLinkID
tags:
ignore: true
Route:
fields:
ApiId:
references:
resource: API
path: Status.APIID
AuthorizerId:
references:
resource: Authorizer
path: Status.AuthorizerID
Target:
references:
resource: Integration
path: Status.IntegrationID
hooks:
references_post_resolve:
template_path: hooks/route/references_post_resolve.go.tpl
tags:
ignore: true
VpcLink:
hooks:
sdk_update_pre_build_request:
template_path: hooks/vpc_link/sdk_update_pre_build_request.go.tpl
synced:
when:
- path: Status.VPCLinkStatus
in:
- AVAILABLE
DomainName:
exceptions:
terminal_codes:
- BadRequestException
fields:
# DomainNameStatus:
# is_read_only: true
# type: [string]
# DomainNameStatusMessage:
# is_read_only: true
# type: string
DomainName:
is_primary_key: true
tags:
ignore: true
ApiMapping:
exceptions:
terminal_codes:
- BadRequestException
fields:
ApiId:
references:
resource: API
path: Status.APIID
DomainName:
references:
resource: DomainName
path: Spec.DomainName
tags:
ignore: true
operations:
CreateApi:
custom_implementation: customCreateApi