Skip to content

add support for APIIntegrationResponse resource #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2025-04-07T23:58:36Z"
build_hash: 66ad2d04c2b520425a0682aae523d45cad967248
go_version: go1.24.1
version: v0.44.0-2-g66ad2d0
api_directory_checksum: 2f02e62d48a5fd74f9b1805dd92b72c1a0889da6
build_date: "2025-04-08T22:19:16Z"
build_hash: 0909e7f0adb8ffe4120a8c20d5d58b991f2539e9
go_version: go1.24.0
version: v0.43.2-14-g0909e7f
api_directory_checksum: 38f3854ec052552b2259dbfdc6e8ceb0932476a3
api_version: v1alpha1
aws_sdk_go_version: v1.32.6
generator_config_info:
file_checksum: af76833060020df86ea19a4b48879ce795d1169b
file_checksum: 312713f8325616b13defaf9078ce1019a5e7a181
original_file_name: generator.yaml
last_modification:
reason: API generation
101 changes: 101 additions & 0 deletions apis/v1alpha1/api_integration_response.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ operations:
operation_type:
- READ_ONE
resource_name: ApiMethodResponse
PutIntegrationResponse:
operation_type:
- Create
resource_name: ApiIntegrationResponse
DeleteIntegrationResponse:
operation_type:
- Delete
resource_name: ApiIntegrationResponse
UpdateIntegrationResponse:
operation_type:
- Update
resource_name: ApiIntegrationResponse
GetIntegrationResponse:
operation_type:
- READ_ONE
resource_name: ApiIntegrationResponse
ignore:
resource_names:
- ApiKey
Expand Down Expand Up @@ -273,6 +289,35 @@ resources:
hooks:
sdk_update_post_build_request:
template_path: hooks/api_method_response/sdk_update_post_build_request.go.tpl
exceptions:
terminal_codes:
- BadRequestException
- InvalidParameter
ApiIntegrationResponse:
fields:
ResourceID:
is_primary_key: true
references:
resource: Resource
path: Status.ID
is_immutable: true
RestAPIID:
references:
resource: RestAPI
path: Status.ID
is_required: true
is_immutable: true
HTTPMethod:
is_required: true
is_immutable: true
StatusCode:
is_required: true
is_immutable: true
tags:
ignore: true
hooks:
sdk_update_post_build_request:
template_path: hooks/integration_response/sdk_update_post_build_request.go.tpl
exceptions:
terminal_codes:
- BadRequestException
Expand Down
177 changes: 177 additions & 0 deletions apis/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cmd/controller/main.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading