Skip to content

Commit fb4148d

Browse files
authored
add support for APIIntegrationResponse resource (#30)
Description of changes: - The Integration Response Resource in Api gateway is called `ApiIntegrationResponse` to avoid conflicts with the status field in the `integration` resource. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent a7ee505 commit fb4148d

29 files changed

+2706
-10
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-04-07T23:58:36Z"
3-
build_hash: 66ad2d04c2b520425a0682aae523d45cad967248
4-
go_version: go1.24.1
5-
version: v0.44.0-2-g66ad2d0
6-
api_directory_checksum: 2f02e62d48a5fd74f9b1805dd92b72c1a0889da6
2+
build_date: "2025-04-08T22:19:16Z"
3+
build_hash: 0909e7f0adb8ffe4120a8c20d5d58b991f2539e9
4+
go_version: go1.24.0
5+
version: v0.43.2-14-g0909e7f
6+
api_directory_checksum: 38f3854ec052552b2259dbfdc6e8ceb0932476a3
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: af76833060020df86ea19a4b48879ce795d1169b
10+
file_checksum: 312713f8325616b13defaf9078ce1019a5e7a181
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/api_integration_response.go

Lines changed: 101 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/generator.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ operations:
2525
operation_type:
2626
- READ_ONE
2727
resource_name: ApiMethodResponse
28+
PutIntegrationResponse:
29+
operation_type:
30+
- Create
31+
resource_name: ApiIntegrationResponse
32+
DeleteIntegrationResponse:
33+
operation_type:
34+
- Delete
35+
resource_name: ApiIntegrationResponse
36+
UpdateIntegrationResponse:
37+
operation_type:
38+
- Update
39+
resource_name: ApiIntegrationResponse
40+
GetIntegrationResponse:
41+
operation_type:
42+
- READ_ONE
43+
resource_name: ApiIntegrationResponse
2844
ignore:
2945
resource_names:
3046
- ApiKey
@@ -273,6 +289,35 @@ resources:
273289
hooks:
274290
sdk_update_post_build_request:
275291
template_path: hooks/api_method_response/sdk_update_post_build_request.go.tpl
292+
exceptions:
293+
terminal_codes:
294+
- BadRequestException
295+
- InvalidParameter
296+
ApiIntegrationResponse:
297+
fields:
298+
ResourceID:
299+
is_primary_key: true
300+
references:
301+
resource: Resource
302+
path: Status.ID
303+
is_immutable: true
304+
RestAPIID:
305+
references:
306+
resource: RestAPI
307+
path: Status.ID
308+
is_required: true
309+
is_immutable: true
310+
HTTPMethod:
311+
is_required: true
312+
is_immutable: true
313+
StatusCode:
314+
is_required: true
315+
is_immutable: true
316+
tags:
317+
ignore: true
318+
hooks:
319+
sdk_update_post_build_request:
320+
template_path: hooks/integration_response/sdk_update_post_build_request.go.tpl
276321
exceptions:
277322
terminal_codes:
278323
- BadRequestException

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 177 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/controller/main.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)