Skip to content

Commit e609bce

Browse files
authored
add method resource support (#31)
Description of changes: - add support for the `Method` resource By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 059ff96 commit e609bce

30 files changed

+4298
-215
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-03-27T16:05:30Z"
3-
build_hash: 980cb1e4734f673d16101cf55206b84ca639ec01
2+
build_date: "2025-04-07T21:09:22Z"
3+
build_hash: 66ad2d04c2b520425a0682aae523d45cad967248
44
go_version: go1.24.1
5-
version: v0.44.0
6-
api_directory_checksum: 2b29d9314a6ca77238f1a5fe09772f307485d94f
5+
version: v0.44.0-2-g66ad2d0
6+
api_directory_checksum: 4b900e2ea6b8bb0fbf91c7d161d9f5b47318f754
77
api_version: v1alpha1
8-
aws_sdk_go_version: 1.32.6
8+
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: d2f4a656f9dccd7026fa8ab2be568da2b62379f6
10+
file_checksum: 1af493bcc7996c56ee9ac15879a2160531307c5e
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ operations:
55
operation_type:
66
- Create
77
resource_name: Integration
8+
PutMethod:
9+
operation_type:
10+
- Create
11+
resource_name: Method
812
ignore:
913
resource_names:
1014
- ApiKey
@@ -200,3 +204,30 @@ resources:
200204
- ConflictException
201205
- NotFoundException
202206
- InvalidParameter
207+
Method:
208+
fields:
209+
ResourceID:
210+
is_primary_key: true
211+
references:
212+
resource: Resource
213+
path: Status.ID
214+
is_immutable: true
215+
RestAPIID:
216+
references:
217+
resource: RestAPI
218+
path: Status.ID
219+
is_required: true
220+
is_immutable: true
221+
HTTPMethod:
222+
is_required: true
223+
is_immutable: true
224+
MethodIntegration.Type:
225+
go_tag: json:"type,omitempty"
226+
hooks:
227+
sdk_update_post_build_request:
228+
template_path: hooks/method/sdk_update_post_build_request.go.tpl
229+
exceptions:
230+
terminal_codes:
231+
- InvalidParameter
232+
tags:
233+
ignore: true

apis/v1alpha1/method.go

Lines changed: 133 additions & 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)